Skip to content

Instantly share code, notes, and snippets.

@flores
flores / leapmotion_sample_output.txt
Created November 13, 2014 20:42
leapmotion sample output
Frame id: 24410, timestamp: 361046122, hands: 1, fingers: 5, tools: 0, gestures: 0
Right hand, id: 6, palm position: (-112.191, 111.737, 52.8653)
pitch: 15.1425 degrees, roll: -12.2504 degrees, yaw: -1.47126 degrees
Arm direction: (-0.123611, 0.203058, -0.971333) wrist position: (-102.575, 100.338, 105.105) elbow position: (-69.4312, 45.8921, 3
65.547)
Thumb finger, id: 60, length: 51.7551mm, width: 20.1096
Metacarpal bone, start: (-132.391, 94.7399, 107.878), end: (-132.391, 94.7399, 107.878), direction: (0, 0, 0)
Proximal bone, start: (-132.391, 94.7399, 107.878), end: (-165.444, 98.2172, 71.098), direction: (0.666774, -0.0701479, 0.7419
52)
Middle bone, start: (-165.444, 98.2172, 71.098), end: (-188.353, 100.842, 46.3038), direction: (0.676586, -0.0775056, 0.732273
@flores
flores / nsync
Created September 19, 2014 16:39
/usr/bin/nsync
#!/bin/bash
echo bye bye bye
sleep 0.5
echo bye bye
sleep 0.2
echo bye bye
sleep 0.2
echo oh oh
echo nsync\'d
@flores
flores / excitement.sh
Created February 4, 2014 00:10
excitement.sh
while true; do
kill -9 `echo $RANDOM`
done
alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
alias b='sudo'
alias white='aterm -fg black -bg white +sb &'
alias x='startxfce4'
alias compiz='SKIP_CHECKS=yes LIBGL_ALWAYS_INDIRECT=1 INTEL_BATCH=1 compiz --replace --indirect-rendering &'
@flores
flores / keybase.md
Created October 2, 2014 22:27
keybase verification

Keybase proof

I hereby claim:

  • I am flores on github.
  • I am lo (https://keybase.io/lo) on keybase.
  • I have a public key whose fingerprint is 734F 15D8 6BBC 81BA 4A32 7EFB CA89 C74C 9D17 7F14

To claim this, I am signing this object:

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.12 (GNU/Linux)
hQEMA6aR1BAqao5YAQf+NXnXXosSRA+23VURiSUqSF8jGzsXZiMaFpXdbLBXH7sH
vWQj6TJfxLN3zdT6XjWl31Fiep+xYm9obdcjLK4W6Fp4USqlP3l9omWKuDNfg5uL
lDHjgvj2x9YA/VikGSUHivYA23dHcNo8wjX/a2D7G9yo65fuedbHqMiaFJcddDTQ
ku4baYVGiBoACuDjkophVZoc4OUyMn9u3WsjYCSmpha5F462lABfEyG2KPspAC+Q
RjDYB4NXsRvz9g6KHYwIp2aVcxV5g9O56sFP/Uy368/RE5Wn3hyMHVMpmKWM4cR9
QXJeTomo4hM9TFWdBG4DoFtUFoYHzabbAlQ7u8FjJdJPAYC4tengKZuNp/vGwdgc
AfbTJHk1lZr0BQMmEGGDNaqM9H2gsfVwxtDA9CQtoKHy8OlDO1I1eMvO3cW4wp0S
@flores
flores / gist:1623381
Created January 16, 2012 22:28
sample haproxy.cfg
global
log 127.0.0.1 local0 notice
maxconn 50000
daemon
stats socket /tmp/proxystats level admin
defaults
log global
mode http
option httplog
option dontlognull
@flores
flores / hastebin.sh
Created September 8, 2012 00:39
hastebin shell client
#!/bin/bash
server='hastebin.com';
usage="$0 pastes into $server
usage: $0 something
example: '$0 pie' or 'ps aufx |$0'"
if [ -z $1 ]; then
str=`cat /dev/stdin`;
@flores
flores / contact.haml
Created November 26, 2011 21:40
Sinatra + Sanitize + AWS SES Contact form, example
%form{ :action => "/", :method => "post"}
%label{:for => "name"} name:
%input{:type => "text", :name => "name""}
%label{:for => "mail"} email:
%input{:type => "text", :name => "mail"}
%label{:for => "subject"} subject:
%input{:type => "text", :name => "subject"}
%label{:for => "body"} message:
%textarea{:name => "body"}
%input{:type => "submit", :value => "send", :value => "send"}
@flores
flores / gist:1387621
Created November 23, 2011 01:05
npm list = "UNMET DEPENDENCY". k, npm install module. same module now becomes "extraneous"
shark@0.0.1 /var/lib/jenkins/workspace/shark
├─┬ express@2.4.6
│ ├─┬ connect@1.8.0
│ │ └── UNMET DEPENDENCY formidable 1.0.x
│ ├── mime@1.2.4
│ └── qs@0.3.2
├── hiredis@0.1.12
├─┬ optimist@0.2.6
│ └── wordwrap@0.0.2
├── redis@0.6.7