Skip to content

Instantly share code, notes, and snippets.

View ericdraken's full-sized avatar

Eric Draken ericdraken

View GitHub Profile
@ericdraken
ericdraken / AutoNumberTheParagraphs.js
Created September 28, 2022 01:39
Auto-number each paragraph for a patent application using Web App and Google Docs
// Eric Draken, 2022, ericdraken.com
// Quick Web App script to auto-number paragraphs in a patent application in Google Docs.
// This will re-number paragraphs in order when run again.
//
// Before:
// HEADER
// Some fany words
// HEADER
// More fancy words
// Even more fany words
@ericdraken
ericdraken / cron.php
Created August 5, 2019 18:15 — forked from alfo/cron.php
Cron job to update Cloudflare's DNS to point to your current IP address. Useful for people with dynamic public IPs because their stupid ISP won't let them have a static one.
<?php
// Grab the IP address
// This is the fastest method I've found so far
$ip = system('dig +short myip.opendns.com @resolver1.opendns.com');
// For cron logs
print "New IP is: " . $ip;
$ch = curl_init();
@ericdraken
ericdraken / guacamole_rpi3_setup.sh
Last active August 4, 2019 22:08 — forked from shawngmc/guacamole_setup.sh
Guacamole Docker Setup for Raspberry Pi 3
#!/bin/bash
. .env
# Used from .env
# PASSWD: The postgres password
# Set up Guacd
echo Creating guacd container...
docker run -d \