Skip to content

Instantly share code, notes, and snippets.

# /etc/systemd/system/update-ddns.service
[Unit]
Description=Update DDNS
Documentation=https://dns.he.net/docs.html
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/bin/bash /root/update-ddns.sh
@eirnym
eirnym / metadata.py
Created April 11, 2015 17:38
SQLAlchemy dump SQL and metadata create_all and drop_all usage example. This is highly usable with aiopg and similar library where synchronised version of engine is not applicable.
from sqlalchemy_dump import dump_sql
def create_all_sql(metadata):
return dump_sql(metadata.create_all, bind=True)()
def drop_all_sql(metadata):
return dumpsql(metadata.drop_all, bind=True)()
@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active March 11, 2024 19:13
Backend Architectures Keywords and References
@klmr
klmr / numbers.js
Created July 18, 2012 09:22
Add slide numbers to Google’s html5slides
var createSlideNumbering = function (skipFirstN) {
var num = 0;
$('.slides article').each(function () {
num += 1;
if (num <= skipFirstN)
return;
jQuery('<div/>', {
class: 'counter',
text: num