Skip to content

Instantly share code, notes, and snippets.

View ukd1's full-sized avatar

Russell Smith ukd1

View GitHub Profile
@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]
@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 / 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 / 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 / pca.js
Last active March 28, 2016 17:56
use webtask.io + twilio to find things on PCA fast.
var request = require('request');
return function (context, callback) {
var required_params = ['TWILIO_AUTH_TOKEN', 'TWILIO_ACCOUNT_SID', 'TWILIO_NUMBER', 'SEARCH', 'TO'];
for (var p in required_params)
if (!context.data[required_params[p]])
return callback(new Error('The `' + required_params[p] + '` parameter must be provided.'));
function message(to, message) {
request({
@ukd1
ukd1 / http_proxy.go
Created November 5, 2014 17:49
A simple http proxy in go
package main
import (
"log"
"net/http"
"net/http/httputil"
)
func main() {
director := func(req *http.Request) {
docker run --rm -it -v "$(pwd)":/app -w /app crystallang/crystal:latest sh -c 'crystal build --release src/hello.cr'
class A
def version
self.class::VERSION || 1
end
end
class B < A
VERISON = 2
end
function faucet(session) {
// send $0.10 USD at current exchange rates
let amt = 0.1
let count = (session.get('count') || 0) + amt
session.set('count', count)
Fiat.fetch().then((toEth) => {
session.sendEth(toEth.USD(amt))
sendMessage(session, `Sent ${amt} 💰🤑💰`)
@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