Skip to content

Instantly share code, notes, and snippets.


Vladimir Rutsky rutsky

View GitHub Profile
View update-ddns.service
# /etc/systemd/system/update-ddns.service
Description=Update DDNS
ExecStart=/bin/bash /root/
eirnym /
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.
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 / 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)
jQuery('<div/>', {
class: 'counter',
text: num