Skip to content

Instantly share code, notes, and snippets.

View jcanfield's full-sized avatar
💭
If I don't reply quickly, please try me on Twitter/X at @creativeboulder

Joshua Canfield jcanfield

💭
If I don't reply quickly, please try me on Twitter/X at @creativeboulder
View GitHub Profile
@proffapt
proffapt / azure-openvpn-setup.md
Last active September 1, 2025 16:27
Elaborated step by step guide to setup OpenVPN on Azure via student discount
@jcanfield
jcanfield / system_update.sh
Created February 14, 2023 02:44 — forked from bmatthewshea/system_update.sh
Ubuntu-Debian APT upgrade script
#!/bin/bash
#
# Brady Shea - 18SEP2020 - conversion of system_update alias to bash script
# https://www.holylinux.net/
#
# Place this script in "/usr/local/sbin/system_update" or similar location under your $PATH
# It needs root permissions (SUDO) to execute.
#
# Change these settings to your liking:
#################################
@camullen
camullen / installation.md
Created December 10, 2022 23:52
KDE Install on WSL2
@jcanfield
jcanfield / tmux-new.sh
Created September 11, 2022 18:55
Simple Bash Script to Create a New Session
#!/bin/bash
# USAGE: ./tmux-new.sh SESSION_NAME
#
# Credit to Keon Woortman
# URL: https://koenwoortman.com/tmux-sessions-should-be-nested-with-care-unset-tmux-to-force/
session_name="$1"
# 1. First you check if a tmux session exists with a given name.
tmux has-session -t=$session_name 2> /dev/null
@shakahl
shakahl / profile.sh
Created September 8, 2022 06:35
SteamOS 3.0 holo (holoiso) scripts
# /etc/profile
# Set our umask
umask 022
# Append "$1" to $PATH when not already in.
# This function API is accessible to scripts in /etc/profile.d
append_path () {
case ":$PATH:" in
*:"$1":*)
/db
/plugins
/uploads
/logs
@kurtanr
kurtanr / Setting up Oh My Posh in Windows Terminal.md
Last active August 26, 2025 03:05
Step-by-step guide for setting up Oh My Posh in Windows Terminal
@jcanfield
jcanfield / aria2c_webUI.md
Created January 31, 2022 10:38 — forked from GAS85/aria2c_webUI.md
Aria2 + Ubuntu 18.04 + Apache2 + Web UI
OS: Ubuntu 18.04 Apache/2.4.18 1.0.2g-1ubuntu4.10
Aim: to install Aria2 with WebUI and secure Token.
IP Addr of your Aria2 server is 192.168.0.111
Your local IP network is 192.168.0.0/24

Aria 2

1. Installation

Install aria2 package:

@machuu
machuu / WSL2_VPN_Workaround_Instructions.md
Last active March 25, 2026 08:08
Workaround for WSL2 network broken on VPN

Overview

Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active.

The root cause seems to be that WSL2 and the VPN use the same IP address block, and the VPN routing clobbers WSL2's network routing.

This problem is tracked in multiple microsoft/WSL issues including, but not limited to:

@sepsemi
sepsemi / stubby.yml
Last active September 24, 2025 20:27
Dns over tls (unbound + stubby)
resolution_type: GETDNS_RESOLUTION_STUB
round_robin_upstreams: 1
tls_authentication: GETDNS_AUTHENTICATION_REQUIRED
tls_query_padding_blocksize: 256
edns_client_subnet_private: 1
idle_timeout: 9000
listen_addresses:
- 127.0.0.1@8053
- 0::1@8053
dns_transport_list: