View gist:72f6aae96dbe33db3b71a9c928f139dd
This file contains 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
FOOOOOO_BARRRR_BAZZZZZ | |
FOOOOOO |
View install_tmp_essentials.sh
This file contains 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
mkdir tmp.plugin | |
wget -q https://download.packages.unity.com/com.unity.textmeshpro/-/com.unity.textmeshpro-2.0.1.tgz -O tmp.plugin/plugin.tgz | |
tar -C tmp.plugin -xzf tmp.plugin/plugin.tgz | |
mkdir tmp.package | |
tar -C tmp.package -xzf 'tmp.plugin/package/Package Resources/TMP Essential Resources.unitypackage' | |
for pn in tmp.package/*/pathname; do | |
id=${pn%/*} | |
id=${id#*/} | |
p=$(head -1 $pn) | |
d=${p%/*} |
View stream_comments.py
This file contains 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
import praw | |
import argparse | |
import logging | |
subreddit_cache = {} | |
def print_comment(comment): | |
global subreddit_cache | |
try: |
View workshop
This file contains 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
test |
View Dockerfile.sg166a
This file contains 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
# docker build -t dev-registry-us-east-1.phx.cisco.com:5000/sg/sg:20181018152140-3.80.13-166a -f Dockerfile.sg166a . | |
# docker push dev-registry-us-east-1.phx.cisco.com:5000/sg/sg:20181018152140-3.80.13-166a | |
FROM dev-registry-us-east-1.phx.cisco.com:5000/sg/sg:20181018152140-3.80.13-166 | |
RUN sed -e 's/worker_processes.*;/worker_processes 2;/' -i /opt/cisco/session-guard/nginx/conf/nginx.conf |
View functions.sh
This file contains 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
# GIT heart FZF | |
# ------------- | |
is_in_git_repo() { | |
git rev-parse HEAD > /dev/null 2>&1 | |
} | |
fzf-down() { | |
fzf-tmux --height 50% "$@" --border | |
} |