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 http = require('http'); | |
function http_collect(url, callback) { | |
http.get(url, function(resp) { | |
var data = []; | |
resp.setEncoding('utf8'); | |
resp.on('data', Array.prototype.push.bind(data)); | |
resp.on('end', function() { | |
return callback(null, data.join('')); | |
}); |
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/sh | |
git ls-files "*.mak" | sed 'p; s/mak$/mako/' | xargs -n2 git mv; | |
bad=$(git grep -l '\.mak\b') | |
echo $bad | xargs -n1 sed -i 's/\.mak\b/.mako/' | |
git add $bad | |
git commit -m "Change '.mak' extension to '.mako'." |
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
/* | |
* Home directory: /var/lib/jenkins/ | |
* Example Job Workspace: /var/lib/jenkins/.jenkins/workspace/Sterling-make-build/ | |
*/ | |
def command = """ | |
apt-cache showpkg python3-pip | |
"""; | |
def proc = command.execute(); | |
proc.waitFor(); |
NewerOlder