Skip to content

Instantly share code, notes, and snippets.

require 'rubygems'
require 'wirble'
require 'irb/completion'
require 'pp'
IRB.conf[:AUTO_INDENT] = true
Wirble.init
Wirble.colorize
class Object
# get all the methods for an object that aren't basic methods from Object
def local_methods
# Terminal Colors
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
# Compilier options
export ARCHFLAGS="-arch x86_64"
export CC=/usr/bin/gcc-4.2
# SVN Keyowkrds
alias svnkeywords='svn propset svn:keywords '\''Rev Revision Id Header'\'''
require 'formula'
class John < Formula
url 'http://www.openwall.com/john/g/john-1.7.8-jumbo-4.tar.bz2'
homepage 'http://www.openwall.com/john/'
md5 '7b50641248e9570341d5474b7c83f087'
fails_with_llvm
def install
require 'formula'
class Wireshark < Formula
url 'http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-1.6.1.tar.bz2'
md5 'dc1e8c9800b64130674b120a183e2308'
homepage 'http://www.wireshark.org'
depends_on 'gnutls' => :optional
depends_on 'pcre' => :optional
depends_on 'glib'
require 'formula'
class Libdnet < Formula
url 'http://libdnet.googlecode.com/files/libdnet-1.12.tgz'
homepage 'http://code.google.com/p/libdnet/'
md5 '9253ef6de1b5e28e9c9a62b882e44cc9'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
production:
adapter: postgresql
database: <database name>
username: <use we created>
password: <Password we gave the user>
host: 127.0.0.1
port: 5432
pool: 75
timeout: 5
require 'rubygems'
require 'wirble'
require 'irb/completion'
require 'pp'
IRB.conf[:AUTO_INDENT] = true
Wirble.init
Wirble.colorize
class Object
# get all the methods for an object that aren't basic methods from Object
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
autocmd FileType ruby,eruby let g:rubycomplete_include_object = 1
autocmd FileType ruby,eruby let g:rubycomplete_include_objectspace = 1
autocmd CursorMoved * silent! exe printf('match IncSearch /\<%s\>/', expand('<cword>'))
set nu " Set line numbers
set nocompatible " We're running Vim, not Vi!
syntax on " Enable syntax highlighting
# ` is an interesting key for a prefix
set-option -g prefix `
# set-option -g prefix C-a
unbind-key C-b
bind-key C-a last-window
bind-key ` last-window
bind-key a send-prefix
# Set ways to split screen
@darkoperator
darkoperator / sysctl.conf
Created July 29, 2011 20:45
sysctl.conf for postgresql
kern.sysv.shmmax=524288000
kern.sysv.shmmin=1
kern.sysv.shmmni=64
kern.sysv.shmseg=16
kern.sysv.semmns=130
kern.sysv.shmall=131072000
kern.sysv.maxproc=2048
kern.maxprocperuid=512