gpg --gen-key # Generate a keypair
gpg --output my_key_revoke.asc --gen-revoke mykey # Generate a revocation certificate
gpg --output my_key.gpg --export mykey
;Hotkeys | |
SendMode Input | |
^!t::Run C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -t "zsh" -e C:\cygwin\bin\zsh.exe -l -i | |
^!m::Send {Volume_Mute} | |
;Swap Capslock and Backspace | |
Capslock::Backspace | |
Backspace::Capslock | |
;Swap Function key and control key (DOESN'T WORK) |
#!/bin/bash | |
PROJECT_NAME=${1} | |
ENYO_VERSION=${2} | |
ENYO_GIT=https://github.com/enyojs | |
if [[ -z ${PROJECT_NAME} ]]; then | |
echo "First arg should be project name" | |
exit 1 | |
fi |
#!/bin/bash | |
# based on http://www.tldp.org/LDP/abs/html/string-manipulation.html | |
test=abcABC123ABCabc | |
echo "\${test} = ${test}" | |
echo && echo "Substrings:\${test:pos:length}" | |
echo "\${test:3} = ${test:3}" # ABC123ABCabc |
#!/bin/bash | |
echo "\${0} = ${0}" | |
echo "dirname \${0} = `dirname ${0}`" | |
echo "basename \${0} = `basename ${0}`" | |
echo "readlink -m \${0} = `readlink -m ${0}`" #In BSD (maybe not with -m option, though) | |
echo "realpath -m \${0} = `realpath -m ${0}`" #Easy to remember | |
echo "\$(cd \$(dirname \${0}); pwd)/\$(basename ${0}) = $(cd $(dirname ${0}); pwd)/$(basename ${0})" #Should be truly cross-platform | |
echo "\${0/%.sh/.foo} = ${0/%.sh/.foo}" |
frame horizontal up --> :topleft split
frame horizontal down --> :botright split
frame vertical left --> :topleft vsplit
frame vertical right --> :botright vsplit
window horizontal up --> :leftabove split
window horizontal down --> :rightbelow split
window vertical left --> :leftabove vsplit
window vertical right --> :rightbelow vsplit
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
temp_dir="/tmp" | |
if [ -d "${TEMP}" ]; then | |
temp_dir="${TEMP}" | |
fi | |
this_file="$(basename ${0})" | |
temp_file="${temp_dir}/${this_file%.*}.$$.$RANDOM" | |
function cleanup { |
#!/bin/bash | |
# Exit with non-zero (i.e. reject the commit) if anything fails, particularly | |
# the gradle tasks. | |
set -e | |
# change to the project root directory | |
cd $(git rev-parse --show-toplevel) | |
if [[ "$(git rev-parse --abbrev-ref HEAD)" == "dev" ]]; then |
#!/usr/bin/env groovy | |
void usage(){ | |
println """ | |
usage: ${this.class.name}.groovy [-p, -g] [n] | |
Generates technobabble. | |
-p Print n paragraphs instead of n phrases. An optional third | |
argument may be used to specify the number of sentences per |