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
;; Received 121 bytes from 192.42.93.30#53(g.gtld-servers.net) in 82 ms | |
www.nestersocks.com. 3600 IN CNAME nestersocks.com. | |
nestersocks.com. 86400 IN SOA ns53.domaincontrol.com. dns.jomax.net. 2010043019 28800 7200 604800 86400 | |
nestersocks.com. 3600 IN A 173.203.105.89 | |
nestersocks.com. 3600 IN NS ns53.domaincontrol.com. | |
nestersocks.com. 3600 IN NS ns54.domaincontrol.com. | |
nestersocks.com. 3600 IN TXT "v=spf1 a mx ptr ~all" | |
nestersocks.com. 604800 IN MX 10 aspmx.l.google.com. | |
nestersocks.com. 604800 IN MX 20 alt1.aspmx.l.google.com. |
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
module MigrationHelper | |
#options are: | |
# :pk_table_name | |
# :pk_column_name | |
# :cascade_delete | |
# :cascade_update | |
def add_fk(fk_table_name, fk_column_name, options) | |
fk_table_name = fk_table_name.to_s | |
fk_column_name = fk_column_name.to_s | |
pk_table_name = options[:pk_table_name] || fk_column_name[0, fk_column_name.index("_id") || fk_column_name.length] |
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
LastCall.IgnoreArguments().Constraints( | |
Rhino.Mocks.Constraints.Is.Matching<List<IListable>>(delegate(List<IListable> lst) | |
{ | |
return | |
lst | |
. | |
Count == | |
1 && | |
(( | |
CSkuExtended |
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
module MigrationHelper | |
#options are: | |
# :pk_table_name | |
# :pk_column_name | |
# :cascade_delete | |
# :cascade_update | |
def add_fk(fk_table_name, fk_column_name, options = {}) | |
fk_table_name = fk_table_name.to_s | |
fk_column_name = fk_column_name.to_s | |
pk_table_name = options[:pk_table_name] || fk_column_name[0, fk_column_name.index("_id") || fk_column_name.length].pluralize |
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
ruby-1.9.3-rc1 :001 > module Foo | |
ruby-1.9.3-rc1 :002?> def im_foo; "foo"; end; | |
ruby-1.9.3-rc1 :003 > end | |
=> nil | |
ruby-1.9.3-rc1 :004 > module Bar | |
ruby-1.9.3-rc1 :005?> include Foo | |
ruby-1.9.3-rc1 :006?> def im_bar; "bar"; end; | |
ruby-1.9.3-rc1 :007 > end | |
=> nil | |
ruby-1.9.3-rc1 :008 > class FooBar |
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
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
#log loghost local0 info | |
maxconn 4096 | |
#chroot /usr/share/haproxy | |
user haproxy | |
group haproxy | |
daemon | |
debug |
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 'flymake) | |
;; I don't like the default colors :) | |
(set-face-background 'flymake-errline "red4") | |
(set-face-background 'flymake-warnline "dark slate blue") | |
;; Invoke ruby with '-c' to get syntax checking | |
(defun flymake-ruby-init () | |
(let* ((temp-file (flymake-init-create-temp-buffer-copy | |
'flymake-create-temp-inplace)) |
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
* aptitude purge postgresql-9.1-postgis2 | |
* aptitude purge libgeos-3.3.3 | |
* sudo aptitude install postgresql-server-dev-9.1 | |
* sudo aptitude install checkinstall | |
* sudo aptitude install libproj-dev |
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 | |
if [[ -d /mnt/yavin/hoth ]]; then | |
nice -n15 /usr/bin/rdiff-backup --exclude=/boot --exclude=/dev --exclude=/**/.gvfs --exclude=/media --exclude=/mnt --exclude=/proc --exclude=/sys --exclude=/lib/udev --exclude=/tmp --exclude=/home/scott/.mozilla/firefox/jxg17tdp.default/Cache --exclude=/usr/portage/distfiles --exclude=/var/tmp/portage --exclude=/var/run --exclude=/home/scott/.VirtualBox/HardDisks/SQLData.vdi / /mnt/yavin/hoth/current | |
fi |
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
class MyBase | |
private | |
def priv | |
puts "private" | |
end | |
end | |
class MyDerived < MyBase | |
def foo | |
priv |