Skip to content

Instantly share code, notes, and snippets.

@morfikov
morfikov / android_phone_as_a_LUKS_token.md
Last active May 20, 2024 21:35
How to use your Android phone as a key to your encrypted linux desktop/laptop system (LUKS/LUKS2 based)

About this HowTo

Encrypted systems (desktops/laptops) have one major problem when it comes to providing security over protected files. When you sit in front of your machine, you can feel safe because no one can break into the system without your knowledge. Moreover, if they try to do some bad actions, you can detect them and avoid the imminent danger. But what if you leave your laptop alone? Even if you think that you can lock it, turn it off or hibernate it, the machine still isn't secure as you would have thought. The problem lays in the physical access that people can get when you're not around and hence set some traps for you when you're not looking. To avoid the danger that comes

@themartorana
themartorana / staged.js
Created December 14, 2017 15:09
Auto-management of receipts and shipping notifications
function handleStaged() {
Logger.log("Starting...")
handleStagedShipping();
handleStagedReceipts();
Logger.log("Done.")
}
function handleStagedReceipts() {
var getLabel = GmailApp.getUserLabelByName('_Stage/Receipts');
var setLabel = GmailApp.getUserLabelByName('Receipts');
@avinash-oza
avinash-oza / boot-from-ram-debian.md
Last active September 11, 2024 14:38
How to boot from RAM on debian
@Pysis868
Pysis868 / grub.cfg
Last active August 4, 2024 02:31
My own configuration file for GRUB2 to boot various live distributions of Linux-based operating systems, along with some system tools. I tried to include a lot of sample configuration entries, even if I don't currently use them, so it may help others. Exceedingly long blog post: http://tehfishyblog.logdown.com/chips/306146-a-homemade-ultimate-bo…
# Config for GNU GRand Unified Bootloader (GRUB) (2)
# /boot/grub2/grub.cfg
# or
# /boot/grub/grub.cfg
# Mostly only 'legacy' CSM/BIOS boot methods currently.
# Unable to boot loop entries with Secure Boot
# Notes:
# Description:
# This grub.cfg file was created by Lance http://www.pendrivelinux.com