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
"""Generic linux daemon base class for python 3.x.""" | |
import sys | |
import os | |
import time | |
import atexit | |
import signal | |
class Daemon: | |
"""A generic daemon class. |
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 | |
# echo x | myfunc && myfunc y | |
function myfunc() { | |
declare MY_INPUT=${*:-$(</dev/stdin)} | |
for PARAM in $MY_INPUT; do | |
# do what needs to be done on each input value | |
done | |
} |
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 | |
# install-rapidjson.sh: | |
# Download RapidJSON (version 1.1.0), build from source, install, | |
# and clean-up. | |
# Tested on Ubuntu. | |
# Dependencies: | |
# - CMake | |
# - git | |
# - rm |
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 | |
# install-sole.sh: | |
# Download Sole (version 1.0.0), install, and clean-up. | |
# Tested on Ubuntu. | |
# Dependencies: | |
# - git | |
# - rm | |
set -e |
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 | |
read -r -d '' usage << EOM | |
Usage: | |
gh-deploy-clone user/repo [ENVIRONMENT] | |
EOM | |
[ -z "$1" ] && echo && echo "$usage" && echo && exit 1 |
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 | |
# install-slikenet.sh | |
# Download SLikeNet (version 0.1.0), build from source, install, and | |
# clean-up. | |
# Tested on Ubuntu. | |
# Dependencies: | |
# - build-essential | |
# - cmake | |
# - git |
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 | |
# install-cpp-redis.sh | |
# Download cpp_redis (version 4.1.0), build from source, install, and | |
# clean-up. | |
# Tested on Ubuntu. | |
# Dependencies: | |
# - build-essential | |
# - echo | |
# - rm |
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 | |
# uninstall-cpp-redis.sh: | |
# Remove cpp_redis from standard installation locations. | |
# Tested on Ubuntu. | |
# Dependencies: | |
# - rm | |
show_help() { | |
echo "usage: uninstall-cpp-redis.sh [--verbose|-v]" |
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 | |
# uninstall-cmake.sh: | |
# Remove CMake from standard installation locations. | |
# Tested on Ubuntu. | |
# Dependencies: | |
# - rm | |
show_help() { | |
echo "usage: uninstall-cmake.sh [--verbose|-v]" |
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 | |
# uninstall-mongo-cxx-driver.sh: | |
# Remove mongo-cxx-driver from standard installation locations. | |
# Tested on Ubuntu. | |
# Dependencies: | |
# - rm | |
show_help() { | |
echo "usage: uninstall-mongo-cxx-driver.sh [--verbose|-v]" |