Skip to content

Instantly share code, notes, and snippets.

View systo's full-sized avatar

Alex R systo

  • Minneapolis
View GitHub Profile
@systo
systo / dock.sh
Created December 21, 2021 01:37
macOS Dock Setup
defaults write com.apple.dock tilesize -int 48 && killall Dock
defaults write com.apple.dock orientation left && killall Dock
@systo
systo / fix_exfat_drive.md
Created November 28, 2020 21:41 — forked from scottopell/fix_exfat_drive.md
Fix corrupted exFAT disk macOS/OSX

exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.

Disk Utility is unable to repair this at first, but the fix is this:

  1. Use diskutil list to find the right drive id.
  2. You want the id under the IDENTIFIER column, it should look like disk1s1
  3. Run sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3
  4. -d is debug so you'll see all your files output as they're processed.
  5. Answer YES if it gives you the prompt Main boot region needs to be updated. Yes/No?
@systo
systo / gist:ce197d98b273b845d27f1de910f1f15f
Created November 21, 2019 06:18 — forked from whiskerz007/gist:53c6aa5d624154bacbbc54880e1e3b2a
How to setup a community version of Proxmox VE 5.x-6.x
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; systemctl restart pveproxy.service; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
apt --reinstall install proxmox-widget-toolkit
@systo
systo / config
Created April 30, 2019 16:23
i3-config
# use windows key as modifier
set $mod Mod4
font -*terminus-medium-r-normal-*-12-*-*-*-*-*-iso8859-1
floating_modifier $mod
# disable titlebars
new_window pixel 1
new_float pixel 1
@systo
systo / hl40.md
Last active September 2, 2016 16:15
HomeLab 4.0 Contents

Hardware

Storage

  • 1x DL380 G7 12C/24T - 96G storage server. will be populating all 16 bays with a mix of 2.5 SSD/ 1TB SATA
    • 1x D2600 with 8x 2TB and 4x 4tb

VM

  • 4x DL380 G7 12/24T - 96G 2x 72GB or 146GB 15K SAS KVM VM hosts.
    • each has the second drive bay if I want to do glusterFS or similar
  • 1x Dell R320, single proc, 32GB for always on home services
@systo
systo / etc-network-interfaces
Created June 25, 2016 05:31
IPv6 NAT support for Proxmox
# IPv4 stuff above
iface vmbr0 inet6 static
address "IPv6 Address"
netmask 64
# notice "/sbin/ip -f inet6 route add" for v6 vs "/sbin/ip route add" for v4
post-up /sbin/ip -f inet6 route add "IPv6 Gateway" dev vmbr0
post-up /sbin/ip -f inet6 route add default via "IPv6 Address of host"
pre-down /sbin/ip -f inet6 route del default via "IPv6 Address of host"
pre-down /sbin/ip -f inet6 route del "IPv6 Gateway" dev vmbr0
[switch]disp hotkey
----------------- HOTKEY -----------------
=Defined hotkeys=
Hotkeys Command
CTRL_G display current-configuration
CTRL_L display ip routing-table
CTRL_O undo debugging all
=Undefined hotkeys=
auto eth0
iface eth0 inet manual
auto eth1
iface eth1 inet manual
auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond-miimon 100
bond-mode 802.3ad