Skip to content

Instantly share code, notes, and snippets.

# Sudo Rights to Local User
su -
adduser your-username # if no user created yet
usermod -aG sudo your-username
# Change hostname if needed
sudo hostnamectl set-hostname "sulfurhead"
# update and upgrade
sudo apt update
@dfelix
dfelix / my-fedora-37.txt
Last active January 19, 2023 13:04
my-fedora-37
# Change hostname
sudo hostnamectl set-hostname "sulfurhead"
# Change terminal to ZSH (https://www.zsh.org)
sudo dnf install zsh # install zhs
chsh -s $(which zsh) # set zhs as default
# Change terminal look and feel (https://github.com/ohmyzsh/ohmyzsh)
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" # install oh-my-zsh
@dfelix
dfelix / semantic-commit-messages.md
Created October 14, 2021 10:23 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@dfelix
dfelix / readme.md
Created October 5, 2021 17:32 — forked from kiasaki/readme.md
ubuntu: vboxdrv module signing for secureboot to load it

Since kernel version 4.4.0-20, it was enforced that unsigned kernel modules will not be allowed to run with Secure Boot enabled. Because you want to keep Secure Boot, then the next logical step is to sign those modules.

So let's try it.

Create signing keys

openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Descriptive name/"
@dfelix
dfelix / signing-vbox-kernel-modules.md
Last active October 5, 2021 16:44 — forked from reillysiemens/signing-vbox-kernel-modules.md
Signing VirtualBox Kernel Modules

Signing VirtualBox Kernel Modules

These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on [Øyvind Stegard's blog][blog], save for a few key details. The images here are borrowed from the [Systemtap UEFI Secure Boot Wiki][systemtap].

  1. Install the VirtualBox package (this might be different for your platform).
    src='https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo'
@dfelix
dfelix / ElementaryOs Odin - my setup
Last active January 11, 2022 19:37
ElementaryOs Odin - custom
# ########################################################################################
# Elementary OS Custom for my system.
# ########################################################################################
# Update/Upgrade
sudo apt update && sudo apt full-upgrade && sudo apt dist-upgrade && sudo apt autoremove
# Clean-up unwanted apps
sudo apt-get purge noise
sudo apt-get purge geary
@dfelix
dfelix / rest_quick_reference.md
Created April 4, 2018 16:43 — forked from odan/rest_quick_reference.md
REST, RESTful API Quick Reference

REST, RESTful API Quick Reference

A good API is not just easy to use but also hard to misuse.

Ressources

  • Version your API
    • Path: /v1/users
    • Subdomain: api.v1.example.com/users
# ######################
# Elementary OS Custom for my system.
# Based forked from memoryleakx/perfectelementary.bash
#
# This is my custom version, intended to install on my Latitude 6500
#
# Download Elementary OS from here:
# http://sourceforge.net/projects/elementaryos/files/stable/
#
# ######################