Skip to content

Instantly share code, notes, and snippets.

View face detection system

Before you start

Make sure you have python, OpenFace and dlib installed. You can either install them manually or use a preconfigured docker image that has everying already installed:

docker pull bamos/openface
docker run -p 9000:9000 -p 8000:8000 -t -i bamos/openface /bin/bash
cd /root/openface

Keybase proof

I hereby claim:

  • I am ernesto-jimenez on github.
  • I am ernesto ( on keybase.
  • I have a public key whose fingerprint is 8D10 A2C2 7C76 CD6A 59E6 7407 4927 19FF F4CE 55FB

To claim this, I am signing this object:

View gopher gala
ernesto-jimenez /
Created Jan 25, 2016
Top packages used in public repos from Gopher Gala 2016

I did a quick calculation of what are the most imported packages.

Top 20 imported packages

ernesto-jimenez / .zshrc
Created Mar 20, 2015
When entering a dir with a git repository, start a new tmux session for that repository or attach to the existing one if it has already been started.
View .zshrc
# Always use the same tmux session in directories with git
attach_tmux_for_dirs_with_repos() {
if [ "$TERM" != "screen-256color" ]; then
if [ -d .git ]; then
SESSION_NAME=$(echo -n ${PWD//*\//}-tmux | tr . -)
tmux attach -t $SESSION_NAME || tmux new -s $SESSION_NAME
add-zsh-hook precmd attach_tmux_for_dirs_with_repos
ernesto-jimenez / test.go
Created Jan 26, 2015
Limiting the amount of requests in-flight
View test.go
package main
import (
type LimitedRoundTripper struct {
inflight chan interface{}
ernesto-jimenez / gist:11276103
Last active Mar 27, 2017
Missing information in slack's payload
View gist:11276103


Given an 3rd party integrated with outbound webhooks, when a client writes a message mentioning another user (@user) or channel (#channel). The 3rd party receives a message containing the usrer/channel ID but the payload doesn't specify what user/channel that message corresponds to.

E.g. from

The following message

@blanca_tp: check out #general

View mobilewebappcapable.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have columns, instead of 1. in line 7.

Patch to cross compile to android with net/http support

Installation instructions

We need to patch Go's source code to allow cgo when cross-compiling and make Android-specific changes since it sometimes differs from linux (e.g.: it doesn't use /etc/resolv.conf for DNS config)

  1. Clone the go source: hg clone -u release
  2. Enter the go source directory: cd go
  3. Apply the patch in this gist: patch -p1 < /path/to/patch/go_android.patch
  4. Enter the go/src directory: cd src
ernesto-jimenez / msapplication-starturl.csv
Created Nov 26, 2013
~400 apps using defining msapplication-starturl
View msapplication-starturl.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have columns, instead of 3. in line 6.