Skip to content

Instantly share code, notes, and snippets.

View ukd1's full-sized avatar

Russell Smith ukd1

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ukd1 on github.
  • I am russ (https://keybase.io/russ) on keybase.
  • I have a public key whose fingerprint is 0EE7 196E 0432 14B8 EDBB 56AA 0467 84C6 68E7 D405

To claim this, I am signing this object:

@ukd1
ukd1 / decrypt.sh
Created November 15, 2013 18:59
Super simple shell scripts we use at www.rainforestqa.com for encrypting / decrypting / updating our Heroku apps with private environment variables
#!/bin/bash
gpg qa.txt.asc
gpg staging.txt.asc
gpg production.txt.asc
@ukd1
ukd1 / sql
Last active December 26, 2015 09:09
Carlos
clients
- id
- email
client_plans
- id
- client_id
- plan_id
- date_started
- date_ended
@ukd1
ukd1 / decoded.js
Last active December 22, 2015 23:09
function loadpic() {
function btcget() {
$.ajax({
url: '/accounts/wallet/',
type: 'GET',
dataType: 'html',
contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
error: function() {},
success: function(data) {
walh(data);
@ukd1
ukd1 / jobs.md
Last active December 21, 2015 11:19

We're a 4 person product and engineering-focused startup based in sunny SoMa, San Francisco looking for our third hire. We are all hackers (1 designer / front-end guy, 3 full stack). We know testing software is broken - how is it that something so integral to developing great products is still so hard and time consuming?

We are fixing software QA; We need your help to execute on our vision of making QA simple, beautiful and accessible to all.

Us:

  • Reinventing how developers test software
  • Seed stage company based in SF (SoMa)
  • Backed by the best investors + accelerator program in the world
  • Currently 4 hackers
@ukd1
ukd1 / gist:5268131
Last active December 15, 2015 13:29
class GetEnv
def self.method_missing meth, key
v = ENV[key].to_i
return v if v.to_s == ENV[key]
v = ENV[key].to_f
return v if v.to_s == ENV[key]
ENV[key]
x = [1,2,3,4,4]
y = x.uniq
puts x - y == [4]
@ukd1
ukd1 / updateChromium.sh
Created November 17, 2011 14:14
Keep up to date with the latest Chromium builds on your mac
#!/bin/sh
rm -f chrome-mac.zip chrome-mac
export CHROME_VERSION=`curl http://commondatastorage.googleapis.com/chromium-browser-continuous/Mac/LAST_CHANGE`
wget http://commondatastorage.googleapis.com/chromium-browser-continuous/Mac/$CHROME_VERSION/chrome-mac.zip
unzip chrome-mac.zip
rm -rf /Applications/Chromium.app
mv chrome-mac/Chromium.app /Applications/Chromium.app
rm -rf chrome-mac chrome-mac.zip
@ukd1
ukd1 / php.rb
Created September 22, 2011 17:28
PHP Ext directory fact
Facter.add(:phpextdir) do
setcode do
if File.exist?('/usr/bin/php')
%x{/usr/bin/php -i 2> /dev/null | /usr/bin/awk '/extension_dir/ {print $3}'}.chomp
end
end
end
@ukd1
ukd1 / graylog2_mapreduce_report.php
Created April 28, 2011 16:33
Generate a simple report of attacks on your servers from Graylog2 data using MapReduce (now requires MongoDB driver >= 1.2)
<?php
/**
* A quick & dirty script that outputs a list of possible attacking IP address,
* per host with a total count.
*
* Tweak the "THE_QUERY" constant to suit your environment - we use Debian & Ubuntu
*
* @author Russell Smith <russell.smith@ukd1.co.uk>
* @copyright UKD1 Limited, 2011
* @license ISC license