Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yeltnar
yeltnar / pi_mount_usb.md
Created January 12, 2022 18:27 — forked from etes/pi_mount_usb.md
How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.

These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.

Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following

@yeltnar
yeltnar / crypto-aes-gcm.js
Created December 3, 2021 21:21 — forked from chrisveness/crypto-aes-gcm.js
Uses the SubtleCrypto interface of the Web Cryptography API to encrypt and decrypt text using AES-GCM (AES Galois counter mode).
/**
* Encrypts plaintext using AES-GCM with supplied password, for decryption with aesGcmDecrypt().
* (c) Chris Veness MIT Licence
*
* @param {String} plaintext - Plaintext to be encrypted.
* @param {String} password - Password to use to encrypt plaintext.
* @returns {String} Encrypted ciphertext.
*
* @example
* const ciphertext = await aesGcmEncrypt('my secret text', 'pw');
### Keybase proof
I hereby claim:
* I am yeltnar on github.
* I am droodle_b (https://keybase.io/droodle_b) on keybase.
* I have a public key ASAwToikRjg_YezaE_nH1JKNkr9ldVcKe092F1L5by-mSwo
To claim this, I am signing this object: