Skip to content

Instantly share code, notes, and snippets.

@syeef
syeef / updateDNS.py
Created February 12, 2020 13:35
DynamicDNS with Cloudflare (Get current IP Address -> Update DNS record on Cloudflare)
import requests
from requests import get
key = <ENTER CF GLOBAL API KEY>
email = <ENTER CF LOGIN EMAIL>
zone_ID = <ENTER ZONE ID>
record_ID = <ENTER DNS RECORD ID>
ip = get('https://api.ipify.org').text
put = requests.put(
//Creates the External IP address within region us-east4 (you may have to just enter the command and then select option 19)
gcloud compute addresses create unifi-external \
--region us-east4
//Create the Firewall Rules required to have Unifi work
gcloud compute firewall-rules create "unifi-http" \
--allow tcp:80,tcp:8443,tcp:8880,tcp:8843 \
--description="Ports used for HTTP and HTTPS on non-standard ports https://help.ubnt.com/hc/en-us/articles/218506997-UniFi-Ports-Used" \
--target-tags=unifi-server
@syeef
syeef / sketch_plugins.md
Last active November 27, 2018 11:53
Some of the most helpful Sketch plugins

Sketch Plugins

Some of my favourite plugins for Sketch.

<!-- Google -->
<meta name="description" content=""> <!-- Fill content with a description which will show in search results -->
<meta name="keywords" content=""> <!-- Fill content with search terms -->
<meta name="author" content=""> <!-- Fill content with your name -->
<meta name="copyright" content="">
<meta name="application-name" content="Personal Website">
<!-- Facebook / LinkedIn-->
<meta property="og:title" content=""/> <!-- Fill content with the title which will show in bold when shared in messenger / news feed -->
<meta property="og:type" content="article"/>