Skip to content

Instantly share code, notes, and snippets.

View pomeh's full-sized avatar

Romain Guerin pomeh

View GitHub Profile
@pomeh
pomeh / git.json
Created February 12, 2024 14:38
learngitbranching test
{
"goalTreeString": "%7B%22branches%22%3A%7B%22main%22%3A%7B%22target%22%3A%22C9%22%2C%22id%22%3A%22main%22%2C%22remoteTrackingBranchID%22%3Anull%7D%2C%221-feature%22%3A%7B%22target%22%3A%22C7%27%22%2C%22id%22%3A%221-feature%22%2C%22remoteTrackingBranchID%22%3Anull%7D%2C%222-fix%22%3A%7B%22target%22%3A%22C5%22%2C%22id%22%3A%222-fix%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%22C3%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%22C3%22%5D%2C%22id%22%3A%22C6%22%7D%2C%22C7%22%3A%7B%22parents%22%3A%5B%22C6%22%5D%2C%22id%22%3A%22C7%22%7D%2C%22C8%22%3A%7B%22parents%2
@pomeh
pomeh / README.md
Last active January 12, 2024 18:42
awesome-pokemongo
Some other generals links
http://palagpat-coding.blogspot.com/2010/09/in-case-you-missed-it-jsconfeu-2010-day.html
http://www.blueskyonmars.com/2010/09/30/jsconf-eu-2010-a-weekend-of-awesome/
http://www.delicious.com/spacecowboy/jsconf+berlin+2010
http://speakerrate.com/events/589-jsconf-eu-2010?all (all the presentation on speakerrate)
http://www.delicious.com/mattscape/jsconfeu2010
http://phpugmunich.org/dokuwiki/jsconfeu
https://twitter.com/buyog/jsconf-eu-2010
http://dailyjs.com/2010/09/27/jsconfeu/
@pomeh
pomeh / node-http-proxy.js
Created January 4, 2014 00:59
Basic node.js Web proxy
// inspired by Sébastien Chopin (atinux) at http://www.atinux.fr/2013/12/03/tricher-candy-crush-nodejs/
var http = require('http'),
request = require('request'),
port = 8080;
// this won't work for HTTPS URL
http.createServer(function onRequest (req, res) {
// this proxy only logs requests it receives
[
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" },
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" }
]
#!/usr/bin/env bash
# fresh-chrome
#
# Use this script on OS X to launch a new instance of Google Chrome
# with its own empty cache, cookies, and user configuration.
#
# The first time you run this script, it will launch a new Google
# Chrome instance with a permanent user-data directory, which you can
# customize below. Perform any initial setup you want to keep on every
@pomeh
pomeh / gist:a42207f11c74b7e6d7a6
Created December 26, 2015 16:30 — forked from atcuno/gist:3425484ac5cce5298932
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

{
"name": "French TV",
"description": "Watch French TV",
"author": "pomeh",
"unblocker_rules": {
"tf1": {
"description": "Watch TF1",
"link": "tf1.fr",
"icon": "http://www.tf1.fr/favicon.ico",
"cmds": [
@pomeh
pomeh / package.json
Created October 18, 2015 21:59 — forked from addyosmani/package.json
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "src/js/*.js'",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@pomeh
pomeh / pr.md
Created September 17, 2012 14:54 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: