Skip to content

Instantly share code, notes, and snippets.

View theodric's full-sized avatar
🎯
Shoobydoowop

theodric theodric

🎯
Shoobydoowop
View GitHub Profile
@theodric
theodric / google-pixel-remote-shutter.sh
Last active May 21, 2020 11:23
Remote shutter button over ADB for Google Camera (PX4 mod)
##needs adb in $PATH
## drop the "PX4" to run this on the builtin Pixel camera app rather than the ported one
#once - loads app
adb shell 'am start -n com.google.android.GoogleCameraPX4/com.android.camera.CameraLauncher'
#to take pics
adb shell 'am start -n com.google.android.GoogleCameraPX4/com.android.camera.activity.CaptureActivity'
#print last captured image filename to console
@theodric
theodric / alacritty.yml
Last active May 2, 2020 13:03
Alacritty config for low-DPI displays, using Lucida Console
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
*** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER ***
The contents of this file are essentially a laundry list of things you should definitely not do
beceause they might get you killed. I am not just not telling you to do this, I am telling you
NOT to do this. OK? Disclaimer accepted? Because please don't sue me, I'm just trying to keep
you alive, but I'm not a medical authority so you should assume I got all this information from
4chan and infowars and not from like the WHO or the CDC. Cool? Great.
*** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER ***
Basic guide to staying the fuck home:
https://staythefuckhome.com/
@theodric
theodric / waveshare-1.3
Created March 14, 2020 23:39
Make the fucking Waveshare 1.3 OLED pHAT work
apt -y install libopenjp2-7-dev libopenjp2 libatlas-base-dev
@theodric
theodric / debian-setup.sh
Last active November 12, 2023 18:50
Minimum setup script for Debian 10+
#!/bin/bash
wget https://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add -
echo deb http://archive.raspbian.org/raspbian wheezy main contrib non-free >> /etc/apt/sources.list
apt update; apt install nano tmux htop hdparm sudo net-tools whois cmatrix cowsay fortune-mod sysvinit-utils nfs-common nfs-kernel-server openssh-server systemd-sysv avahi-daemon wget curl unar gnupg2 sdparm plocate git build-essential mosquitto-clients iftop iperf3 iperf lshw mosh lynx links ncdu rsync sysstat hd-idle fwupd
## 2023-08-04 have subbed plocate in place of mlocate
curl 'https://liquorix.net/add-liquorix-repo.sh' | sudo bash && sudo apt -yf install linux-image-liquorix-amd64 linux-headers-liquorix-amd64##add liquorix bleeding-edge kernels
apt install wireguard translate-shell npm
apt install pigpio-tools gpiod rpi.gpio-common
apt install colossal-cave-adventure tfortune tfortunes fortunes-off fortunes-ga haskell-misfortune dopewars 9base fortune-anarchism display-dhammapada fortunes bsdgames bsdgames-nonfre
@theodric
theodric / fuck-catalina.sh
Created December 28, 2019 18:36
Block macOS Catalina "upgrade" reminders
#!/bin/sh
sudo softwareupdate --ignore "macOS Catalina"
defaults write com.apple.systempreferences AttentionPrefBundleIDs 0
killall Dock
@theodric
theodric / C64 pokes and sys'es
Created June 30, 2019 18:42
Reference for C64 commands
Change border color
Yellow:
POKE 53280,7
Change background color
Purple:
POKE 53281,4
DEBIAN
#get latest tarball and unpack
http://vice-emu.sourceforge.net/index.html#download
#install depends
apt install libsdl1.2-dev
#build with SDL UI enabled
./configure --enable-ethernet --enable-sdlui --with-png --enable-rs232 [ --without-x ]
make
sudo make install
Find and tar up a bunch of shit matching a name (good for copying Mac config files to a new system)
find ./ -iname '*bettersnaptool*' | tar cpvf snappage.tar -T -
Recursively find and delete a bunch of shit:
find ./ -iname '*appstore*' | xargs rm -rfv
"Uninstall" a tarball you just installed, provided that you run that command from the same directory as you ran the unpack command, and that you didn’t overwrite any existing files at unpack:
tar -tf filename.tar | xargs rm -rfv
Grab a bunch of links from a web page:
https://github.com/historicalsource/7kaa.git
https://github.com/historicalsource/abuse.git
https://github.com/historicalsource/abyss.git
https://github.com/historicalsource/alienbashii.git
https://github.com/historicalsource/alienbreed3dii.git
https://github.com/historicalsource/allegiance.git
https://github.com/historicalsource/amfv.git
https://github.com/historicalsource/arthur.git
https://github.com/historicalsource/arxfatalis.git
https://github.com/historicalsource/asteroids-7800.git