Skip to content

Instantly share code, notes, and snippets.


Alan Kay AjkayAlan

View GitHub Profile


  • Plug WAN into eth1, LAN into eth2
  • Boot up, go to Login with default creds.
  • Webfig -> System -> Packages -> IPv6 -> Enable. Reboot.
  • Webfig -> System -> Reset Configuration. Wait for the reboot.
    • This makes it so you get good IPv6 firewall rules by default
  • In Quick Set:
    • Ensure Port is Eth1
    • Ensure Address Acquisition is Automatic
AjkayAlan /
Last active Nov 28, 2021
Setup OpenWrt Snapshots on my x86 machine
# Sign into the router
ssh root@
# Set vars
# Get latest snapshot and install
cd /tmp


  1. Format your SD Card with FAT32 if <= 32GB, otherwise use exFAT
  2. Go to and the lite image, then unzip it
  3. Download and install it
  4. Use Etcher to write the downloaded image to the SD card
  5. Create a blank file named ssh into the boot partition to enable ssh with headless
  6. Put the SD card into your Raspberry Pi, plug it into ethernet, and power it on


# Plug into USB to Ethernet Adapter, and install drivers for RTL8821CE
sudo apt-get install --reinstall git dkms build-essential linux-headers-$(uname -r)
git clone
cd rtl8821ce
chmod +x
chmod +x
sudo ./
# Update everything
sudo apt-get update && sudo apt-get dist-upgrade -y

My VSCode Setup

Install needed CLI tools

pip install flake8
pip install autopep8

Install Extensions

AjkayAlan /
Last active Jan 11, 2022
Windows SubSystem For Linux setup that I like with some developers stuff mixed in

Setting Up WSL

Install A Distro:

  1. Run the following in powershell as admin Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  2. Install a distro (ex: Ubuntu 18.04 LTS -

  3. Open your distro you installed via the start menu, let it setup

  4. Update and upgrade

sudo apt-get update
AjkayAlan /
Last active Nov 17, 2021
Setup steps for my raspberry pi 3b+ for development
## Getting image and Pi up and running
# Go to and download an image, then unzip it
# Download and install it
# Plug in microsd card, Unzip the downloaded image and use Etcher to write the downloaded image to the SD card
# Edit boot/config.txt, and uncomment hdmi_force_hotplug=1 and hdmi_drive=2
# Plug the PI in, and go through to setup prompts
# Run the following commands in terminal
## Config stuff
sudo raspi-config
AjkayAlan /
Last active Jan 11, 2020
Setup for my basic settings with a Ubiquiti ERL 3 (EdgeRouter Lite 3)
# Plug in ethernet to eth0, connect to laptop, and set static IP to, subnet mask
# TODO: Script this so I dont need to touch the gui
# Navigate to, login using ubnt for username and password
# Run basic setup wizard, and set the following settings:
### Internet Port: eth0
### DHCP
### Enable the default firewall
### Enable DHCPv6 Prefix Delegation, /56, default firewall
### LAN port: eth1, enable dhcp
### Set password to whatever you want
AjkayAlan /
Last active May 26, 2019
# ssh
ssh root@
# Install stuff I care about
opkg update
opkg install luci
opkg install luci-app-sqm
opkg install luci-app-upnp
# Set new password for root
AjkayAlan / ChocoNewComputerSetup.ps1
Last active Oct 17, 2021
Installs Chocolatey and all the nice things I want
View ChocoNewComputerSetup.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString(''))
choco feature enable -n allowGlobalConfirmation
choco install googlechrome
choco install vlc
choco install microsoft-windows-terminal
choco install peazip
choco install vscode
choco install steam
choco install choco-upgrade-all-at --params "'/TIME:21:00'"
choco install origin