Skip to content

Instantly share code, notes, and snippets.

@AyakoGFX
AyakoGFX / Magit.org
Created September 11, 2024 13:38
Magit keybind reference sheet "Doom Emacs" + Vanilla Key

Magit Keybind Reference Sheet

Entering Magit

Evil KeyVanilla KeyDescription
SPC ggC-c vgOpen magit-status in current project
There is also the :magit ex command for evil users.

Leaving Magit

  • To close a buffer or window you should use `q`
  • To close a popup (transients) you should use `C-g`
@AyakoGFX
AyakoGFX / Setup Qemu in Arch Linux Virtual machine.org
Created August 30, 2024 13:26
Setup Qemu in Arch Linux Virtual machine
  • QEMU/KVM Dependancies to install:
sudo pacman -S qemu virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat ebtables iptables libguestfs

Note: Make sure you update your system with a $ sudo pacman -Syu BEFORE you install the dependencies

Make Libvirt Group for your user

Edit /etc/libvirt/libvirtd.conf (Change the following Lines)


@ashton314
ashton314 / nm-org-roam-to-denote.el
Created July 23, 2024 17:54
Modified version of org-roam-to-denote migration script
;;; nm-org-roam-to-denote.el --- Migrate notes from org-roam to denote
;; Copyright (C) 2022 bitspook <bitspook@proton.me>
;; Author: bitspook
;; Version: 0.1.0
;; URL: https://github.com/bitspook/notes-migrator
;; Package-Requires: ((emacs "28.1") (denote "1.0.0")
;;; Commentary:
@Alumniminium
Alumniminium / bookmark.sh
Last active August 29, 2024 18:33
bookmark.sh | Lukesmith inspired bookmark script with nice formatting and browser/filemanager support
#!/usr/bin/env bash
file="$HOME/.bookmarks" # file to store bookmarks in
browser="chromium" # supports CTRL+L to go to address bar.
fileManager="pcmanfm" # supports CTRL+L to go to address bar.
function getUrlFromBookmarkEntry
{
bookmark="$(cat "$file" | rofi -dmenu -p ":")"
if [ -z "$bookmark" ]; then
@the-spyke
the-spyke / pipewire.md
Last active November 30, 2025 03:52
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

@agraul
agraul / .mbsyncrc
Created April 24, 2020 09:51
Example mbsyncrc for mailbox.org
# These settings can also go under an "Account" section, but then the
# "IMAPStore" section needs to reference the account. This is not
# needed for just one store per account.
IMAPStore mailbox-remote
Host imap.mailbox.org
User alexander.graul@mailbox.org
PassCmd "gpg --quiet --decrypt ~/.mbsync-pw-mailbox.gpg"
SSLType STARTTLS
MaildirStore mailbox-local
@debxp
debxp / wifi-cli-connection.txt
Last active June 4, 2025 23:50
Wifi connection from command line after a Debian minimal install
Create the file 'wpa_supplicant.conf'...
$ sudo nano /etc/wpa_supplicant.conf
Put the following in ti:
network={
ssid="your_wifi_name"
psk="your_wifi_password"
}
@widdowquinn
widdowquinn / emacs_python_ide.md
Last active May 13, 2025 17:53
Turning Emacs into a Python IDE

Turning emacs into a Python IDE

## Create a new config/initialisation file

Create a user-level initialisation file init.el:

touch .emacs.d/init.el
@mads-hartmann
mads-hartmann / toggle-maximize-buffer.el
Created August 20, 2012 10:05
An Emacs function to temporarily make one buffer fullscreen. You can quickly restore the old window setup.
(defun toggle-maximize-buffer () "Maximize buffer"
(interactive)
(if (= 1 (length (window-list)))
(jump-to-register '_)
(progn
(set-register '_ (list (current-window-configuration)))
(delete-other-windows))))
;; Bind it to a key.