This file contains hidden or 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
| alias tosubl='xclip -selection clipboard|subl --wait 1 --command new_file --command paste' |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |