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
#!/bin/env python | |
#Date: 24 August 2018 | |
#Bugs by: Jonathan Thorpe | |
import os | |
import re | |
import argparse | |
from jinja2 import Environment, FileSystemLoader | |
CWD = os.path.dirname(os.path.abspath(__file__)) |
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
#!/bin/bash | |
ACME=/root/.acme.sh/acme.sh | |
DOMAIN=remote.mydomain.tld | |
CERTPATH=/var/router-certs | |
CERT=$DOMAIN.cer | |
KEY=$DOMAIN.key | |
ROUTER=123.123.123.123 | |
ROUTER_USER=SSHUser |
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 struct | |
import io | |
class WAVFile: | |
def __init__(self, filename): | |
self.filename = filename | |
def read(self): | |
with io.open(self.filename, 'rb') as fh: |
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
#!/usr/bin/env python3 | |
import time | |
import websocket | |
import re | |
import requests | |
import math | |
import statistics | |
import threading | |
import sys |
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
#init.sls | |
{% for webapp, data in salt['pillar.get']('web_apps', {}).iteritems() %} | |
/etc/nginx/sites-available/{{webapp}}.conf: | |
file.managed: | |
- user: root | |
- group: root | |
- mode: 644 | |
- makedirs: True | |
- template: jinja |
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
syntax on | |
filetype plugin indent on | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab |
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
#!/usr/bin/python3 | |
import quick2wire.i2c as i2c | |
import time | |
import RPi.GPIO as GPIO | |
import alsaaudio | |
import threading | |
import logging | |
import sys | |
#Work in progress library for Si473x for Raspberry Pi by Jonathan Thorpe <[email protected]> |