A windows case study.
The details of what I would do for Linux would be different, but the premise would remain.
A windows case study.
The details of what I would do for Linux would be different, but the premise would remain.
#!/usr/bin/env zsh | |
# Script: azv | |
# Author: Jason Giedymin <[email protected]> | |
# Name: azv | |
# Version: 1.0.4 | |
# Description: Azure Vault Helper Script | |
# License: MIT | |
# | |
# Exit Codes: |
# simple sort | |
curl --no-progress-meter --stderr - -X GET --user "<username>:<password>" "https://<host>:<port>/_cat/indices" | sort -g -k 7 | |
# if you want do do some formatting in between or what have you | |
curl --no-progress-meter --stderr - -X GET --user "<username>:<password>" "https://<host>:<port>/_cat/indices" | tr -s '[:blank:]' ',' | sort -g --field-separator=',' -k 7 | column -t -s ',' |
#!/usr/bin/env bash | |
set -e | |
sig_handler() { | |
exit_status=$? # Eg 130 for SIGINT, 128 + (2 == SIGINT) | |
if [[ exit_status -gt 0 ]]; then | |
cat <<EOF | |
!!! | |
WARN: signal [$exit_status] recieved by entrypoint ... returning it" |
Having problems with iterm + zsh + tmux + powerline, where it continues to scroll?
Navigate to Preferences (top menu) -> Profiles (pane view) -> Text (tab view) -> uncheck "Use Unicode Version 9 Widths" (checkbox). More details at issue-1652.
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
{ | |
"\UF729" = "moveToBeginningOfLine:"; | |
"\UF72B" = "moveToEndOfLine:"; | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; | |
} |
#!/usr/bin/env bash | |
# | |
# Author: _j_a_s_o_n_g_at_a_p_a_c_h_e_dot_org | |
# License: GNU GPLv3 | |
# | |
set -e | |
if [ -z "$1" ]; then | |
echo "Please supply param 1 as the git hash which to cheery pick. Now exiting..." |
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# Make sure you have a recent version: the code points that Powerline |
I hereby claim:
To claim this, I am signing this object: