Skip to content

Instantly share code, notes, and snippets.

View mchristopher's full-sized avatar

Mike Christopher mchristopher

View GitHub Profile
@mchristopher
mchristopher / gist:87a4bb13f61e6bd1a196
Created September 30, 2015 18:43
postgresql replication script
#!/bin/bash
# Usage in postgresql.conf:
# archive_command = '/path/to/script.sh %p %f'
# Close out on error
set -e
wal_path=$1
wal_filename=$2
{
"update_url": "https://example.com/get_providers.php?auth=iofdhgoarthi8urg",
"file_providers": [
{
"id": "user1_webdav",
"provider_type": "webdav",
"url": "https://exmaple.com/webdav_endpoint.php?user=me&pass=secret"
}
]
}
@mchristopher
mchristopher / gist:b166ead4a185cbbce5e5
Created October 28, 2014 19:37
X.IO Sample Custom Integration
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<script src="https://code.jquery.com/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="https://client.x.io/v1/appstream.js" type="text/javascript"></script>
<input type="button" value="Launch Application" id="launch">
@mchristopher
mchristopher / keybase.md
Created March 8, 2014 09:10
keybase.md

Keybase proof

I hereby claim:

  • I am mchristopher on github.
  • I am icer5k (https://keybase.io/icer5k) on keybase.
  • I have a public key whose fingerprint is 24CD 5658 4D9D C894 FE76 8D14 5FF5 ADBD F9B8 F3C7

To claim this, I am signing this object: