Skip to content

Instantly share code, notes, and snippets.

Verifying that +abscondment is my Bitcoin username. You can send me #bitcoin here: https://onename.io/abscondment

Keybase proof

I hereby claim:

  • I am abscondment on github.
  • I am abscondment (https://keybase.io/abscondment) on keybase.
  • I have a public key whose fingerprint is 1519 0911 87F4 C057 D53F 325E 630C 15E6 BAC0 1E36

To claim this, I am signing this object:

(defn cap-first [s]
(loop [[w & words] (re-seq #"[^ ]+[ ]*" s)
res '()]
(if (nil? w) (clojure.string/join (reverse res))
(let [W (clojure.string/capitalize w)]
(if (not= w W)
(str (clojure.string/join (reverse res))
W
(clojure.string/join words))
(recur words (conj res w)))))))
brendan@stubb:~/code/paperkarma/server$ git fsck | wc -l
Checking object directories: 100% (256/256), done.
Checking objects: 100% (43480/43480), done.
82
brendan@stubb:~/code/paperkarma/server$ git fsck --no-reflogs | wc -l
Checking object directories: 100% (256/256), done.
Checking objects: 100% (43480/43480), done.
85
brendan@stubb:~/code/paperkarma/server$ git gc
Counting objects: 48050, done.

Okay, Kids, Here We Go...

"What You Need To Know About Your Next Domain Name"

I highly respect what Fred has done, and continues to do, to help entrepreneurs and for that I'd like to "give back" myself... and I'm posting anonymously as I have nothing to gain in anyway by sharing this information...

I'm a serial Internet entrepreneur since 1990 (pre-Web). I've been involved in hundreds of projects online (have built more than one Top 500 web site) and I've been a very active and successful domain name 'trader' along the way.

I've personally owned over 50,000 domains on and off during the past 15+ years. I've been involved in some million$+ deals, and have owned some domains that you know of (but I won't name). I've also been involved in 1,000s of smaller deals. So this is a topic I know very well.

Getting Pindah 0.1.3.dev to work with JRuby 1.7.2

Initial setup:

  • Java 7
  • JRuby 1.7.2 in 1.9 mode
  • Clean install from rbenv
brendan@flask:~/code$ ruby -v
brendan@ishmael:~$ cat `which resolve`
#!/bin/sh
(echo $1 && curl -LIs "$1" | grep '^Location' | cut -d' ' -f2) | cat -n
brendan@ishmael:~$ resolve http://t.co/zplRZif
1 http://t.co/zplRZif
2 http://wck.me/1SX?xvpt
3 http://tivtter.com/r3
4 http://tivtter.com/r3/
@abscondment
abscondment / bench_jruby-1.7.0.txt
Created November 28, 2012 21:48
Stupid benchmark for various max methods
brendan@flask:~$ ruby -v
jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on Java HotSpot(TM) 64-Bit Server VM 1.6.0_37-b06-434-11M3909 [darwin-x86_64]
brendan@flask:~$ ruby max.rb
user system total real
[].max 3.690000 0.170000 3.860000 ( 3.004000)
proc 3.280000 0.170000 3.450000 ( 2.699000)
Math.max 0.850000 0.020000 0.870000 ( 0.783000)
if/else 0.680000 0.030000 0.710000 ( 0.671000)
user system total real
vagrant@precise:/vagrant/paperkarma/server$ sudo gem install pg
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.3 extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
sudo apt-get install libcurl4-openssl-dev libexpat1-dev libgcrypt11-dev
tar xvzf clamz-0.5.tar.gz
cd clamz-0.5
./configure
make
sudo checkinstall -D -y --fstrans=no --nodoc --pkgname='clamz' --pkgversion='0.5' --provides='clamz' --requires='libcurl4-openssl-dev,libexpat1-dev,libgcrypt11-dev' --maintainer='brendan.ribera@gmail.com'