Skip to content

Instantly share code, notes, and snippets.

View aptkingston's full-sized avatar
🏠
Working from home

Andrew Kingston aptkingston

🏠
Working from home
View GitHub Profile
@aptkingston
aptkingston / self-hosted-budibase-ubuntu-20.04.sh
Created January 28, 2021 09:17
Self-Hosted Budibase Installation on Ubuntu 20.04
# Install Docker from Docker repository
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
# Install docker compose
/// twitch-videoad.js
const origFetch = window.fetch;
window.fetch = (url, init, ...args) => {
if (typeof url === "string") {
if (url.includes("/access_token")) {
url = url.replace("player_type=site", "player_type=thunderdome");
} else if (
url.includes("/gql") &&
init &&
typeof init.body === "string" &&
@aptkingston
aptkingston / arch-grub-resuce
Last active July 20, 2020 09:38
Rescue an encrypted EFI Arch install with System Resuce CD
# Boot from rescue CD in UEFI mode (can't fix a EFI grub install in bios mode)
# Decrypt luks volume
cryptsetup luksOpen /dev/nvme0n1p3 luks
# Mount primary partition
mount /dev/mapper/vg0-root /mnt
# Mount boot partition(s) depending on your setup
mount /dev/nvme0n1p2 /mnt/boot
@aptkingston
aptkingston / arch-linux-install
Last active July 20, 2020 09:36 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# This assumes a wifi only system...