Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# oauth1 simulator http://lti.tools/oauth/
urlencode () {
[ -n "$1" ] \
&& echo -n "$1" | perl -p -e 's/([^A-Za-z0-9-._~])/sprintf("%%%02X", ord($1))/seg'
}
#oauth1 vars
{
"goalTreeString": "{\"branches\":{\"master\":{\"target\":\"C8\",\"id\":\"master\",\"remoteTrackingBranchID\":\"o/master\"},\"o/master\":{\"target\":\"C8\",\"id\":\"o/master\",\"remoteTrackingBranchID\":null},\"SCD-655\":{\"target\":\"C7\",\"id\":\"SCD-655\",\"remoteTrackingBranchID\":\"o/SCD-655\"},\"o/SCD-655\":{\"target\":\"C7\",\"id\":\"o/SCD-655\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C2\"],\"id\":\"C3\"},\"C4\":{\"parents\":[\"C1\"],\"id\":\"C4\"},\"C5\":{\"parents\":[\"C4\"],\"id\":\"C5\"},\"C6\":{\"parents\":[\"C3\"],\"id\":\"C6\"},\"C7\":{\"parents\":[\"C5\",\"C6\"],\"id\":\"C7\"},\"C8\":{\"parents\":[\"C7\"],\"id\":\"C8\"}},\"tags\":{},\"HEAD\":{\"target\":\"master\",\"id\":\"HEAD\"},\"originTree\":{\"branches\":{\"master\":{\"target\":\"C8\",\"id\":\"master\",\"remoteTrackingBranchID\":null},\"SCD-655\":{\"target\":\"C7\
{
"goalTreeString": "{\"branches\":{\"master\":{\"target\":\"C5\",\"id\":\"master\",\"remoteTrackingBranchID\":null},\"hotfix\":{\"target\":\"C4\",\"id\":\"hotfix\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C1\"],\"id\":\"C3\"},\"C4\":{\"parents\":[\"C2\"],\"id\":\"C4\"},\"C5\":{\"parents\":[\"C3\",\"C4\"],\"id\":\"C5\"}},\"tags\":{},\"HEAD\":{\"target\":\"master\",\"id\":\"HEAD\"}}",
"solutionCommand": "git checkout master;git merge hotfix",
"startTree": "{\"branches\":{\"master\":{\"target\":\"C3\",\"id\":\"master\",\"remoteTrackingBranchID\":null},\"hotfix\":{\"target\":\"C4\",\"id\":\"hotfix\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C1\"],\"id\":\"C3\"},\"
{
"goalTreeString": "{\"branches\":{\"master\":{\"target\":\"C2\",\"id\":\"master\",\"remoteTrackingBranchID\":null},\"DM-1234\":{\"target\":\"C1\",\"id\":\"DM-1234\",\"remoteTrackingBranchID\":null},\"DM-5678\":{\"target\":\"C3\",\"id\":\"DM-5678\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C2\"],\"id\":\"C3\"}},\"tags\":{},\"HEAD\":{\"target\":\"DM-5678\",\"id\":\"HEAD\"}}",
"solutionCommand": "git branch DM-1234;git commit;git checkout -b DM-5678;git commit",
"startTree": "{\"branches\":{\"master\":{\"target\":\"C1\",\"id\":\"master\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"}},\"tags\":{},\"HEAD\":{\"target\":\"master\",\"id\":\"HEAD\"}}",
"name": {
"en_US": "fls-git-branching"
},
"hint": {
"en_US": ""
},
{
"goalTreeString": "%7B%22branches%22%3A%7B%22master%22%3A%7B%22target%22%3A%22C3%27%22%2C%22id%22%3A%22master%22%2C%22remoteTrackingBranchID%22%3Anull%7D%2C%22DM-1234%22%3A%7B%22target%22%3A%22C3%27%22%2C%22id%22%3A%22DM-1234%22%2C%22remoteTrackingBranchID%22%3Anull%7D%2C%22DM-5678%22%3A%7B%22target%22%3A%22C5%27%22%2C%22id%22%3A%22DM-5678%22%2C%22remoteTrackingBranchID%22%3Anull%7D%2C%22DM-9012%22%3A%7B%22target%22%3A%22C9%27%22%2C%22id%22%3A%22DM-9012%22%2C%22remoteTrackingBranchID%22%3Anull%7D%7D%2C%22commits%22%3A%7B%22C0%22%3A%7B%22parents%22%3A%5B%5D%2C%22id%22%3A%22C0%22%2C%22rootCommit%22%3Atrue%7D%2C%22C1%22%3A%7B%22parents%22%3A%5B%22C0%22%5D%2C%22id%22%3A%22C1%22%7D%2C%22C2%22%3A%7B%22parents%22%3A%5B%22C1%22%5D%2C%22id%22%3A%22C2%22%7D%2C%22C3%22%3A%7B%22parents%22%3A%5B%22C2%22%5D%2C%22id%22%3A%22C3%22%7D%2C%22C4%22%3A%7B%22parents%22%3A%5B%22C1%22%5D%2C%22id%22%3A%22C4%22%7D%2C%22C5%22%3A%7B%22parents%22%3A%5B%22C4%22%5D%2C%22id%22%3A%22C5%22%7D%2C%22C6%22%3A%7B%22parents%22%3A%5B%22C1%22%5D
$0=10
$1=255
$2=0
$3=10
$4=0
$5=0
$6=0
$10=1
$11=0.020
$12=0.002

Keybase proof

I hereby claim:

  • I am monofone on github.
  • I am monofone (https://keybase.io/monofone) on keybase.
  • I have a public key ASBJo_Tcb0jkpDr_l0MJcZn20iPcKKN3c0e3EE2AwQw1Fwo

To claim this, I am signing this object:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>500 Internal Server Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
* {
margin: 0;
padding: 0;
}
import { moduleForModel, test } from 'ember-qunit';
// take a look at the path using the project name and the path
// without the app folder here
import SomeOtherObjectNeeded from '<project>/models/my-other-object';
@monofone
monofone / config_prod.yml
Created September 6, 2015 08:41
Doctrine metadata cache with redis
doctrine:
orm:
metadata_cache_driver:
type: redis
host: localhost
port: 6379