A CLI tool to add public keys to your host. The keys are pulled via GitHub API.
Lists all keys, it will break down keys by GitHub username.
gh_keys list
GitHub Keys:
package main | |
import ( | |
"bufio" | |
"github.com/gocql/gocql" | |
"log" | |
"os" | |
"regexp" | |
) |
./cassandra-stress read n=100000 -node 192.168.1.50 | |
Warming up READ with 50000 iterations... | |
Failed to connect over JMX; not collecting these stats | |
INFO 18:41:53 Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) | |
Connected to cluster: Edison Cluster | |
INFO 18:41:53 New Cassandra host /192.168.1.50:9042 added | |
Datatacenter: datacenter1; Host: /192.168.1.50; Rack: rack1 | |
Sleeping 2s... | |
Running with 4 threadCount | |
Running READ with 4 threads for 100000 iteration |
#! /usr/bin/ruby | |
require 'rubygems' | |
require 'ruby-growl' | |
msg = `/opt/local/bin/fortune` | |
g = Growl.new('localhost', 'Fortune Growler', ['Fortune'], nil, "GrowlP4ss"); | |
g.notify 'Fortune', 'Fortune Growler', msg |
#!/usr/bin/ruby | |
# | |
# Generate a screensaver for your Nook with the contents of the current XKCD RSS feed | |
# http://xkcd.com/rss.xml | |
# | |
# Requirements: | |
# * Hpricot | |
# Optional: | |
# * RMagick | |
# |
#! /usr/bin/env node | |
// Require the filesystem library | |
var fs = require('fs'); | |
// Connect to MySQL | |
var Client = require('mysql').Client, client = new Client(); | |
client.user = 'rails'; | |
client.connect(); | |
client.query('USE scratch'); |
inm-bradfordcp-mbp:some_folder bradfordcp$ cat .git/hooks/pre-commit | |
#!/bin/sh | |
# | |
# Regenerates documentation and adds it to the commit | |
# | |
echo | |
echo "Regenerating Documentation" | |
echo | |
rake doc:generate | |
echo |
<?php | |
// Location where we are storing the cache | |
$CACHE_DIRECTORY = dirname(dirname(__FILE__)) ."/statics"; | |
// Set the lifetime of cached pages | |
$CACHE_LIFETIME = (24 * 60 * 60); // 24 Hours * 60 Minutes (per hour) * 60 Seconds (per minute) | |
// Grab the URL to proxy, strip out the host as a security measure | |
$url = null; |
# Package Maintainer: Increment phusion_release to match latest release available | |
%define phusion_release 2011.03 | |
%define _prefix /opt/ruby-enterprise | |
Summary: Ruby Enterprise Edition (Release %{phusion_release}) | |
Name: ruby-enterprise | |
Vendor: Phusion.nl <info@phusion.nl> | |
Packager: Christopher Bradford <bradfordcp@gmail.com> | |
Version: 1.8.7 | |
Release: 7%{?dist} |
for (NSString *family in [UIFont familyNames]) { | |
NSLog(@"Family: %@", family); | |
for (NSString *font in [UIFont fontNamesForFamilyName:family]) { | |
NSLog(@" - %@", font); | |
} | |
NSLog(@""); | |
} |