start new:
tmux
start new with session name:
tmux new -s myname
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
I have spent quite a bit of time figuring out automounts of NFS shares in OS X...
Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:
/etc/auto_master (see last line):
#
# Automounter master map
#
+auto_master # Use directory service
#! /bin/bash | |
# A bash script for an advanced setup of a Wacom on Linux : | |
# with a grep, automatic parsing of the Wacom identifier, of the screen, of dpi and with a precision mode | |
# ( drawing at 1:1 scale , the tablet / the screen ) . | |
# Only the button layout remain custom to the model ( Intuos 3 in this example ) | |
# and can be easily adapted with other buttons ID. | |
# | |
# Dependencies: libwacom (xsetwacom), Bash and bc for the math, xrandr | |
# optional: Gnome icon, notify-send | |
# ( tested/created on Mint 17.2 Cinnamon, 11/2015 ) |
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.
git commit --amend
This will open your $EDITOR
and let you change the message. Continue with your usual git push origin master
.