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
package main | |
import ( | |
"crypto/tls" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"net/url" |
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 | |
help() | |
{ | |
echo "Usage: $0 file.cbz" | |
} | |
run() | |
{ | |
dir=`mktemp -d` |
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 | |
HOST=192.168.1.1 | |
IFACE_ID=3 | |
SAMPLE=5 | |
## iface | |
NAME=$(snmpget -v 2c -c public -O q $HOST iso.3.6.1.2.1.2.2.1.2.$IFACE_ID | cut -d ' ' -f2) | |
echo "Bandwidth for $NAME" | |
## bytes | |
D1=$(snmpget -v 2c -c public -O q $HOST iso.3.6.1.2.1.2.2.1.10.$IFACE_ID | cut -d ' ' -f2) | |
U1=$(snmpget -v 2c -c public -O q $HOST iso.3.6.1.2.1.2.2.1.16.$IFACE_ID | cut -d ' ' -f2) |
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 python | |
import mailbox | |
import sys | |
import base64 | |
import string | |
import re | |
def dataDecode(data): | |
try: |
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 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
virtualenv -p python3 $DIR/acdcli_env > /dev/null | |
source $DIR/acdcli_env/bin/activate | |
export ACD_CLI_CACHE_PATH=$DIR/acd_cache | |
# uncomment this to install/upgrade | |
# pip3 install --upgrade git+https://github.com/yadayada/acd_cli.git > /dev/null | |
acdcli clear-cache | |
acdcli sync | |
CMD="acdcli upload --overwrite --max-retries 4 --max-connections 4" |
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 | |
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
DATE=$(date +%Y-%m-%d) | |
BACKUP_DIR=${DIR}/${DATE} | |
echo "Backing up containers" | |
mkdir -p $BACKUP_DIR/containers/ | |
for container in $(docker ps -qa) | |
do |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"strings" | |
"github.com/fsouza/go-dockerclient" | |
//"github.com/tonnerre/golang-pretty" | |
) |
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
# Add this line inside the server block to enable this | |
# | |
# include /etc/letsencrypt/nginx/letsencryptauth.conf; | |
# | |
location /.well-known/acme-challenge { | |
#proxy_set_header Host $host; | |
#proxy_set_header X-Forwarded-For $remote_addr; | |
#proxy_set_header X-Forwarded-Proto https; #$scheme; # https | |
#proxy_set_header X-Real-IP $remote_addr; |
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
# LCDd.conf -- configuration file for the LCDproc server daemon LCDd | |
# | |
# This file contains the configuration for the LCDd server. | |
# | |
# The format is ini-file-like. It is divided into sections that start at | |
# markers that look like [section]. Comments are all line-based comments, | |
# and are lines that start with '#' or ';'. | |
# | |
# The server has a 'central' section named [server]. For the menu there is | |
# a section called [menu]. Further each driver has a section which |
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
################################################################# | |
# boblight.conf | |
# | |
# Designed for LightPack with Speedy's boblight daemon | |
# | |
# https://code.google.com/p/light-pack/ | |
# https://github.com/timsat/boblight-lightpack/wiki/Configuration | |
# | |
# | |
################################################################# |