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
| Thumbs.db | |
| .Trash | |
| # Exclude the build directory | |
| /build | |
| # Exclude OS X folder attributes | |
| .DS_Store | |
| # Exclude user-specific XCode 3 and 4 files |
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 http = require('http-get'), | |
| HTML5 = require('html5'), | |
| Script = process.binding('evals').Script, | |
| util = require('util'), | |
| jsdom = require('jsdom'), | |
| window = jsdom.jsdom(null, null, {parser: HTML5}).createWindow(), | |
| url = require('url'); | |
| var parser = new HTML5.Parser({ | |
| document: window.document |
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 -wKU | |
| redis_bin = %x[which redis-server].strip | |
| redis_cli = %x[which redis-cli].strip | |
| redis_pid = '/usr/local/var/run/redis.pid' | |
| redis_cfg = '/usr/local/etc/redis.conf' | |
| if File.exists? redis_pid | |
| ## stop redis | |
| print 'stopping redis-server...' |
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
| function pop_file(&$files) | |
| { | |
| ## single file | |
| if (!is_array($files['name'])) { | |
| $temp = $files; | |
| $files = array('name' => array()); | |
| return $temp; | |
| } | |
| ## as array |
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/local/bin/ruby | |
| if !File.exist?('/usr/local/var/postgres/postmaster.pid') && ARGV[0] == 'start' | |
| p %x[pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start] | |
| p 'PG Started' | |
| end | |
| if File.exist?('/usr/local/var/postgres/postmaster.pid') && ARGV[0] == 'stop' | |
| %x[pg_ctl -D /usr/local/var/postgres stop -s -m fast] | |
| p 'PG Stopped' |
NewerOlder