View disable.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
#!/bin/bash | |
# IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after. | |
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
# Get active services: launchctl list | grep -v "\-\t0" | |
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents | |
# Agents to disable | |
TODISABLE=( |
View smtpd.conf
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
# https://gist.github.com/gretel/e56956f05cc59682195ade6a089c28db | |
# tables | |
table aliases file:/etc/mail/aliases | |
table domains file:/etc/mail/domains | |
table passwd file:/etc/mail/passwd | |
table secrets file:/etc/mail/secrets | |
table deny db:/etc/mail/deny.db | |
table receip db:/etc/mail/receip.db |
View course53.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
#!/usr/bin/env python3 | |
# https://gist.github.com/gretel/8bb0c2936ae5cda12ae5f0bf381dd3f0 | |
# based on https://github.com/edgan/route53-set-hostname/blob/master/route53-set-hostname.py | |
import boto3 | |
import sys | |
import argparse | |
class Course53(object): | |
def __init__(self, region, domain, subdomain, hosted_zone_id, record_type, ipaddress, ttl): |
View temphumi.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
#!/usr/bin/env python3 | |
# | |
# https://gist.github.com/gretel/22b7b042ef0317d779e5d114710d1e17 | |
MQTT_HOST='mqtt.jitter.local' | |
import subprocess | |
from time import sleep | |
import paho.mqtt.client as mqtt |
View graphite_nut.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
#!/usr/bin/env python3 | |
# | |
import graphyte | |
import subprocess | |
import time | |
UPS_ID='apc1500@kali' | |
TIME_INTERVAL=15 | |
GRAPHITE_HOST='graphite.jitter.local' | |
GRAPHITE_PREFIX='ups.apc1500' |
View mpv.conf
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
################## | |
# video settings # | |
################## | |
# Start in fullscreen mode by default. | |
#fs=yes | |
# force starting with centered window | |
geometry=50%:50% |
View main.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
# tom@jitter.eu 12/2017 :* | |
# https://gist.github.com/gretel/c84643e4d13818fc5a35a8de888126bb | |
import pycom | |
import time | |
from machine import Pin | |
from machine import PWM | |
# increments per cycle | |
STEP_1 = 0.00700 |
View install_pimatic.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
#!/bin/sh | |
### | |
### arguments | |
### | |
BASE_DIR="${HOME}/pimatic-app" | |
APT_PACKAGES="build-essential git libssl-dev nodejs npm yarn avahi-daemon" |
View make.conf
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
BOOTWAIT=3000 | |
CPUTYPE?=native | |
DEFAULT_VERSIONS+=ssl=openssl | |
LOADER_TFTP_SUPPORT=NO | |
MAKE_JOBS_NUMBER?=4 | |
MALLOC_PRODUCTION=YES | |
#NO_CLEAN=YES | |
#NO_CLEANDIR=YES | |
#NO_KERNELCLEAN=YES | |
NO_SENDMAIL=YES |
View build_sierra_iso.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
rm -f /tmp/Sierra.cdr | |
rm -f /tmp/Sierra.cdr.dmg | |
hdiutil attach '/Applications/Install macOS Sierra.app/Contents/SharedSupport/InstallESD.dmg' -noverify -nobrowse -mountpoint /Volumes/install_app | |
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build | |
asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase | |
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages | |
cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/ | |
cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist | |
cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg |