Skip to content

Instantly share code, notes, and snippets.

View trevoro's full-sized avatar

Trevor O trevoro

View GitHub Profile
// Description:
// Milton basic commands.
import Slack from 'node-slack';
let slack = new Slack('https://hooks.slack.com/services/something/reallysecure');
function johnnyBomb (msg) {
slack.send({
text: 'DESTROY! DESTROY!',
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/XGtONsOllXphCmE05tzUEfrA39RbVTY+TQzJqhitaFzb4vd9RNs9MjluaLjVuZTS+vCABYwRosQTfhsyVaVXcZp+fxzQy8RUWJYLhpArScI97tV8oxUORdwmMNVpR+s7E6o13q/PriSUqjduinBCNl/t0E08F1eBi+hx2mhoMVsQUKCF15LtxMAar5DyUtTZfFWFN1+IWwQ8OCNVDCZnzWH42oSn7/AbZ8CxkJiwfGdqDZHZQiAIMp9+OoWDBo6JJkLhLrUYkBDPbbkHX+8b8AEe4Yb97Cg+T0HWLMJeUL+hflH+5j21T15DBE2NL9KbgoJ22JiOr3vD9RsPNI6r trevoro@tethys.local
@trevoro
trevoro / gist:6187221
Created August 8, 2013 18:19
Services to host your website on Dropbox
http://smallvictori.es
http://site44.com
http://harp.io
http://calepin.co
http://scriptogr.am
http://backlift.com
http://pages.github.com
http://pancake.io
http://paperplane.co
http://cloudcannon.com
def check_redis_version
conn = Hiredis::Connection.new
conn.connect('localhost', 6379)
conn.write ['info']
result = conn.read.split(/\r\n/).select {|l|
not (l =~ /^#/ or l == '')
}
k,v = result[0].split(/:/)
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzaXPU1vx1e32yI+BoKBuMNm4xwfWsJiSq5ysa43wtvPmPRYKIu2dwl3mAEpFnJvrCLKSeks6iBUoWgwR+Yb4MhXdLoA9DjbvoNi0PLhTBMLBQ3/aw+W8tID3n4A6gHao+p2RoAU0TZ/caFBTuZVhpvztHC80qwEtEuKMQDr66yJHUhuRFWhPmT6qrdovB9XgyThuXtG/TKTEYKNUJzyCwlwXNn2T2wFc3P8DwvOlyJRRBuINLo7h/iJQEfTzZGVitFm3N4+MkEcF+m7neYCg62pB6jtRxXarD+W7TOqFzIn/ydpqcMYQ68EKmKINvh+n6GgR7kBR5UYvUCdkpfgbdQ== trevoro@Tethys.local
Server Software: nginx/1.4.1
Server Hostname: ec2-184-169-195-109.us-west-1.compute.amazonaws.com
Server Port: 80
Document Path: /
Document Length: 13398 bytes
Concurrency Level: 10
Time taken for tests: 3.732 seconds
Complete requests: 1000
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzaXPU1vx1e32yI+BoKBuMNm4xwfWsJiSq5ysa43wtvPmPRYKIu2dwl3mAEpFnJvrCLKSeks6iBUoWgwR+Yb4MhXdLoA9DjbvoNi0PLhTBMLBQ3/aw+W8tID3n4A6gHao+p2RoAU0TZ/caFBTuZVhpvztHC80qwEtEuKMQDr66yJHUhuRFWhPmT6qrdovB9XgyThuXtG/TKTEYKNUJzyCwlwXNn2T2wFc3P8DwvOlyJRRBuINLo7h/iJQEfTzZGVitFm3N4+MkEcF+m7neYCg62pB6jtRxXarD+W7TOqFzIn/ydpqcMYQ68EKmKINvh+n6GgR7kBR5UYvUCdkpfgbdQ== trevoro@Tethys.local
#!/usr/bin/env ruby
# List all network interfaces using the ifconfig tool
# Returns an array of interface names
def list_interfaces
get_interfaces.keys
end
# Get all interfaces details. Returns a hash
## About the Role
- you're a leader not a manager
- you have no authority but more responsibility
- you must rely on a handful of skills to motivate your team; persuasion, education, and empathy.
- you implement and encourage best practices, mostly using code reviews and technical discussions
## How you'll be evaluated
- up front design conversations - frequency and quality
- availability for assistance / guidance
- proactive solutions; identify problems and propose solutions upstream to senior leadership
package main
import (
"fmt"
"os"
)
type config struct {
V string