Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
echo "Debian 11 Netinstall"
rsync --no-motd -P ftp-stud.hs-esslingen.de::debian-cd/current/amd64/iso-cd/debian-11.*-amd64-netinst.iso ./
echo "Ubuntu 23.10 live"
rsync --no-motd -zhhP rsync://cdimage.ubuntu.com/cdimage/daily-live/current/mantic-desktop-amd64.iso .
rsync --no-motd -zhhP rsync://cdimage.ubuntu.com/cdimage/ubuntu-server/daily-live/current/mantic-live-server-amd64.iso .
echo "Ubuntu 22.04 live"
rsync --no-motd -zhhP rsync://cdimage.ubuntu.com/cdimage/jammy/daily-live/current/jammy-live-desktop-amd64.iso .
rsync --no-motd -zhhP rsync://cdimage.ubuntu.com/cdimage/ubuntu-server/jammy/daily-live/current/jammy-live-server-amd64.iso .
@Phill93
Phill93 / scan.sh
Created February 26, 2021 06:48
Scan Script for scanbd
#!/bin/bash
set -o xtrace
scan_dir=/external/scan
datetime=`date +"%Y-%m-%d_%H-%M-%S"`
filename=$SCANBD_ACTION_$SCANBD_FUNCTION-$datetime
cd /tmp
scanimage --source="ADF Duplex" -d $SCANBD_DEVICE --format=tiff --resolution 600 --mode Color --page-width=210 --page-height=297 --batch=${filename}_p%04d.tiff
tiffcp ${filename}_p*.tiff $filename.tiff
@Phill93
Phill93 / .gitignore
Last active January 26, 2020 14:21
Wifi Poster
# Created by https://www.gitignore.io/api/latex
# Edit at https://www.gitignore.io/?templates=latex
### LaTeX ###
## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
@Phill93
Phill93 / addons
Last active December 31, 2019 17:01
My WOW Addon List
https://www.curseforge.com/wow/addons/all-the-things
https://www.curseforge.com/wow/addons/auctioneer
https://www.curseforge.com/wow/addons/bagnon
https://www.curseforge.com/wow/addons/bagnon-scrap
https://www.curseforge.com/wow/addons/details
https://www.curseforge.com/wow/addons/gathermate2
https://www.curseforge.com/wow/addons/scrap
https://www.curseforge.com/wow/addons/tomtom
https://www.curseforge.com/wow/addons/wowgatheringnodes
https://www.curseforge.com/wow/addons/pawn
@Phill93
Phill93 / uptime.sh
Last active October 28, 2019 19:15
Script to test the battery runtime
#!/bin/bash
BROKER="test.mosquitto.org"
TOPIC="Phill93/uptime"
sudo apt-get update
sudo apt-get install -y mosquitto-clients
while true; do
mosquitto_pub -r -h $BROKER -t $TOPIC -m "$(awk '{print int($1/3600)":"int(($1%3600)/60)":"int($1%60)}' /proc/uptime)"
ping -c 3 google.com
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-whitelist=
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=TMP
#!/bin/bash
IN=$1
OUT=build/$1
# Password below is set on for Pi Zeros default password AND controller
PASSWORD=clusterhat
# Cleanup any previous attempts
rm -i $OUT
object CheckCommand "dsm_snmp" {
command = [PluginDir + "/check_snmp_synology"]
arguments = {
"-u" = "$snmp3_user$"
"-p" = "$snmp3_password$"
"-2" = "$snmp_community$"
"-h" = {
required = true
value = "$snmp_hostname$"
@Phill93
Phill93 / ansible-role-test.sh
Last active May 12, 2017 11:55 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)