Skip to content

Instantly share code, notes, and snippets.

View jasamples's full-sized avatar

Jason Samples jasamples

View GitHub Profile
@jasamples
jasamples / clock.html
Created February 15, 2020 02:19 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@jasamples
jasamples / cloudflare_ddns.sh
Created June 18, 2017 15:10
Update Cloudflare DNS entry to point to server with dynamic IP
#!/bin/bash
# CHANGE THESE
auth_email="blah@example.com"
auth_key="blahblah"
zone_name="blah.com"
record_name="blah.blah.com"
# MAYBE CHANGE THESE
ip=$(dig +short myrouterdynamicdns.somerouter.com)
@jasamples
jasamples / ubuntu-configure-sendmail-with-gmail
Last active March 9, 2019 04:31 — forked from sshtmc/ubuntu-configure-sendmail-with-gmail
Ubuntu sendmail using smtp.gmail.com
#!/bin/bash
HOST=$(hostname)
function install_postfix() {
echo | sudo debconf-set-selections <<__EOF
postfix postfix/root_address string
postfix postfix/rfc1035_violation boolean false
postfix postfix/mydomain_warning boolean
postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128