Skip to content

Instantly share code, notes, and snippets.

View rubenerd's full-sized avatar

Ruben Schade rubenerd

View GitHub Profile
@rubenerd
rubenerd / usb-bootable-sophos.sh
Last active August 29, 2015 14:07
Create bootable Sophos UTM key
#!/bin/sh
## Creates bootable USB key of Sophos UTM ISO. Takes destination block device as argument
TARGET=$1
curl -OL http://download.astaro.com/UTM/v9/software_appliance/iso/asg-9.207-19.1.iso
curl -OL http://download.astaro.com/UTM/v9/software_appliance/iso/asg-9.207-19.1.iso.md5
md5sum -c $VERSION.md5 | grep 'OK' &> /dev/null
@rubenerd
rubenerd / randomart-cowboy-boot.txt
Last active August 29, 2015 14:07
Cowboy boot RSA randomart
+--[ RSA 4096]----+
| |
| |
| |
| o . .. |
| = S+ o |
| . =E.+ |
| +o+o |
| BB . |
| +=ooo |
@rubenerd
rubenerd / bash-source-origin.sh
Created October 17, 2014 06:36
bash source command example, origin
#!/usr/local/bin/bash
WORD="Bird"
SANDWICH="Grilled cheese"
@rubenerd
rubenerd / bash-source-dest.sh
Created October 17, 2014 06:37
bash source command example, destination
#!/usr/local/bin/bash
source ./first.sh
echo $WORD
@rubenerd
rubenerd / sh-source-dest.sh
Created October 17, 2014 06:38
sh source command example
#!/bin/sh
## Example comparison of bash's source and sh "."
. ./first.sh
echo $WORD
@rubenerd
rubenerd / inline-gist-jekyll.html
Last active August 29, 2015 14:07
Inline import of gists using Jekyll
{% gist RubenSchade/3f8e385647c1ded6bfe6 %}
@rubenerd
rubenerd / trusty-sources.list
Created October 20, 2014 06:59
Ubuntu sources.list with mirrors.txt
## /etc/apt/sources.list for Ubuntu 14.04 LTS
## Using mirror.txt pool for geographically-close servers
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse
@rubenerd
rubenerd / mirror.txt
Created October 20, 2014 07:02
Example Ubuntu mirror.txt
http://mirror.optus.net/ubuntu/
http://ubuntu.mirror.serversaustralia.com.au/ubuntu/
http://mirror.netspace.net.au/pub/ubuntu/
http://ftp.iinet.net.au/pub/ubuntu/
http://mirror.overthewire.com.au/ubuntu/
http://ubuntu.mirror.crucial.com.au/
http://mirror.as24220.net/pub/ubuntu-archive/
http://mirror.internode.on.net/pub/ubuntu/ubuntu/
http://ubuntu.mirror.uber.com.au/archive/
http://mirror.as24220.net/pub/ubuntu/
@rubenerd
rubenerd / randomart-camel.txt
Created October 20, 2014 23:27
Camel RSA randomart
+--[ RSA 4096]----+
| |
| o .|
| . . . ++|
| . o o +.E|
| . + . S o. o ..|
| = o o .. o .|
| . . . . o |
| .. . . |
| .. . |
@rubenerd
rubenerd / debian-serverbear.sh
Last active August 29, 2015 14:08
Building Debian system for ServerBear tests
#!/bin/sh
## Script for running private ServerBear tests on Debian
PLAN="Some Hosting Plan"
EMAIL="[email protected]"
sudo -s
apt-get update
apt-get dist-upgrade