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
### Keybase proof | |
I hereby claim: | |
* I am erikh on github. | |
* I am erikh (https://keybase.io/erikh) on keybase. | |
* I have a public key whose fingerprint is 9CE7 40F0 B50A F759 6CAA BC2A FB33 42F3 4283 7F28 | |
To claim this, I am signing this object: |
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
set-window-option -g mode-keys vi | |
set-option -g status off | |
set-option -g default-command "/bin/zsh -l" | |
set-option -g prefix C-f | |
set-option -g prefix2 C-b | |
set-option -g mode-mouse off | |
bind-key 'P' run-shell "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer" | |
bind-key 'Y' run-shell "tmux show-buffer | pbcopy" | |
bind-key f last-pane | |
bind-key C-f select-pane -t :.+ |
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 'date' | |
require 'time' | |
# | |
# General example, these would be types that would exist in DBI proper | |
# | |
module DBI | |
class DBI::Type | |
def self.parse(obj, type=nil, dbh=nil) |
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
set nocp | |
set autoindent | |
set smartindent | |
set statusline=%F\ \[%M%R\] | |
set laststatus=2 | |
set titlestring=vim:\ %F\ \[%M%R\] | |
set title | |
set number | |
set hls | |
set noswf |
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
set nocp | |
set autoindent | |
set smartindent | |
set statusline=%F\ \[%M%R\] | |
set laststatus=2 | |
set titlestring=vim:\ %F\ \[%M%R\] | |
set title | |
set number | |
set hls | |
set noswf |
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
# $Id$ | |
$:.push 'lib' | |
require 'rake/testtask' | |
require 'rake/packagetask' | |
require 'rake/gempackagetask' | |
require 'rake/rdoctask' | |
require 'fileutils' | |
require 'gk-lib' |
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
Mail relay testing | |
Connecting to christhelinuxguy.com for anonymous test ... | |
<<< 220 neural.christhelinuxguy.com ESMTP Postfix (Debian/GNU) | |
>>> HELO www.abuse.net | |
<<< 250 neural.christhelinuxguy.com | |
Relay test 1 | |
>>> RSET | |
<<< 250 2.0.0 Ok | |
>>> MAIL FROM:<spamtest@abuse.net> |
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
select * from candidate_versions where updated_at between 'date1' and 'date2' and candidate_id=? union select max(updated_at) from candidate_versions where updated_at < 'date1' and candidate_id=? and rownum = 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
a = [{ :one => 1, :two => 2 }, { :one => 1, :two => 2 }, { :one => 2, :two => 1 }, { :one => 3, :two => 2 }] | |
def uniq(ary) | |
b = [] | |
c = ary.dup | |
while c.length > 1 do | |
d = c.pop | |
found = false | |
c.each do |e| |
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
################################################################ | |
# | |
# titlebar.rb - context-sensitive xterm title manipulation | |
# | |
# based off of titlebar.pl by erikh which is does the same thing | |
# | |
# By Erik Hollensbe <erik@hollensbe.org> | |
# | |
################################################################ | |
# |
OlderNewer