Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Get Git log in JSON format
git log --pretty=format:'{%n "commit": "%H",%n "abbreviated_commit": "%h",%n "tree": "%T",%n "abbreviated_tree": "%t",%n "parent": "%P",%n "abbreviated_parent": "%p",%n "refs": "%D",%n "encoding": "%e",%n "subject": "%s",%n "sanitized_subject_line": "%f",%n "body": "%b",%n "commit_notes": "%N",%n "verification_flag": "%G?",%n "signer": "%GS",%n "signer_key": "%GK",%n "author": {%n "name": "%aN",%n "email": "%aE",%n "date": "%aD"%n },%n "commiter": {%n "name": "%cN",%n "email": "%cE",%n "date": "%cD"%n }%n},'
The only information that aren't fetched are:
%B
: raw body (unwrapped subject and body)%GG
: raw verification message from GPG for a signed commit#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
Call: azure vm quick-create -M ~/.ssh/id_rsa.pub -Q RHEL
Output:
info: Executing command vm quick-create
Resource group name: rhel-quick
Virtual machine name: rhel
Location name: westus
Operating system Type [Windows, Linux]: linux
User name: ops
#!/bin/bash | |
# An set of disks to ignore from partitioning and formatting | |
BLACKLIST="/dev/sda|/dev/sdb" | |
# Base directory to hold the data* files | |
DATA_BASE="/media" | |
usage() { | |
echo "Usage: $(basename $0) <new disk>" | |
} |
PPA: https://launchpad.net/~tigerite/+archive/ubuntu/kernel
sudo apt-add-repository ppa:tigerite/kernel
Patch: https://github.com/linuxmint/cinnamon-screensaver/commit/6ac60f406930ee0e760da10c9b05118d1fd23603.diff Instructions: linuxmint/cinnamon-screensaver#55 (comment)
╰─ cd $(draft home)/plugins/draft-pack-repo | |
╭─ 🔋 100% /usr/local/etc/draft/plugins/draft-pack-repo 424767c4 v0.2.0 ✓ 6533 17:20:32 | |
╰─ set -x | |
+_zsh_highlight_main__precmd_hook:1> _zsh_highlight_main__command_type_cache=( ) | |
+omz_termsupport_precmd:1> emulate -L zsh | |
+omz_termsupport_precmd:3> [[ '' == true ]] | |
+omz_termsupport_precmd:7> title '%15<..<%~%<<' '%n@%m: %~' | |
+title:1> emulate -L zsh | |
+title:2> setopt prompt_subst | |
+title:4> [[ '' == *term* ]] |