Skip to content

Instantly share code, notes, and snippets.

View theodric's full-sized avatar
🎯
Shoobydoowop

theodric theodric

🎯
Shoobydoowop
View GitHub Profile

Keybase proof

I hereby claim:

  • I am theodric on github.
  • I am theodric (https://keybase.io/theodric) on keybase.
  • I have a public key ASDvLex_Rq7RcVNnyGMzJ2H8_Y0ekAvH5PDResyiTwVNbwo

To claim this, I am signing this object:

@theodric
theodric / VW NB 1.8t timing belt notes
Created April 27, 2017 15:33
VW NB 1.8t timing belt notes
* A jack with a load spreader on the oilpan is very handy, as opposed to a topside engine support, since you need to raise and lower the engine so often between operations.
* If you put a dot of paint on the outside edge of every tooth of the old timing belt that is between your alignment marks, and then transfer all of that to the new belt, you can be certain that the new belt is properly aligned and has not slipped during installation.
* Install the timing belt before installing the hydraulic tensioner, because it allows you to have the lever controlling the eccentric of the tensioner pulley all the way down, giving you enough slack to easily get the belt on. Don't get confused by looking at DIYs for Audi 1.8t and VW 2.0 engines-- they use a different sort of tensioner pulley that has to be rotated into tension with a pin tool.
Once you get the belt on, rotate the lever controlling the eccentric of the tensioner pulley as far upward as you can get it by hand (within reason, Mister Hulk), then tie a piece o
@theodric
theodric / newmac.sh
Last active November 5, 2023 00:09
New Mac setup
## I hope you've already turned off SIP in Recovery. If not, here's how:
# 1. Boot to recovery
# 2. Open Terminal
# 3. Type csrutil disable and press enter
# 4. Type reboot (or exit and reboot normally)
sudo spctl --master-disable
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true; killall Finder
@theodric
theodric / vmware fusion 8 debian
Created March 4, 2018 12:08
stuff to do on new GUI Debian VMs in VMware environments
# install tools
apt install open-vm-tools open-vm-tools-desktop
# add xrandr modes for interesting resolutions
\xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 1920x1080
xrandr --newmode "2560x1080" 230.00 2560 2720 2992 3424 1080 1083 1093 1120 -hsync +vsync
xrandr --addmode Virtual1 2560x1080
xrandr --newmode "3440x1440" 419.50 3440 3696 4064 4688 1440 1443 1453 1493 -hsync +vsync
xrandr --addmode Virtual1 3440x1440
@theodric
theodric / batch-mp3.txt
Last active March 28, 2021 12:48
batch convert files from (e.g.) m4b to mp3 with ffmpeg and avconv
Single:
avconv -acodec libmp3lame -i test.m4b test.mp3
Batch:
for f in *m4b; do avconv -i "$f" -acodec libmp3lame ${f%.m4b}.mp3"; done
Single:
ffmpeg -i input.wav -codec:a libmp3lame -qscale:a 7 output.mp3
Batch:
find . -iname \*bettersnap\* -print0 | tee | tar -cf snap.tar --null -T -
@theodric
theodric / newdebianclient.sh
Created September 23, 2018 09:47
New Debian client setup
apt install git ghostscript htop tmux telnet watch mosh nmap unar bash youtube-dl ffmpeg mplayer autoconf automake python2 python3 wget nano xz-utils sshuttle p7zip lolcat cowsay wakeonlan lynx links aview automake geeqie
#!/bin/bash
#xinput --set-prop 15 "libinput Natural Scrolling Enabled" 0
xinput --set-prop `xinput list|grep -m1 "Swiftpoint Limited GesturePoint Mouse Dongle"|grep id=|cut -f 2|cut -b4,5` "libinput Natural Scrolling Enabled" 0
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
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: