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 |
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" |
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 |
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% |
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' |
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 |
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/73fb72ff48db4cfea71a650f4cc72ba7 | |
# based on example at https://github.com/pupil-labs/pyuvc | |
# install libuvc and pyuvc - see https://github.com/pupil-labs/pyuvc/blob/master/README.md | |
# install pygame (pip install pygame) | |
import uvc | |
import sys | |
import logging | |
import pygame | |
from pygame.locals import * |
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 python | |
# -*- coding: utf-8 -*- | |
import datetime | |
import time | |
import logging | |
import sys | |
from parse import * # $ pip install pyparse | |
import serial # $ pip install pyserial |
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 |
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=( |