This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE message ( | |
ROWID INTEGER PRIMARY KEY AUTOINCREMENT, | |
guid TEXT UNIQUE NOT NULL, | |
text TEXT, | |
replace INTEGER DEFAULT 0, | |
service_center TEXT, | |
handle_id INTEGER DEFAULT 0, | |
subject TEXT, | |
country TEXT, | |
attributedBody BLOB, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ webmention http://lionzan.me/2014-05-25/testing-webmentions/index.html | |
Finding links on http://lionzan.me/2014-05-25/testing-webmentions/index.html | |
Found 4 links: | |
http://lionzan.me | |
http://lionzan.me/2013-09-08/indiewebcamp-uk/ | |
http://voxpelli.com/2013/12/webmentions-for-static-pages/ | |
http://aaronparecki.com/articles/2014/03/23/1/posting-photos-on-my-own-site | |
http://lionzan.me | |
Discovered Webmention endpoint: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AppDelegate:33 [BG] Running version: 2.9.2 on iOS 7.1.1 | |
AppDelegate:36 [BG] Uncaching data... | |
Whispr:97 [BG] Loading names: 0.010052 | |
Whispr:546[BG] Unpacking logged in user... | |
Whispr:552 [BG] Found valid loggedInUser cache data | |
WhisprUser:67 [BG] User Id is a string, great. | |
Whispr:563 [BG] Found valid commentPositions cachedata | |
Whispr:578 [BG] Unpacking notifications... | |
Whispr:582 [BG] Found valid notifications cache data | |
AppDelegate:40 [BG] Initializing Mixpanel... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'terraformer' | |
require 'geotrigger' | |
require 'launchy' | |
require 'gist' | |
# create a new FeatureCollection | |
# | |
fc = Terraformer::FeatureCollection.new | |
# create a Geotrigger Application session with credentials stored in ~/.geotrigger under the :foo key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# webmention.io streaming | |
description "webmention.io streaming server" | |
start on runlevel [2345] | |
stop on runlevel [016] | |
respawn | |
exec /usr/local/bin/node /web/sites/webmention.io/streaming/webmention.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Current challenge: | |
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJtZSI6Imh0dHA6Ly9hYXJvbnBhcmVja2kuY29tIiwidXNlcl9pZCI6MSwicHJvZmlsZV9pZCI6MzAzNCwicmVkaXJlY3RfdXJpIjoiaHR0cDovL2luZGlld2ViY2FtcC5jb20vU3BlY2lhbDpJbmRpZUF1dGg_cmV0dXJudG89TWFpbl9QYWdlIiwic3RhdGUiOm51bGwsInNjb3BlIjpudWxsLCJub25jZSI6MTExODU4LCJjcmVhdGVkX2F0IjoxNDA0NDMyMzQ1fQ.fyd2XE5-4Rf_EfPZzHc_Y3yOmyr8x_7soWvAJS644rY | |
Decoded challenge payload: | |
{"me":"http://aaronparecki.com","user_id":1,"profile_id":3034,"redirect_uri":"http://indiewebcamp.com/Special:IndieAuth","state":"","scope":"","nonce":"4000000"} | |
I could rewrite this challenge to human-readable key/value pairs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'flickraw' | |
FlickRaw.api_key = '' | |
FlickRaw.shared_secret = '' | |
@flickr = FlickRaw::Flickr.new | |
@flickr.access_token = '' | |
@flickr.access_secret = '' | |
# Test if the access token is valid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Multipart</h2> | |
<form action="/upload" enctype="multipart/form-data" method="post"> | |
<input type="text" name="title"><br> | |
<input type="file" name="upload" multiple="multiple"><br> | |
<input type="submit" value="Upload"> | |
</form> | |
<hr> | |
<h2>Standard</h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nw: | |
ne: | |
sw: | |
se: | |
data.csv#5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mentions: | |
- source: https://brid-gy.appspot.com/like/instagram/aaronpk/779656243438275181_1500881/4956650 | |
target: http://aaronparecki.com/notes/2014/08/04/1/ | |
date_received: "2014-08-04 14:39:32" | |
type: like | |
- source: https://brid-gy.appspot.com/like/instagram/aaronpk/779656243438275181_1500881/14104640 | |
target: http://aaronparecki.com/notes/2014/08/04/1/ | |
date_received: "2014-08-04 15:56:12" | |
type: like | |
- source: https://brid-gy.appspot.com/like/instagram/aaronpk/779656243438275181_1500881/3686317 |