Skip to content

Instantly share code, notes, and snippets.

View josh-richardson's full-sized avatar
🏠
Working from home

Josh R josh-richardson

🏠
Working from home
View GitHub Profile
@GavinPacini
GavinPacini / debian-grub-kernel.sh
Last active April 26, 2021 02:17
Getting Debian to boot on Mac M1 - first principles
# Note, this is WIP. A proper tutorial will be published soon.
# This mainly serves as hosting the script so the Whonix forum members can review it.
# From within another Debian VM
sudo KERNEL='none' NOKERNEL='true' UPGRADE_SYSTEM='no' GRUB_INSTALL='no' grml-debootstrap \
--debopt "--verbose --include=initramfs-tools,eatmydata,apt-transport-tor,python3.7,gpg,gpg-agent" \
--arch arm64 \
--filesystem ext4 \
--force \
--hostname host \
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1