You have installed GPG, then tried to perform a git commit and suddenly you see this error message after it π°
error: gpg failed to sign the data
fatal: failed to write commit object
Understand the error (important to solve it later!)
| from operator import attrgetter | |
| from operator import itemgetter | |
| @itemgetter | |
| @slice | |
| @int | |
| @next | |
| @reversed | |
| @str |
| // from the outside we see : | |
| abstract class Step{ | |
| bool get isLocked; // computed based on the state of previous steps | |
| // = !(previousExercise === null || previousExercise.isMarkedAsCompleted) | |
| bool get isFinished; // computed based on the fact that all the exercises in this step are completed | |
| // == step.exercises.all.status === finished |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| function hexdump(buffer, blockSize) { | |
| blockSize = blockSize || 16; | |
| var lines = []; | |
| var hex = "0123456789ABCDEF"; | |
| for (var b = 0; b < buffer.length; b += blockSize) { | |
| var block = buffer.slice(b, Math.min(b + blockSize, buffer.length)); | |
| var addr = ("0000" + b.toString(16)).slice(-4); | |
| var codes = block.split('').map(function (ch) { | |
| var code = ch.charCodeAt(0); | |
| return " " + hex[(0xF0 & code) >> 4] + hex[0x0F & code]; |
#Git notes
Warning : Support for isplay of git notes has been dropped by github : https://github.com/blog/707-git-notes-display
Resource : https://vimeo.com/34273537
##Add
git notes add
| # http://stackoverflow.com/a/28818420/484780 | |
| git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1` |
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