Skip to content

Instantly share code, notes, and snippets.

View shoemoney's full-sized avatar

Jeremy Schoemaker shoemoney

View GitHub Profile
@shoemoney
shoemoney / $ Bash Magic Spellbook.md
Created March 18, 2025 02:29 — forked from Cynnexis/$ Bash Magic Spellbook.md
✨ Bash Magic Spellbook
@shoemoney
shoemoney / change proxy based on ip
Last active February 28, 2025 11:48
change proxy based on ip
#!/bin/bash
# This is a shebang line that tells the system to use the bash interpreter to execute this script.
# =====================================================================
# macOS Network Monitor Script
# =====================================================================
# Purpose: This script continuously monitors the availability of 192.168.0.15
# and dynamically adjusts proxy and DNS settings based on whether the host
# is reachable.
#

Build Squid 6.10 from source

All next steps are made on Debian 12.5.

Remove older versions

  1. Check if we have older Squid versions.
dpkg -l | grep squid
@shoemoney
shoemoney / proxmox.md
Created September 16, 2024 07:40 — forked from scyto/proxmox.md
proxmox cluster proof of concept

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@shoemoney
shoemoney / ! Shell scripts
Created July 12, 2024 08:48 — forked from yohanesgultom/! Shell scripts
Random shell scripts
Random shell scripts
@shoemoney
shoemoney / sources.list
Created October 13, 2023 14:21 — forked from hakerdefo/sources.list
Debian 12 "bookworm" complete sources.list
deb https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware
@shoemoney
shoemoney / command.sh
Created October 10, 2023 10:19 — forked from kresnasatya/command.sh
Deploy Laravel with Deployer in Github Actions
# Create user deployer with root account
adduser deployer
# Append (-a) a secondary group (-G) "www-data" to user "deployer"
usermod -a -G www-data deployer
# See groups assigned to user "deployer"
groups deployer
# Add ACL permission in /var/www
@shoemoney
shoemoney / command.sh
Created October 10, 2023 10:18 — forked from kresnasatya/command.sh
Deploy Laravel with Deployer in Github Actions
# Create user deployer with root account
adduser deployer
# Append (-a) a secondary group (-G) "www-data" to user "deployer"
usermod -a -G www-data deployer
# See groups assigned to user "deployer"
groups deployer
# Add ACL permission in /var/www
@shoemoney
shoemoney / bash-cheatsheet.sh
Created October 2, 2023 08:37 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@shoemoney
shoemoney / proxmox-post-install.sh
Created February 1, 2023 21:08
Fine tuned settings for a freshly installed proxmox
#!/usr/bin/env bash
################################################################################
# This is property of eXtremeSHOK.com
# You are free to use, modify and distribute, however you may not remove this notice.
# Copyright (c) Adrian Jon Kriel :: [email protected]
################################################################################
#
# Script updates can be found at: https://github.com/extremeshok/xshok-proxmox
#
# post-installation script for Proxmox