Skip to content

Instantly share code, notes, and snippets.

View stroebs's full-sized avatar
🕵️
Up in ur networks sniffin' ur packets

Den Stroebel stroebs

🕵️
Up in ur networks sniffin' ur packets
View GitHub Profile
@stroebs
stroebs / config.yml
Last active December 10, 2021 14:23
mac-dev-playbook config.yml
configure_dock: true
dockitems_remove:
- Launchpad
- TV
- Podcasts
- 'App Store'
- Contacts
- Photos
- Music
- News
@stroebs
stroebs / kernel-cleanup.sh
Created January 10, 2018 08:28
Ubuntu Kernel cleanup one-liner
for kernel in `dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+' | grep -Fv $(uname -r) |grep "ii" |awk '{print $2}'` ; do dpkg --purge $kernel; done
@stroebs
stroebs / make-chr.sh
Last active November 12, 2024 16:16
Install Mikrotik CHR on a Digital Ocean droplet (Ubuntu 20.04 tested working 29/03/2022)
#!/bin/bash
#
# Digital Ocean Ubuntu 18.04 x64 Droplet with "Regular Intel" CPU.
# Running:
# git clone https://gist.github.com/54fc09734a3911e91eeeb43434f117df.git
# cd 54fc09734a3911e91eeeb43434f117df/
# chmod +x make-chr.sh
# ./make-chr.sh
#
# Once the reboot is done, login with root/CHANGEME and change the password!
@stroebs
stroebs / backup-daily.sh
Created October 28, 2017 00:07
Simple tar + rsync backup method
#!/bin/bash
DATE=$(date +%Y%m%d)
FILE="backup-$DATE.tar.gz"
LOG="/tmp/backup-$DATE.log"
RSYNC_PASSWORD="supersecret"
RSYNC_CMD="-a --delete /$FILE rsync://[email protected]:/backup-dir/daily/"
export RSYNC_PASSWORD=$RSYNC_PASSWORD
cd /
tar -cpzf $FILE \
--exclude=/*.tar.gz \
@stroebs
stroebs / cloudflare-update-record.sh
Created April 9, 2016 16:43 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
#!/bin/bash
# CHANGE THESE
auth_email="[email protected]"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)