Skip to content

Instantly share code, notes, and snippets.

@mikesmullin
mikesmullin / x86-assembly-notes.md
Last active July 18, 2024 01:57
Notes on x86-64 Assembly and Machine Code

Mike's x86-64 Assembly (ASM) Notes

Assembling Binary Machine Code

Operating Modes:

These determine the assumed/default size of instruction operands, and restricts which opcodes are available, and how they are used.

Modern operating systems, booted inside Real mode,

@balderclaassen
balderclaassen / Gnome-extension-configs.txt
Last active March 22, 2024 03:10
Backup, reset, restore, configuration of a gnome extension.
How to export (backup), reset to defaults and import (restore) the configuration of a gnome extension.
// prints the whole config to a file
dconf dump /org/gnome/shell/extensions/<extension-name>/ > ~/<backupfile>
// Resets the config to defaults (might wanna check first if the dump was a succes by opening the file)
dconf reset -f /org/gnome/shell/extensions/<extension-name>/
// Loads configuration from a file into your gnome-shell
dconf load /org/gnome/shell/extensions/<extension-name>/ < ~/<backupfile>
From what I can tell a good way to determine <extension-name> is from its url at https://extensions.gnome.org
However its better to be safe and launch dconf editor , browse to /org/gnome/shell/extensions/ and check the name.
@chrisdone
chrisdone / gist:02e165a0004be33734ac2334f215380e
Last active July 1, 2024 21:55
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel

@lbrame
lbrame / archtweaks.md
Last active July 26, 2024 06:54
Tweaks I've made to my Arch Linux installation

Arch Linux tweaks

This is a collection of the tweaks and modification I've made to my Arch Linux installation over the months. These may be applicable to other distros, but please check first before doing anything. I also included Arch Wiki references for all the procedures I mentioned. My recommendation is not to blindly follow this gist but to always check with the Arch Linux wiki first. Things move fast and by the time you're reading this my gist may be out of date. Lastly, the golden rule: never execute a command you don't understand.

Installing the KDE Plasma desktop

My current DE of choice is KDE's Plasma. I find it just about perfect.

There are various ways to install it on Arch. The most popular one is to install plasma and plasma-applications, but I don't like doing that because it comes with too many programs I'll never use. I, instead, install the base plasma group, remove the few extra packages that come with it, then I finish off by installing a few KDE apps that don't come with th