Skip to content

Instantly share code, notes, and snippets.

@bessangel
bessangel / .gitignore
Created March 13, 2023 23:08 — forked from jsoma/.gitignore
Tutorial on how to build a most-popular-thing-in-a-grid map in QGIS and pandas
.DS_Store
@bessangel
bessangel / DebianSid_on_LUKS-BTRFS_with_systemd-boot.md
Created July 16, 2022 15:51 — forked from meeas/DebianSid_on_LUKS-BTRFS_with_systemd-boot.md
For installing Debian Sid with LUKS2 encrypted BTRFS filesystem with Systemd-boot and rEFInd bootloaders plus an option for dualboot to Windows

For directly installing Debian Sid not supported by the Debian installer, namely:

  • Single LUKS2 encrypted partition which contains the full installation
  • Single BTRFS filesystem (integrated home partition)
  • Encrypted swapfile in BTRFS subvolume (supports laptop suspend but not hibernate)
  • Uses systemd-boot bootloader (instead of Grub2, also optional rEFInd instructions)
  • Minimal Gnome install (plus instructions for any other DE you wish)
  • Proper user groups for common security tools like sudo-less Wireshark, etc...
  • Optional removal of crypto keys from RAM during laptop suspend
  • Optional configurations for laptops (including fingerprint readers)
@bessangel
bessangel / gpg-git-smudge-clean.md
Created June 22, 2022 07:16 — forked from g-k/gpg-git-smudge-clean.md
test transparent git encryption with smudge clean filters using gpg

Generate a GPG Key and revocation cert per http://www.gnupg.org/gpg/en/manual.html:

gpg --key-gen
gpg --output revoke.asc --gen-revoke <my user ID or email>

Once gpg key in keyring we can encrypt and decrypt files.

@bessangel
bessangel / vimeo-downloader.js
Created March 27, 2021 10:36 — forked from mistic100/vimeo-downloader.js
Download video from Vimeo (chopped m4s files)
// 1. Open the browser developper console on the network tab
// 2. Start the video
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL
// 4. Run: node vimeo-downloader.js "<URL>"
// 5. Combine the m4v and m4a files with mkvmerge
const fs = require('fs');
const url = require('url');
const https = require('https');
pfSsh.php playback disablereferercheck
#disable ipfw
pfctl -d