Skip to content

Instantly share code, notes, and snippets.

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 https://code.google.com/p/go
  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
ernesto-jimenez / msapplication-starturl.csv
Created November 26, 2013 00:15
~400 apps using defining msapplication-starturl
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 4 columns, instead of 3. in line 6.
/Users/ernesto/webmob-reports/webdevdata-latest//00/parcelmonkey.co.uk_00258938c78d758402a7157fbfe9d547.html.txt,meta,msapplication-starturl,http://www.parcelmonkey.co.uk
/Users/ernesto/webmob-reports/webdevdata-latest//00/xero.com_0043b9237e6b712ab1fc191cb6826929.html.txt,meta,msapplication-starturl,/?pinned=true
/Users/ernesto/webmob-reports/webdevdata-latest//01/donkiz.fr_017165c9107dec5a1d65817e28c0b65e.html.txt,meta,msapplication-starturl,http://www.donkiz.fr
/Users/ernesto/webmob-reports/webdevdata-latest//01/pizzahut.com_01eb225f350f043bf0744a325eb6644a.html.txt,meta,msapplication-starturl,//www.pizzahut.com/
/Users/ernesto/webmob-reports/webdevdata-latest//03/pricespy.co.nz_03d1df9c01c40a42311e2ee75174342c.html.txt,meta,msapplication-starturl,/
/Users/ernesto/webmob-reports/webdevdata-latest//03/yelp.nl_03044c564ceaac173b8659f001233e03.html.txt,meta,msapplication-starturl,http://www.yelp.nl/
/Users/ernesto/webmob-reports/webdevdata-latest//05/wonobo.com_05d9df0d455f3cfc2a27bf8e6a46a39b.html.txt,meta,m
@ernesto-jimenez
ernesto-jimenez / gist:11276103
Last active March 27, 2017 09:15
Missing information in slack's payload

Issue

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 https://github.com/ernesto-jimenez/slackline/issues/2

The following message

@blanca_tp: check out #general

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 (https://keybase.io/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:

@ernesto-jimenez
ernesto-jimenez / dependencies.md
Created January 25, 2016 13:12
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

  10 github.com/gorilla/mux
   9 golang.org/x/net/context
   7 golang.org/x/oauth2
   7 github.com/gorilla/websocket
   6 github.com/spf13/cobra

App names reports

Summary

Total files with title or name meta tags: 5597

Files with more than one title tag: 469

Top tag combinations

This file has been truncated, but you can view the full file.
.//00/113.com.tw_004ffb1043ffc7099735ab6940aa198e.html.txt,meta,description
.//d4/gagreport.com_d44de93200073a71f1dc02dd3681ebf1.html.txt,meta,Description
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,csrf-param
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,csrf-token
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,description
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,title
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,keywords
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,age-de-meta-label
.//d4/gamereplays.org_d4d5b9b94675b967c72c811cf4e86452.html.txt,meta,keywords
.//d4/gamereplays.org_d4d5b9b94675b967c72c811cf4e86452.html.txt,meta,description
@ernesto-jimenez
ernesto-jimenez / top_400_meta_names
Last active December 27, 2015 21:09
**approximation** Source: http://webdevdata.org 2013-10-30
# Top 400 meta tag names
**approximation**
60522 description
49058 keywords
21547 robots
15573 viewport
14236 generator
14167 google-site-verification