Skip to content

Instantly share code, notes, and snippets.

View CodeMan99's full-sized avatar

Cody A. Taylor CodeMan99

View GitHub Profile
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(''));
});
#!/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'."
/*
* 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();