This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
import json | |
import shutil | |
import subprocess | |
import ansible.constants as C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# ./ur [ansible-galaxy dependency name] -> install the 1 dependency | |
# ./ur playbooks/play.yml -> parse and install dependencies found in playbook | |
# ./ur -> find all dependencies in ansible-requirements.yml and install them in parallel | |
# | |
#!/usr/bin/env bash | |
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) | |
function ansible-update() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# use ffcast to record either a gif or mp4 from rectangle selection using slop | |
# required: ffmpeg,ffcast,imagemagick,slop | |
# set the stop/start execute of this script to a hotkey. | |
function usage() { | |
echo "Usage : $(basename "$0") [options] [--] | |
Options: | |
-k|kill kill last running record | |
-r|record start recording |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# set -x | |
# PS4='+${LINENO}: ' | |
set -euo pipefail | |
IFS=$'\n\t' | |
method="" | |
class="" | |
package="" | |
directory="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Generate appealing random colors using HSV | |
* https://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/ | |
*/ | |
// needed to keep colors random from each other | |
const golden_ratio_conjugate = 0.618033988749895 | |
// using hsb create perdictable rgb values | |
function hsv_to_rgb(h, s, v){ | |
h_i = parseInt(h*6) | |
let f = h*6 - h_i |