Skip to content

Instantly share code, notes, and snippets.

View rubenerd's full-sized avatar

Ruben Schade rubenerd

View GitHub Profile
@rubenerd
rubenerd / goodbye-github.md
Created June 6, 2018 06:43
Goodbye, GitHub.

With Microsoft's purchase, I'll be looking at replacements. Maybe a "random scripts" repo hosted elsewhere.

I'll link to it here once set up. Cheers Gists, we had a good run.

@rubenerd
rubenerd / gpdr.md
Last active June 2, 2018 00:07
"We've updated our privacy policy!"

A very rough copy+pasta job for privacy policy updates received by coworkers and I. I thought it'd be fun to run Wordle or something against it to find the most common words and phrases used.


Singapore Airlines Krisflyer

We have updated our Privacy Policy and the KrisFlyer Terms & Conditions to be in line with the new European Union (EU) General Data Protection Regulation (GDPR) from 25 May 2018.


Blubrry

We know we’re not the first, second or third email you’ve received from a company about its updated privacy policy because of changes from the EU concerning data protection regulation. But, we’ve gotta do it. Read below to learn about what we’ve done.

@rubenerd
rubenerd / qemu-nt351.sh
Created May 7, 2018 09:32
Windows NT 3.51 on QEMU
#!/bin/sh
######
## Script to launch Windows NT 3.51 on QEMU without overflow errors
_INSTALLER_ISO="install.iso"
_INSTALL_DISK1="disk1.img"
_TARGET_BLOCK="/dev/adaX"
qemu-system-i386 \
@rubenerd
rubenerd / freebsd-change-userid.sh
Created May 5, 2018 02:58
Change FreeBSD user ID
sudo pw usermod -n $_username -u $_new_id
@rubenerd
rubenerd / vim-lite.log
Created May 2, 2018 22:36
Last version of vim-lite in FreeBSD ports, before vim-console
vim-lite-8.0.1000
Name : vim-lite
Version : 8.0.1000
Installed on : Tue Aug 29 21:29:33 2017 AEST
Origin : editors/vim-lite
Architecture : FreeBSD:11:amd64
Prefix : /usr/local
Categories : editors
Licenses : VIM
Maintainer : [email protected]
@rubenerd
rubenerd / xfce-dropbox.sh
Created April 24, 2018 00:43
Fix Dropbox on Xfce
dropbox stop
dbus-launch dropbox start
@rubenerd
rubenerd / hotel-villa-fontaine-tokyo-speedtest.json
Created March 22, 2018 05:57
Hotel Villa Fontaine Tokyo speedtest
{
"client":{
"rating":"0",
"loggedin":"0",
"isprating":"3.7",
"ispdlavg":"0",
"ip":"222.228.90.224",
"isp":"ARTERIA Networks Corporation",
"lon":"139.7514",
"ispulavg":"0",
@rubenerd
rubenerd / load-ssh-agent.sh
Last active June 13, 2018 05:53
Load ssh-agent
# ssh-agent sets variables
eval $(ssh-agent)
@rubenerd
rubenerd / dither.sh
Last active April 8, 2021 22:15
Dither PNGs to 256 colour
convert -colors 256 -depth 8 +dither "$1" "png8:$1-dithered.png"
@rubenerd
rubenerd / dcfldd-gzip-ssh.sh
Created December 22, 2017 05:27
Local to remote compressed gzip (dcfl)dd
#!/bin/sh
## I used to always pipe (dcfl)dd to gzip over ssh
## Why not just use ssh's compression that uses gzip anyway?
_SOURCE="/dev/xvdb"
_DEST="/dev/xvdb"
_HOST="hostname"
ssh -C "$_HOST" dcfldd if="$_SOURCE" | dcfldd of="$_DEST"