Swap out the two URLs (first is source, second is target) then run with curl:
curl -X POST -d @pingback.xml http://example.com/xmlrpc
(function () { | |
if (window.parent !== window) { | |
window.parent.postMessage(JSON.stringify({ | |
// The config of your endpoint | |
reply: 'http://voxpelli.com/reply?u={url}' | |
}), '*'); | |
} | |
// Pick a way to invoke the registerProtocolHandler, through a submit handler in admin or something | |
document.getElementById('confForm').addEventListener('submit', function (e) { |
Swap out the two URLs (first is source, second is target) then run with curl:
curl -X POST -d @pingback.xml http://example.com/xmlrpc
from sqlalchemy import engine | |
from sqlalchemy import event | |
class DbStats(): | |
def __init__(self): | |
self.clear() | |
def clear(self): | |
self.total_queries = 0 | |
self.total_time = 0 |
for i in $HOME/local/*; do | |
[ -d $i/bin ] && PATH="${i}/bin:${PATH}" | |
[ -d $i/sbin ] && PATH="${i}/sbin:${PATH}" | |
[ -d $i/include ] && CPATH="${i}/include:${CPATH}" | |
[ -d $i/lib ] && LD_LIBRARY_PATH="${i}/lib:${LD_LIBRARY_PATH}" | |
[ -d $i/lib ] && LD_RUN_PATH="${i}/lib:${LD_RUN_PATH}" | |
# uncomment the following if you use macintosh | |
# [ -d $i/lib ] && DYLD_LIBRARY_PATH="${i}/lib:${DYLD_LIBRARY_PATH}" | |
[ -d $i/lib/pkgconfig ] && PKG_CONFIG_PATH="${i}/lib/pkgconfig:${PKG_CONFIG_PATH}" | |
[ -d $i/share/man ] && MANPATH="${i}/share/man:${MANPATH}" |
'use strict'; | |
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
(function() { | |
// A cache for core files like CSS and JavaScript | |
var staticCacheName = 'static'; | |
// A cache for pages to store for offline |