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
node devbox { | |
exec { "apt-get update": | |
user => "root", | |
path => [ | |
'/bin', | |
'/usr/bin', | |
] | |
} | |
package { "vim" : | |
ensure => "installed", |
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
find -type f -exec stat -c "%s %n" {} \;|sort -n|grep -v ".svn" |
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 Player | |
def initialize | |
@hero = nil | |
@health = 20 | |
@danger = 10 | |
@direction = :forward | |
end | |
def play_turn(warrior) | |
@hero = warrior |
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
du --time -h |sort -k 2 |
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 GLOBAL log_output = "FILE"; which may be set by default, I think. | |
SET GLOBAL general_log_file = "/var/log/mysql/my.log"; | |
SET GLOBAL general_log = 'ON'; |
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
// ==UserScript== | |
// @name OWAwesome | |
// @namespace http://takeo.info | |
// @description An attempt to make OWA bearable, and maybe even awesome | |
// @author Toby Sterrett | |
// @include *us-owa.palm.com* | |
// ==/UserScript== | |
// Add jQuery | |
var GM_JQ = document.createElement('script'); |
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
#!/usr/bin/env ruby | |
require "pp" | |
pattern = /^\w+(?!\.)$/ | |
pp pattern =~ 'com.palm.system' | |
pp pattern =~ 'compalmsystem' |
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
var casper = require('casper').create({ | |
verbose: true, | |
logLevel: "debug", | |
pageSettings: { | |
localToRemoteUrlAccessEnabled : true | |
} | |
}); | |
// casper.on('load.finished', function() { | |
// this.log('Page loaded', '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
casperjs casper_tester.js --proxy-type=none |
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
#!/usr/bin/env ruby | |
require 'active_support/all' | |
Time::DATE_FORMATS[:year_month_day] = "%Y/%m/%d" | |
beginning_of_week = DateTime.now.beginning_of_week | |
end_of_week = beginning_of_week + 4.days | |
puts beginning_of_week.to_s(:year_month_day) + '-' + end_of_week.to_s(:year_month_day) |