This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mtodd:master$ git push origin master | |
fatal: '/data/repositories/1/13/3e/ac/mtodd/mtodd.git' does not appear to be a git repository | |
fatal: The remote end hung up unexpectedly | |
mtodd:master$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
homebrew:master$ brew install redis | |
==> Downloading http://redis.googlecode.com/files/redis-1.2.0.tar.gz | |
######################################################################## 100.0% | |
==> make | |
/Developer/usr/bin/llvm-gcc -c -O4 -march=core2 -mmmx -msse4.1 -w -pipe -g -rdynamic -ggdb adlist.c | |
/Developer/usr/bin/llvm-gcc -c -O4 -march=core2 -mmmx -msse4.1 -w -pipe -g -rdynamic -ggdb ae.c | |
/Developer/usr/bin/llvm-gcc -c -O4 -march=core2 -mmmx -msse4.1 -w -pipe -g -rdynamic -ggdb anet.c | |
/Developer/usr/bin/llvm-gcc -c -O4 -march=core2 -mmmx -msse4.1 -w -pipe -g -rdynamic -ggdb dict.c | |
/Developer/usr/bin/llvm-gcc -c -O4 -march=core2 -mmmx -msse4.1 -w -pipe -g -rdynamic -ggdb redis.c | |
/Developer/usr/bin/llvm-gcc -c -O4 -march=core2 -mmmx -msse4.1 -w -pipe -g -rdynamic -ggdb sds.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redis_version: 1.02 | |
uptime_in_seconds: 4832275 | |
uptime_in_days: 55 | |
connected_clients: 68 | |
connected_slaves: 0 | |
used_memory: 210904493 | |
changes_since_last_save: 1941 | |
bgsave_in_progress: 0 | |
last_save_time: 1263793707 | |
total_connections_received: 34103 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
******************************************************************************** | |
http://search.twitter.com/search.json?q=from%3Amtodd&page=1&rpp=100 | |
[7656470263, 7654147234, 7654137117, 7654092464, 7654013145, 7653733718, 7653725378, 7653259526, 7652732857, 7652557065, 7650686822, 7650655727, 7650162881, 7649108511, 7649055983] | |
******************************************************************************** | |
http://search.twitter.com/search.json?q=from%3Amtodd&page=2&rpp=100 | |
[7656470263, 7654147234, 7654137117, 7654092464, 7654013145, 7653733718, 7653725378, 7653259526, 7652732857, 7652557065, 7650686822, 7650655727, 7650162881, 7649108511, 7649055983] | |
******************************************************************************** | |
http://search.twitter.com/search.json?q=from%3Amtodd&page=3&rpp=100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
geoip-maxmind-c:master$ ./README.OSX | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ./install-sh -c -d | |
checking for gawk... no | |
checking for mawk... no | |
checking for nawk... no | |
checking for awk... awk | |
checking whether make sets $(MAKE)... yes | |
checking for gcc... gcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'pp' | |
unless self.class.const_defined? "IRB_RC_HAS_LOADED" | |
# Log to STDOUT if in Rails | |
if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER') | |
require 'logger' | |
RAILS_DEFAULT_LOGGER = Logger.new(STDOUT) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
r = Redis.new | |
r.incr('key') #=> 1 | |
r.incr('key') #=> 2 | |
r.incr('key') #=> 3 | |
r.rename('key', 'key:processing') #=> "OK" | |
r.incr('key') #=> 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
geoip:master$ gdb rubyGNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51 UTC 2009) | |
Copyright 2004 Free Software Foundation, Inc. | |
GDB is free software, covered by the GNU General Public License, and you are | |
welcome to change it and/or distribute copies of it under certain conditions. | |
Type "show copying" to see the conditions. | |
There is absolutely no warranty for GDB. Type "show warranty" for details. | |
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done | |
(gdb) break /Users/mtodd/Projects/xxx/Archive/geoip/geoip.c:191 | |
No source file named /Users/mtodd/Projects/xxx/Archive/geoip/geoip.c. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char *_GeoIP_num_to_addr (GeoIP* gi, unsigned long ipnum) { | |
char *ret_str; | |
char *cur_str; | |
int octet[4]; | |
int num_chars_written, i; | |
ret_str = malloc(sizeof(char) * 16); | |
cur_str = ret_str; | |
for (i = 0; i<4; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PATH="/usr/local/postgresql83/bin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/opt/local/lib/jruby/bin:/Users/mtodd/.rip/active/bin:$PATH" | |
/usr/local/bin/ruby $* |