Skip to content

Instantly share code, notes, and snippets.

Avatar

Vladimir Rutsky rutsky

View GitHub Profile
View update-ddns.service
# /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 Apr 11, 2015
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.
View metadata.py
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)()
@klmr
klmr / numbers.js
Created Jul 18, 2012
Add slide numbers to Google’s html5slides
View numbers.js
var createSlideNumbering = function (skipFirstN) {
var num = 0;
$('.slides article').each(function () {
num += 1;
if (num <= skipFirstN)
return;
jQuery('<div/>', {
class: 'counter',
text: num
You can’t perform that action at this time.