Skip to content

Instantly share code, notes, and snippets.

@tpaulus
tpaulus / update-gateway-ip.sh
Last active January 14, 2023 17:01
Gateway Public IP Sync Script
#!/usr/bin/env bash
# === How to create a compatible API Token ===
# curl -X POST "https://api.cloudflare.com/client/v4/user/tokens" \
# -H "X-Auth-Key:<Your API Key>" \
# -H "X-Auth-Email:<Your Email>" \
# -H "Content-Type: application/json" \
# --data '{"name":"Gateway IP Updater", "status":"active", "policies":[{"effect":"allow", "resources": {
# "com.cloudflare.api.account.*": "*"}, "permissions": ["com.cloudflare.team.gateway.edit", "com.cloudflare.team.gateway.read"]}]}' | jq .result.value
@tpaulus
tpaulus / install.sh
Last active December 25, 2016 18:25
Install PList File
sudo cp quiver_sync.sh /usr/local/bin/quiverSync
sudo chmod +x /usr/local/bin/quiverSync
@tpaulus
tpaulus / consts.sh
Created December 25, 2016 18:22
Quiver Script Consts
QUIVERLIB_LOC="Path/to/Quiver.qvlibrary"
SERVER="lorien" # Host Name of your server, as set in .ssh/config
SRV_DEST="/srv/notes/" # Public HTTP Directory where Notebooks folder is
@tpaulus
tpaulus / email_sig
Last active August 29, 2015 14:20
Signed Email Signature
The strange file attached automatically to the end of this email (ending in .asc) is a digital signature, proving that I actually sent this email. I encourage you to do the same, find out more at: http://www.faqs.org/faqs/pgp-faq/part1/

Keybase proof

I hereby claim:

  • I am tpaulus on github.
  • I am tpaulus (https://keybase.io/tpaulus) on keybase.
  • I have a public key whose fingerprint is B801 4905 127C 3A7F D88E 5B63 5F8B 06D4 8F80 325A

To claim this, I am signing this object:

@tpaulus
tpaulus / RPi-IPD-clone
Created November 9, 2013 00:58
Clone the Repo
git clone https://github.com/tpaulus/RPi-IPDisplay.git
@tpaulus
tpaulus / nano-rc.local
Created November 9, 2013 00:32
Edit /ect/rc.local
sudo nano /etc/rc.local
@tpaulus
tpaulus / rc.local-addition
Last active December 27, 2015 19:49
Add the following lines to /etc/rc.local
cd <path to RPI-IPDisplay folder>
python display.py &
@tpaulus
tpaulus / Scroller.py
Created February 11, 2013 01:19
Scroller Tool V. 1
#! /usr/bin/python
#Written By Tom Paulus, @tompaulus, www.tompaulus.com
class Scroller():
def __init__(self):
return
def splitString(self, s, lineLength):
# s = 'The Quick Brown Fox Jumps Over The Lazy Dog' #Test String
sudo python Main.py