In the .git/config
file add the fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to the remote you want to fetch references to PR:s from.
Can be rendered with https://bramp.github.io/js-sequence-diagrams/
Very much a brainstorm.
Based on thoughts from @blaine: http://www.slideshare.net/Blaine/social-privacy-for-http-over-webfinger and http://blog.romeda.org/2011/03/private-webhooks-private-feeds.html
But adapted somewhat to the current IndieWeb ideas.
This file contains hidden or 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
DB_NAME=wordpress | |
DB_USER=root | |
DB_PASSWORD="" | |
DB_HOST=mysql:3306 | |
WP_ENV=development | |
# And in /etc/hosts added wordpress.dev to point to 192.168.99.100 | |
WP_HOME=http://wordpress.dev:8000 | |
WP_SITEURL=http://wordpress.dev:8000/wp |
This file contains hidden or 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
// Replace this list with the result of to-run-on-org-page.js | |
// And remember to do an "npm install" | |
var users = ["voxpelli"]; | |
var https = require('https'); | |
var fs = require('fs'); | |
var exec = require('child_process').exec; | |
var tmp = require('temporary-directory') | |
var cuid = require('cuid'); | |
var chalk = require('chalk'); |
This file contains hidden or 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 a "news" type content type | |
// Example module names – not real ones | |
module.exports = function () { | |
return require('contenttype') | |
.addField('title', require('textfield')) | |
.addField('image', require('imagefield')) | |
.addField('author', require('authorlink')); | |
}; |
This file contains hidden or 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
var events = require('events'); | |
var Promise = require('Promise'); | |
var foo = new events.EventEmitter(); | |
foo.on('bar', function () { | |
console.log('Four'); | |
throw new Error('Fail!'); | |
}); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Indie Configuration</title> | |
<link rel="stylesheet" href="/css/style.css" /> | |
</head> | |
<body> | |
<div class="page" id="page-wrapper"> | |
<header> |
This file contains hidden or 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
(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) { |
This file contains hidden or 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
$('textarea[readonly]').on('mouseup', function () { | |
if (document.activeElement === this && this.selectionStart === this.selectionEnd) { | |
$(this).select(); | |
} | |
}); |
If it is mainly a Node.js project that should be linted, then I would switch the "browser" setting for a "node" setting, but no matter if the default is that the javascript files are meant for a Node.js environment or a browser environment one can always override it in a specific file by adding the JSLint-compatible settings:
/*jslint node: true */
Or:
/*jslint browser: true */