Skip to content

Instantly share code, notes, and snippets.

View the1ts's full-sized avatar

Paul Mansfield the1ts

View GitHub Profile
@GiantWaffleCode
GiantWaffleCode / 1.12 GW Reactor
Last active November 12, 2024 00:45
Factorio Strings
0eNrs3d2uHUeWGOhXafBaasTvWrELMxeG4RkMYLiBHnt8YTQESmJVES2JMkW1XdOoB/B7zLyYn2TOOZTEoyqGdnxZY1S5u9FAtQ55YjEyV0Rm5Jex1/7HF59/9f2rb9++/ubdi1/944vXX7z55rsXv/pP//jiu9e/+eblV49/9s3Lr1+9+NWLb77/4qtXL99++vbVyy/evXn74vefvHj9zZev/uuLX9Xf/90nL1598+71u9ev3jd++uF3n33z/defv3r78Auf/Bjk29ffvvr03ZtPf/P2zffffPnikxffvvnuodmbbx7/oYdQrd3+en7y4ncvfvVpG+uv58M/8uXrt6++eP8r6/ef/FHs9rPYfxyx3vJDxIf//P1HYvTj/v0sWnw82oBo6+d9+9nR1vaR4PP8VJb8heDjI7EDYnPH8zx4XdjxBbFv2vHbnQH2syG7GWC1wAzQo68wvXrRw68fJtjbN5+/+fbN23cfixs/RX2I+fbVf/7+1XfvPvv166/evXr73eMvfff+H3l/efjxuvHJi59+42d/+sO/99Wb37z+7t3rLz59/Icf/9X//P3Lrx769ngxevP264er0ycvvnjz9bcv3758vCD96sX/+vQH3z9eymb5/d89/N/HDuh8trdR+XQNiF400zD7Z9XgMP1n4/MC8z86R4crQDQ9Mbfz4NkxeCv3Li857l5eGlwBnofb3MDahyn/5asvXn/56u2nD9Ps89ffPE2zj0z+/mPA8cfZepyR37x7++arzz5/9duX//D6caL+449xP3v4uy9f/3Bh+McXz396uCD8+vXbh4vIh4XIu999+9inf3j99t33T5P/h06+/41P//3jkuRx/fLu5dMVYJY/uDz89//2/7x4PNw/jPtDmO/fvvzm9fdff/rr71999ekXr7766n28P7q+PP7Bq89+6MzLh5P8uPx58/27b79/94dLpzs9/s3bV6++ef+vfPu7z56uXJ/9+u2brz97/c1DsBe/+vXLr7579XgV+1iSPlzGvn7
@ljm42
ljm42 / fix_docker_client
Created September 1, 2019 16:38
Temporary fix the Docker client for Unraid
#!/bin/bash
# Version 1.0
# Latest version of this script: https://gist.github.com/ljm42/74800562e59639f0fe1b8d9c317e07ab
# This script was tested on Unraid 6.7.2, although it will likely work in previous versions as well. It should not be needed in 6.8
# It will solve the problem reported here: https://forums.unraid.net/bug-reports/stable-releases/dockers-wanting-to-update-but-dont-in-the-end-r618/
# where due to changes in the Docker Hub API, the Unraid Docker client reported that certain Dockers needed to be updated.
# Thanks for @bluemonster for coming up with the fix!
@jmound
jmound / refresh.sh
Last active August 7, 2023 10:33
Bash function to refresh all pods in all deployments by namespace
# based on the "patch deployment" strategy in this comment:
# https://github.com/kubernetes/kubernetes/issues/13488#issuecomment-372532659
# requires jq
# $1 is a valid namespace
function refresh-all-pods() {
echo
DEPLOYMENT_LIST=$(kubectl -n $1 get deployment -o json|jq -r .items[].metadata.name)
echo "Refreshing pods in all Deployments"
for deployment_name in $DEPLOYMENT_LIST ; do
@itay-grudev
itay-grudev / README.md
Last active March 19, 2021 19:53
BT WiFi Maintain Connectivity Script

BT WiFi Maintain Connectivity Script

Usage

btauth --user USER_OR_EMAIL --pass PASSWORD # To Authenticate with the BT WiFi
btmaintain --user USER_OR_EMAIL --pass PASSWORD # To maintain a connection and re-authenticate automatically
nohup btmaintain --user USER_OR_EMAIL --pass PASSWORD 2>&1 >/dev/null & # Same as above but ran in background
@cabal95
cabal95 / vm-backup.sh
Created July 25, 2015 17:53
I use this script to backup my QEMU/KVM/libVirt virtual machines. The script requires KVM 2.1+ since it uses the live blockcommit mode. This means the data in the snapshot disk is rolled back into the original instead of the other way around. Script does NOT handle spaces in paths.
#!/bin/bash
#
BACKUPDEST="$1"
DOMAIN="$2"
MAXBACKUPS="$3"
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]"
exit 1
@sscarduzio
sscarduzio / relog.sh
Created August 24, 2014 21:20
BtWiFi_with_FON automatic login written as a bash script. I have this running every 10 minutes on my raspberry pi
#!/bin/bash
# CONF
DBG=true
[email protected]
RELOG_PASSW=xxxxxxxxxxxxxxx
# END CONF