Skip to content

Instantly share code, notes, and snippets.

@htr3n
htr3n / macos-ramdisk.md
Last active May 7, 2024 02:13
Creating RAM disk in macOS

Built-in

diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`

where XXXXX is the size of the RAM disk in terms of memory blocks.

Notes:

@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active May 20, 2024 09:52
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@leoherzog
leoherzog / *Setup.md
Last active April 27, 2022 14:13
Setting Up Aerial Screensaver on Linux
  • sudo apt install xscreensaver jq aria2 notify-osd
  • Make a directory in $HOME called Aerial
  • Copy aerial-downloader.sh below into $HOME/Aerial
  • Run it once
  • crontab -e
  • 00 10 * * * sh $HOME/Aerial/aerial-downloader.sh to download new stuff (if any) at 10:00 every day
  • nano ~/.xscreensaver and add the code in the file below
  • Open up the XScreensaver app and pick "Apple Aerial"
  • gnome-session-properties and add xscreensaver -nosplash to the list
  • If you want, go into the System Settings and add a keyboard shortcut for Shift + Win + L to launch the command xscreensaver-command -lock
@0
0 / bluetooth_serial.md
Last active May 15, 2024 07:01
Connecting a Bluetooth device for serial communication on Arch Linux.

The following are instructions for connecting a Bluetooth device for serial communication on Arch Linux using BlueZ 5.31.

Prerequisites

The following packages are required:

  • bluez: bluetoothd
  • bluez-utils: bluetoothctl, rfcomm