I hereby claim:
- I am jachimo on github.
- I am jwt (https://keybase.io/jwt) on keybase.
- I have a public key ASBOdDl-_RIF8gXMr1MzM_3YuCm_trfewAw70pvNisCXXgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
## Sends a ping to a server and writes a failure or success log message | |
## Logs results to syslog; find and filter in Console, search for "PINGTEST" | |
# Change this as needed, must be server that responds to pings | |
PINGDEST=192.168.1.1 | |
# Interval in seconds to send a ping (e.g. send every X seconds) | |
INTERVAL=10 |
#!/usr/bin/env bash | |
sudo dscacheutil -flushcache | |
sudo killall -HUP mDNSResponder | |
logger "DNS cache manually flushed by $0" |
curl -s 'https://pgp.key-server.io/pks/lookup?op=get&search=0x1657198823E52A61' | gpg --import && if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | sudo bash; fi |
These are a couple of files to assist in getting Deluge running as a service (daemon) on Debian 8. There doesn't seem to be much in the way of good documentation for this online right now.
Basically, you want to follow the steps on this page, but use the scripts above, because they have
the correct user and group IDs for Debian. Also, ignore the "User Management" section,
since that is already done as part of the installation if you use apt-get
:
But in case that page goes offline, here's the very short version:
This is a quick explanation of how to configure both ZeroTier and two Ubiquiti UniFi USGs to allow routing between two IPv4 networks. Both networks are in private (RFC1918) address space and each one has its own DHCP service. There is no need for NAT between them, only IP routing.
The two networks are 192.168.1.0/24
(call this the "left" network) and 192.168.10.0/24
(the "right" network) but they can be anything. Also, you can have multiple CIDR blocks on one side or the other of the ZeroTier route; if you do, you just have to create more routing table entries.
import processing.svg.*; // for SVG output | |
// SET THESE | |
int numCols = 50; | |
int numRows = 50; | |
void setup() { | |
size(500, 500); // for screen display | |
//size(864, 864, SVG, "new.svg"); // 9in x 9in SVG | |
background(255); |
import processing.svg.*; | |
/* Example of Perlin noise in 2 dimensions represented using short straight lines */ | |
// SET THESE | |
public static final int numCols = 10; | |
public static final int numRows = 50; | |
public static final float diameter = 50; // diameter in pixels (or line length) | |
public static final int max_loops = 3; | |
static int loopcount = 0; |
#!/usr/bin/env python3 | |
# Script to check the hardware version of a Raspberry Pi | |
# REQUIRES PYTHON 3.5+ | |
import sys | |
# Following information based on https://elinux.org/RPi_HardwareHistory | |
pi_revisions = { | |
'9020' : '3 Model A+ (Sony, UK)', | |
'900021' : 'A+ (Sony, UK)', |