I hereby claim:
- I am lottspot on github.
- I am lottspot (https://keybase.io/lottspot) on keybase.
- I have a public key whose fingerprint is C908 CC37 93F4 98FE 98AD 9DC4 443E A8D6 A536 53A9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/python | |
| import Queue | |
| import threading | |
| import time | |
| import sys, os | |
| from urllib import urlopen | |
| import logger | |
| # check_http.py | |
| # $1: SCHEME |
| [Unit] | |
| Description=Bittorent Sync service | |
| After=network.target | |
| [Service] | |
| ExecStart=/usr/local/bin/btsync --config /usr/local/etc/btsync/sync.conf --nodaemon | |
| Restart=on-abort | |
| [Install] | |
| WantedBy=multi-user.target |
| #!/bin/bash | |
| BIN='/usr/local/bin/btsync' | |
| CONF='/usr/local/etc/btsync/sync.conf' | |
| PID='/var/run/btsync/btsync.pid' | |
| PIDMATCH=true | |
| SERVICE=$(basename $0) | |
| test $(id -u) -ne 0 && echo "This is for root." >&2 && exit 1 | |
| main(){ |
Depends on:
Fill in the variables appropriately and copy to hooks/post-receive in your bare git repo
| #!/usr/bin/perl | |
| # | |
| # nettest.pl | |
| # | |
| use IO::Socket; | |
| use Errno; | |
| $| = 1; | |
| $host = shift; |
| #!/bin/bash | |
| ########################################################################################################### | |
| # | |
| # Single loop for copying all dynamically linked libraries needed by an executable to a specified location | |
| # | |
| ########################################################################################################### | |
| EXECUTABLE=$1 | |
| DEST=/path/to/destination/dir/ |
| # coding: utf8 | |
| """ | |
| Securely hash and check passwords using PBKDF2. | |
| Use random salts to protect againt rainbow tables, many iterations against | |
| brute-force, and constant-time comparaison againt timing attacks. | |
| Keep parameters to the algorithm together with the hash so that we can | |
| change the parameters and keep older hashes working. |
| #!/bin/bash | |
| APACHE_AVAIL_DIR=/etc/httpd/conf/extra/sites-available | |
| APACHE_EN_DIR=/etc/httpd/conf/extra/sites-enabled | |
| NGINX_AVAIL_DIR=/etc/nginx/servers-available | |
| NGINX_EN_DIR=/etc/nginx/servers-enabled | |
| ARGS=$* | |
| enable_site(){ | |
| if [[ ! -h ${APACHE_EN_DIR}/${1} && -f ${APACHE_AVAIL_DIR}/${1} && ! -h ${NGINX_EN_DIR}/${1} && -f ${NGINX_AVAIL_DIR}/${1} ]] |
| #!/bin/bash | |
| # DEPENDENCIES: openssl | |
| AUTHFILE_NAME='.htpasswd' | |
| AUTHFILE_DIR='/etc/nginx' | |
| [[ $(id -u) -gt 0 ]] && this script must be run as root && exit 1 | |
| echo -n "Enter users to add to .htpasswd file (separated by space, return to exit): " | |
| read USERS | |
| [[ ${#USERS} -lt 1 ]] && exit 0 | |
| # Following two lines declare currently unused associative arrays |