Skip to content

Instantly share code, notes, and snippets.

View PierrickP's full-sized avatar
🦦

Pierrick PAUL PierrickP

🦦
View GitHub Profile
@Unibozu
Unibozu / README.md
Last active September 8, 2021 06:31
Shutter - Linux - dropbox automatic screenshot url to clipboard

Shutter - Dropbox automatic screenshot URL to Clipboard

Installation

  1. Configure shutter to save your screenshot directly intoyour dropbox public folder.
  2. Place dropbox-puburl.sh in the location of your choice (here ~/tools/bin/dropbox-puburl.sh)
  3. Place dropbox-screenshot-puburl.desktop into /usr/share/applications (you need to be root)
  4. Eventually update the path to your Bash script
  5. exec sudo update-desktop-database
  6. Quit and restart shutter. Go into Preferences > Actions > Open With and select Dropbox copy public file URL to clipboard
@gflandre
gflandre / total_project_additions_deletions_2016.sh
Last active January 3, 2017 16:10
Get the total number of lines added and deleted in your repo in 2016
# 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)}'
@constantology
constantology / process.logger.js
Created July 24, 2014 09:39
using node's process to emit events to log stuff from anywhere
// 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) {
@jbenet
jbenet / simple-git-branching-model.md
Last active June 17, 2024 14:53
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.