Skip to content

Instantly share code, notes, and snippets.

View yannickcr's full-sized avatar

Yannick Croissant yannickcr

View GitHub Profile
@yannickcr
yannickcr / test.js
Created January 22, 2014 17:44
Outgoing port tester. Test outbound TCP port using portquiz.net. Useful to see which port is blocked by your network.
var
exec = require('child_process').exec,
current = 0,
max = 100
;
function scan (i) {
if (current < max) {
current++;
exec('curl portquiz.net:' + i, callback.bind(this, i));
@yannickcr
yannickcr / python.sh
Last active January 4, 2016 05:39 — forked from ryin/tmux_local_install.sh
bash script for installing tmux and python without root access
#!/bin/bash
# Script for installing python on systems where you don't have root access.
# python will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
PYTHON_VERSION=2.7.6
@yannickcr
yannickcr / 1.readme.md
Created May 1, 2014 17:12
Testing SockJS iframe-htmlfile transport under IE8
  • SockJS-node is running on 192.168.0.21:8081
  • Sending a message from the main page works everywere
  • Sending a message from the iframe or popup does not works in IE8
@yannickcr
yannickcr / .jscsrc
Created June 2, 2014 00:13
.jscsrc
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch",
"case",
@yannickcr
yannickcr / keybase.md
Created August 19, 2014 22:30
keybase.md

Keybase proof

I hereby claim:

  • I am yannickcr on github.
  • I am yannickcr (https://keybase.io/yannickcr) on keybase.
  • I have a public key whose fingerprint is EB1F 634D A427 2CCB 9FFB 3D90 4051 617A 90BB 18D8

To claim this, I am signing this object:

@yannickcr
yannickcr / Readme.md
Created September 5, 2014 11:29
jQuery 1.9.1 + Browserify

jQuery 1.9.1 + Browserify

Install jQuery 1.9.1 and Browserify-shim

npm install [email protected] --save
npm install browserify-shim --save-dev

Add the following entries in your package.json

@yannickcr
yannickcr / react.svg
Created October 14, 2014 21:42
React logo in SVG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yannickcr
yannickcr / paris-nodejs-npm.md
Created November 20, 2014 23:19
Gestion des dépendances avec npm

Gestion des dépendances avec npm

Node.js Paris, 20 Novembre 2014


Les différents types de dépendances

Project
@yannickcr
yannickcr / Resources.md
Last active September 15, 2016 09:31
React.js Conf 2015 - From the Internet
@yannickcr
yannickcr / .gitconfig
Last active May 24, 2016 15:35
Git Alias for Gerrit
[alias]
patch = commit --amend --no-edit --reset-author
yolo = commit --amend --no-edit --reset-author --no-verify
update = pull --ff-only
draft = !sh -c 'git push origin HEAD:refs/drafts/master/${1-bugfix}' -
publish = !sh -c 'git push origin HEAD:refs/for/master/${1-bugfix}' -