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
0 info it worked if it ends with ok | |
1 verbose cli [ 'node', '/usr/local/bin/npm', 'update', '-g' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose mapToRegistry name npm | |
5 verbose mapToRegistry uri https://registry.npmjs.org/npm | |
6 verbose mapToRegistry name gulp | |
7 verbose mapToRegistry uri https://registry.npmjs.org/gulp | |
8 verbose mapToRegistry name grunt-cli | |
9 verbose mapToRegistry uri https://registry.npmjs.org/grunt-cli |
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
openssl s_client -connect images.luxagraf.net:443 -servername images.luxagraf.net -CAfile /Users/jonny/cacert.pem | |
CONNECTED(00000003) | |
depth=2 C = IL, O = StartCom Ltd., OU = Secure Digital Certificate Signing, CN = StartCom Certification Authority | |
verify return:1 | |
depth=1 C = IL, O = StartCom Ltd., OU = Secure Digital Certificate Signing, CN = StartCom Class 1 Primary Intermediate Server CA | |
verify return:1 | |
depth=0 description = t7IhYQZ6Qdx4ntox, C = US, CN = images.luxagraf.net, emailAddress = [email protected] | |
verify return:1 | |
--- | |
Certificate chain |
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
1. Check that both a target and source value has been sent with the mention | |
2. Parse target URL and check it actually points to something on my site | |
3. Attempt to get the content from source | |
4. Check if any of my saved webmentions are from this source already | |
5. If so check the saved webmentions has the same target (someone's note could mention two of my notes for example) |
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
[Desktop Entry] | |
Name=Devilspie | |
GenericName=Devilspie | |
Exec=/usr/bin/devilspie |
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
<?php | |
echo "Content: $content\n"; | |
echo "baseURL: $baseurl\n"; | |
$mf = \Mf2\parse($content, $baseurl); | |
print_r($mf); | |
?> | |
Content: <!DOCTYPE html> | |
<html> | |
<head> |
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
<?php | |
try { | |
$content = $this->getContent($source); | |
} catch (Exception $e) { | |
$response = Response::make('There was an error getting the content', 400); | |
return $response; | |
} | |
$mf = \Mf2\parse($content, $baseurl); | |
print_r($mf); | |
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
<?php | |
include('../vendor/mf2/mf2/Mf2/Parser.php'); | |
use \Mf2; | |
$html = file_get_contents('http://localhost/notes-id.html'); | |
$mfJSON = new \Mf2\parse($html); |
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
<?php | |
echo '<pre>'; | |
$mfJSON = '{ | |
"items": [ | |
{ | |
"type": [ | |
"h-as-note", | |
"h-entry" | |
], |
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
POST /api/post HTTP/1.1 | |
Host: domain.com | |
Authoirzation: Bearer xxxxxxx | |
h-entry | |
&content=URL+encoded+string | |
&syndication=twitter.com |
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
https://indieauth.com/auth/start?me=https%3A%2F%2Fjonnybarnes.net&profile=https%3A%2F%2Fplus.google.com%2F117317270900655269082&redirect_uri=https%3A%2F%2Ffoobar.dev%2Fauth | |
GET /auth/start?me=https%3A%2F%2Fjonnybarnes.net&profile=https%3A%2F%2Fplus.google.com%2F117317270900655269082&redirect_uri=https%3A%2F%2Ffoobar.dev%2Fauth HTTP/1.1 | |
Host: indieauth.com | |
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:26.0) Gecko/20100101 Firefox/26.0 | |
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
Accept-Language: en-US,en;q=0.5 | |
Accept-Encoding: gzip, deflate | |
DNT: 1 | |
Referer: https://indieauth.com/auth?me=https%3A%2F%2Fjonnybarnes.net&redirect_uri=https%3A%2F%2Ffoobar.dev%2Fauth |