Skip to content

Instantly share code, notes, and snippets.

View 3ffusi0on's full-sized avatar
🎯
Focusing

SIMON Pierre-Alain 3ffusi0on

🎯
Focusing
  • Freelance
  • France
View GitHub Profile
@3ffusi0on
3ffusi0on / post-update
Created January 2, 2016 12:22
Git hook post-update
#!/bin/sh
#
# Hook on repository update managing two branches dev and master
# in order to supervise production and development environnement.
#
echo $1
echo "*Updating repository using Hook*"
In some application like KeePass, the clipboard doesn't work perfectly: you can't copy or past, Sometimes both.
This happends because Linux has two copy buffers.
To fix that issue, a solution consist in using Autocutsel:
$> autocutsel &
$> autocutsel -s PRIMARY &