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
// use like this: | |
// process.emit( 'app:log', module, arg1, arg2, ..., argN ); | |
var Module = require('module'); | |
function logConsole(method, module) { | |
var args = [(new Date()).toJSON(), method]; | |
var index = 1; | |
if (module instanceof Module) { |
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
# Get the total number of lines added and deleted in your project in 2016 | |
git log --numstat --pretty="%H" --since="2015-12-31" --until="2017-01-01" --branches="master" | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}' |
- Configure shutter to save your screenshot directly intoyour dropbox public folder.
- Place
dropbox-puburl.sh
in the location of your choice (here~/tools/bin/dropbox-puburl.sh
) - Place
dropbox-screenshot-puburl.desktop
into/usr/share/applications
(you need to be root) - Eventually update the path to your Bash script
- exec
sudo update-desktop-database
- Quit and restart shutter. Go into
Preferences > Actions > Open With
and select Dropbox copy public file URL to clipboard