This gist contains useful Bash spells that I acquired.
Table of Contents:
This gist contains useful Bash spells that I acquired.
Table of Contents:
#!/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. | |
# |
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
Random shell scripts |
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 |
# 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 |
# 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 |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
#!/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 |