osborn + tip   67

A Better Git Blame
git log -p -M --follow --stat -- path/to/file
git  tip  201709 
september 2017 by osborn
Make Sudo Sessions Last Longer in Linux
Defaults env_reset,timestamp_timeout=30
linux  tip  sysadmin 
april 2017 by osborn
Compare JavaScript Array of Objects to Get Min / Max - Stack Overflow
myArray.reduce(function(prev, curr) {
return prev.Cost < curr.Cost ? prev : curr;
}
javascript  tip  array 
november 2016 by osborn
linux - Exclude directory from find . command - Stack Overflow
find build -not \( -path build/external -prune \) -not \( -path build/blog -prune \) -name \*.js

find -name "*.js" -not -path "./directory/*"
bash  find  tip 
october 2016 by osborn
Git - Searching
git log -SZLIB_BUF_MAX --oneline
git  tip 
september 2016 by osborn
javascript - Angular UI-Grid filtering by strict match - Stack Overflow
filter: {
condition: uiGridConstants.filter.EXACT,
placeholder: 'your email'
}
angular  uigrid  tip 
august 2016 by osborn
javascript - Stdout buffer issue using node child_process - Stack Overflow
exec(command, {maxBuffer: 1024 * 500}, function(error, stdout, stderr){ callback(error, stdout); });
node  exec  tip 
march 2016 by osborn
javascript - Fastest way to copy file in node.js - Stack Overflow
function copyFile(source, target, cb) {
var cbCalled = false;

var rd = fs.createReadStream(source);
rd.on("error", function(err) {
done(err);
});
var wr = fs.createWriteStream(target);
wr.on("error", function(err) {
done(err);
});
wr.on("close", function(ex) {
done();
});
rd.pipe(wr);

function done(err) {
if (!cbCalled) {
cb(err);
cbCalled = true;
}
}
}
nodejs  fs  tip 
march 2016 by osborn
How to find directories that do not have a certain file
find -type d '!' -exec test -e "{}/folder.jpg" ";" -print
bash  find  tip 
november 2015 by osborn

Copy this bookmark:



description:


tags: