Skip to content

Instantly share code, notes, and snippets.

View Makeshift's full-sized avatar

Connor Bell Makeshift

  • Reading
View GitHub Profile
@Makeshift
Makeshift / docker-compose.yml
Created November 8, 2021 14:41
Marauder without Marauder
version: '3.4'
services:
nzbhydra:
image: linuxserver/nzbhydra2
restart: unless-stopped
network_mode: "host"
volumes:
- ./runtime_conf/nzbhydra:/config
environment:
- TZ=Etc/UTC
@Makeshift
Makeshift / tutorial.md
Last active July 30, 2025 23:06
Tutorial for automatically syncing an Obsidian vault with Git on an Android device

How to sync Obsidian with Git on Android

Limitations

  • If Termux is closed in the background by Android, the cron service will stop updating your repository and you must open Termux again. Refer to instructions for your device model to disable the killing of certain background applications.
  • This may negatively affect your devices battery life. I'm not entirely sure yet.

Setup

@Makeshift
Makeshift / gist:8275d95217a6337915c07790b113c3ad
Created March 11, 2021 12:03
Using Sodastream canisters without a Sodastream
canister - some proprietary bullshit |
<- p-bullshit adapter | m22 female -> https://www.co2supermarket.co.uk/sodastream-cylinder-valve-adapter-advanced-p171.html
<- m22 male | 1/4" female -> https://www.ebay.co.uk/itm/KARCHER-type-M22-male-Screw-Thread-22mm-to-1-4-female-Screw-Coupling-connector/122618528328
<- 1/4" male | 5/16" male -> https://www.ebay.co.uk/itm/Brass-Bsp-Threads-Male-To-Male-Adapter-Adaptors-Connecting-Reducer-Nipple-Hex/132588029117
<- 5/16" female - line assembly -> https://www.amazon.co.uk/PERA-Ball-Assembly-Disconnect-Brewing/dp/B079LX9575
@Makeshift
Makeshift / open_with_wsl_vscode.reg
Last active December 30, 2020 22:27
A reg file that modifies the "Open with Code" context menu to instead open with WSL VSCode
Windows Registry Editor Version 5.00
; The content of the hex below is as follows:
; C:\Windows\System32\wsl.exe bash -c "p='%V';p=\${p/W:/\\\\\\\\wsl$\\\\Ubuntu};echo Opening \$p ...;code \$(wslpath \$p)"
; %V contains the directory you right clicked in/on. This command uses wslpath to convert the Windows dir to a WSL dir, then
; uses 'code <dir>' to open it (assuming you have the remote VSCode command installed)
; The other bits relating to W: are specific to my needs, as I have \\wsl$\Ubuntu\ mounted as W:
; If you do the same, you will be able to 'Open with Code' on a WSL network mount
; Otherwise, it will still work as intended on Windows filepaths.
/*
This helper script bridges compatibility between the Greasemonkey 4 APIs and
existing/legacy APIs. Say for example your user script includes
// @grant GM_getValue
And you'd like to be compatible with both Greasemonkey 4 and Greasemonkey 4
(and for that matter all versions of Violentmonkey, Tampermonkey, and any other
user script engine). Add:
const config = {
docker: process.env["docker_conf"] ? JSON.parse(process.env["docker_conf"]) : {socketPath: '/var/run/docker.sock'},
confdir: process.env["conf_dir"] || "/conf",
template: process.env["template"] || "/template.vhost",
destination: process.env["destination"]
}
const fs = require('fs').promises;
const path = require('path');
const {Docker} = require('node-docker-api');
echo Installing Chocolatey
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
echo Grabbing apps
choco install paint.net youtube-dl cmder disabledefender-winconfig chocolateygui classic-shell google-chrome-x64 telegram.install vmwarevsphereclient linkshellextension sourcetree slack filebot nodejs.install awscli firefox vim 7zip.install vlc skype filezilla dotnet4.7.1 speccy keepass.install putty.install python dropbox procexp telegram mumble teamspeak rainmeter sublimetext3 calibre teamviewer windirstat wireshark autohotkey winrar cdburnerxp python2 vcredist2008 steam f.lux cpu-z everything mp3tag handbrake.install crystaldiskinfo unchecky git jre8 jdk8 adobereader qbittorrent tor-browser ffmpeg sysinternals curl -y
pause
echo Installing Chocolatey
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
echo Grabbing apps
choco install classic-shell google-chrome-x64 telegram.install vmwarevsphereclient linkshellextension sourcetree slack filebot pidgin lastpass nodejs.install firefox 7zip.install vlc skype filezilla dotnet4.5 speccy keepass.install putty.install python dropbox procexp mumble teamspeak rainmeter jdownloader sublimetext3 calibre teamviewer winscp silverlight windirstat malwarebytes wireshark autohotkey winrar cdburnerxp python2 vcredist2008 audacity steam f.lux googleearth cpu-z everything teracopy mp3tag handbrake.install unitywebplayer crystaldiskinfo unchecky git jre8 jdk8 adobereader qbittorrent tor-browser ffmpeg -y
pause
[Unit]
Description=The Lounge
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/thelounge start
User=scassany
Restart=always
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAgEApODhuUkBSCJRU8+YvT6SVtfwsNJIY06Oafrum6MCIKIKh4UAMe3MtlsXbVGvRiZ1cPMYzVReaWu+XN5P/tFX1hFWwhIMXHo84zJZlQetyKsf1AFYCHXthRARF77SxRTA+Kip4iTnYOyrDofb0JXWmNBFUxuDkmzL6JFkrkstNoV7iPqtTCgS4JL0m/slEfAOyh0r8kjNGBxLF7zpIOdRhBpC+nf6J8KqTBaDyWZgbijMyrehlodrV7TOvzEFryz+EKYtuHIuJgH9YkYuHS16tO9bGqlBcfIWMlD2WUV/fy8qCcI9h5nCWhHsXR/VUvZ6PdthNLuqBZuoSnr+rj9eFAnhPhJMAaF4UYCYM3exaqbMq7w96PkFR3GIcVK761gWeKJFM6pW3YHC5h3XuTNOJID1UT/0L3G2z4Ajt6rgKZsTbaXIv8ldlMnhfAOnASpL5vF1BCVvIJaKt4+i/309ahEDfG0fwry+yHjSCrrl3hN6N1OphZLRCT/9Q/8iJziIxESpdjff69fmLIyQs61aQWNoMcsA2iMI3745xMTzhJg2VYQniRwcgpZSJQm3K47vh2BSfr+NbfpzraT50Mns5K3Tad8qHqESjvA3i07Z62WEaP2rFaGGmvLdac1YTfyPuMUg9fPjkcSs+faHoPHZUbRYH/4DCvWNBNw8WE2SPss= Connor Bell