Skip to content

Instantly share code, notes, and snippets.

View purbon's full-sized avatar

Pere Urbón purbon

View GitHub Profile
@purbon
purbon / peliculas.csv
Created December 10, 2011 19:19 — forked from guillermo/peliculas.csv
Peliculas
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 2. in line 2.
¡Mamma Mia! http://www.megavideo.com/?v=39G6ZIBW DVD Español
1997: Rescate en Nueva York http://www.megaupload.com/?d=1IQVR204 DVD-RIP Español
2001 una odisea en el espacio http://www.megaupload.com/?d=RJEPWE9Z 1,4Gb DVD-RIP
30 minutes or less 1 http://freakshare.com/files/36kax38u/los.changosos.part1.gz 271 MB DD
30 minutes or less 2 http://freakshare.com/files/9dfsg4zz/los.changosos.part2.gz 271 MB DD
300.avi http://www.fileserve.com/file/NfBQcz7 698.04 MB DD
Across The Universe DVDRip http://depositfiles.com/files/giklyvrqq 469.59 MB DD Dual
Amélie http://www.fileserve.com/file/mqVEMe3/ 700 MB DD
American Beauty http://www.megaupload.com/?d=W99XXY96 701 MB DD
Asterix en los Juegos Olímpicos (2008) http://www.megavideo.com/?v=JSNXVYH6 362.20 MB Streaming
@purbon
purbon / otsbjs.md
Created July 20, 2012 14:03 — forked from agnoster/otsbjs.md
Open Tech School Berlin JS

In the spirit of Railsgirls Berlin, we want to start a programming education group for JavaScript. We need your help to get all the coaching done.

If you are interested in coaching JavaScript, fork this gist and add yourself or leave your contact data in a comment:

@purbon
purbon / otsbjs.md
Created July 20, 2012 14:05 — forked from agnoster/otsbjs.md
Open Tech School Berlin JS

In the spirit of Railsgirls Berlin, we want to start a programming education group for JavaScript. We need your help to get all the coaching done.

If you are interested in coaching JavaScript, fork this gist and add yourself or leave your contact data in a comment:

@purbon
purbon / package.json
Created September 21, 2012 18:54
Stream live web cam video using Node.js and Gstreamer
{
"name": "streamingtest",
"version": "0.0.1",
"engines": {
"node": ">=0.6.0"
},
"dependencies": {
"express": "2.5.x",
"coffee-script": "1.2.x"
},
/**
* Read the value of a header in the current document.
*
* This uses a [single] XMLHTTPRequest to do a HEAD of the current document
* and fetch HTTP response header values. Note that the implementation is
* rather stupid in that it spins waiting for the XMLHTTPRequest to complete
* if it hasn't been called yet.
*
* @param name string
  1. General Background and Overview
@purbon
purbon / es.sh
Last active August 29, 2015 14:14 — forked from anonymous/es.sh
#!/bin/bash
ES_URL='https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.1.tar.gz'
ES_HOME='/tmp/es'
DATA_DIR_ES='/tmp/es/data'
ES_PID=$ES_HOME/es.pid
update_config ()
{
config="cluster.name: temp-tal-elasticsearch
@purbon
purbon / yardoc_cheatsheet.md
Created June 2, 2016 15:59 — forked from chetan/yardoc_cheatsheet.md
YARD cheatsheet

YARD CHEATSHEET http://yardoc.org

cribbed from http://pastebin.com/xgzeAmBn

Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.

Modules

Namespace for classes and modules that handle serving documentation over HTTP

@purbon
purbon / ECDH_BC.java
Created April 18, 2018 16:21 — forked from wuyongzheng/ECDH_BC.java
Elliptic curve Diffie–Hellman using Bouncy Castle v1.50 example code
import java.math.BigInteger;
import java.security.PublicKey;
import java.security.PrivateKey;
import java.security.KeyFactory;
import java.security.Security;
import java.security.KeyPairGenerator;
import java.security.KeyPair;
import java.security.SecureRandom;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.ECGenParameterSpec;
@purbon
purbon / SSLPoke.java
Created October 25, 2018 14:58 — forked from 4ndrej/SSLPoke.java
Test of java SSL / keystore / cert setup. Check the commet #1 for howto.
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {
public static void main(String[] args) {