Skip to content

Instantly share code, notes, and snippets.

@gbleu
gbleu / 01pibidi.sh
Last active November 10, 2015 13:53
# http://raspberrypihq.com/how-to-turn-a-raspberry-pi-into-a-wifi-router/
# http://fspot.org/plk/piratebox-raspberry-pi.html
# http://fspot.org/plk/hotspot-wifi.html
sudo apt-get install rpi-update
sudo rpi-update
sudo apt-get update
sudo apt-get upgrade
@gbleu
gbleu / aws-elasticbeanstalk-cleanup-versions.js
Last active April 8, 2016 15:45
Delete Old Elasticbeanstalk Versions
var AWS = require('aws-sdk');
AWS.config.region = 'eu-west-1';
var elasticbeanstalk = new AWS.ElasticBeanstalk({apiVersion: '2010-12-01'});
// Restrict the applications to clean
var applicationNames = [];
var maxVersions = 10;
@gbleu
gbleu / xmldiff.py
Last active November 13, 2018 10:01 — forked from dalelane/xmldiff.py
Comparing XML files ignoring order of attributes and elements - see http://dalelane.co.uk/blog/?p=3225 for background
##########################################################################
#
# xmldiff
#
# Simple utility script to enable a diff of two XML files in a way
# that ignores the order or attributes and elements.
#
# Dale Lane (email@dalelane.co.uk)
# 6 Oct 2014
#