A sample script for connecting to MS SQL Server database using Sequel ORM with the TinyTDS (FreeTDS) adapter.
#!/usr/bin/env ruby
require 'sequel'
require 'tiny_tds'A sample script for connecting to MS SQL Server database using Sequel ORM with the TinyTDS (FreeTDS) adapter.
#!/usr/bin/env ruby
require 'sequel'
require 'tiny_tds'| set status-right "#(cpu.rb)" | |
| set status-interval 5 |
| #!/usr/bin/env sh | |
| cp ~/Library/Application\ Support/Google/Chrome/Default/History /tmp/chrome-history | |
| sqlite3 /tmp/chrome-history "SELECT url FROM urls" |
| # HTTP Status Cats | |
| # Apache (htaccess) config created by @dave1010 | |
| # Licensed CC BY 2.0 | |
| # Images CC BY 2.0, from GirlieMac's photostream: | |
| # http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/ | |
| # Usage: copy save this file as .htaccess or add it to your httpd.conf | |
| ErrorDocument 404 '<a href="http://www.flickr.com/photos/girliemac/6508022985/" title="404 - Not Found by GirlieMac, on Flickr"><img src="http://farm8.staticflickr.com/7172/6508022985_b22200ced0.jpg" width="500" height="400" alt="404 - Not Found"></a>' |
| easterEgg.BadWorder.list={ | |
| "4r5e":1, | |
| "5h1t":1, | |
| "5hit":1, | |
| a55:1, | |
| anal:1, | |
| anus:1, | |
| ar5e:1, | |
| arrse:1, | |
| arse:1, |