Skip to content

Instantly share code, notes, and snippets.


Aaron Bell systembell

View GitHub Profile
systembell /
Created Aug 17, 2020
jenkins-update-ec2-ami updated for python3
import requests
import os
import boto.ec2
import sys
import re
build_url = os.environ['BUILD_URL']
jenkins_base_url = os.environ['JENKINS_URL']

Keybase proof

I hereby claim:

  • I am systembell on github.
  • I am systembell ( on keybase.
  • I have a public key ASAegEd2n-6LV4-4GF54DT3m80dPf-jco6Oncri-alN8Iwo

To claim this, I am signing this object:

View gist:62b07aa94ea185a13fdd
### Keybase proof
I hereby claim:
* I am pravka on github.
* I am pravka ( on keybase.
* I have a public key whose fingerprint is 122B 1B07 4641 819F D4A6 C52C DB5F A4D5 B440 AE38
To claim this, I am signing this object:
systembell /
Created Feb 25, 2014
openstack (havana) nova: instance in error state cleanup script
echo "Enter your MySQL user"
echo "Enter your MySQL user password"
echo "Enter your MySQL host"
View iterm2.zsh
# Usage:
# source iterm2.zsh
# iTerm2 window/tab color commands
# Requires iTerm2 >= Build
tab-color() {
echo -ne "\033]6;1;bg;red;brightness;$1\a"
echo -ne "\033]6;1;bg;green;brightness;$2\a"
echo -ne "\033]6;1;bg;blue;brightness;$3\a"
systembell / wan-up
Last active Apr 5, 2016
Selective VPN routing in Tomato
View wan-up
# This code goes in the WAN UP section of the Tomato GUI.
# To list the current rules on the router, issue the command:
# iptables -t mangle -L PREROUTING
# Flush/reset all the rules to default by issuing the command:
# iptables -t mangle -F PREROUTING
# First it is necessary to disable Reverse Path Filtering on all
systembell / create_ebs.rb
Created May 12, 2012 — forked from lusis/create_ebs.rb
Small script to setup ec2 instances and EBS volumes for my blog post series
View create_ebs.rb
# Create 4 volumes and attach them to hdb
%w[sdi sdj sdk sdl].each do |dev|
volume = :device => "/dev/#{dev}", :size => 5, :availability_zone => hdb.availability_zone
volume.server = hdb
systembell / upload_server_certificate.rb
Created Apr 19, 2012
Upload IAM Server Certificate
View upload_server_certificate.rb
#!/usr/bin/env ruby
require 'fog'
require 'trollop'
STDOUT.sync = true
opts = Trollop::options do
version "#{File.basename($0)} 0.0.1 (c) 2011 Upload IAM Certificate"
systembell / create_instance.rb
Created Apr 19, 2012
Create EC2 VPC Instance
View create_instance.rb
#!/usr/bin/env ruby
require 'fog'
require 'trollop'
require 'yaml'
STDOUT.sync = true
#! /usr/bin/env python
import fileinput
import argparse
from operator import itemgetter
parser = argparse.ArgumentParser()
parser.add_argument('--target-mb', action = 'store', dest = 'target_mb', default = 61000, type = int)
parser.add_argument('vmtouch_output_file', action = 'store', nargs = '+')
args = parser.parse_args()