Skip to content

Instantly share code, notes, and snippets.

View fpinzn's full-sized avatar

Francisco Pinzón fpinzn

  • Bogotá, Colombia
View GitHub Profile
@fpinzn
fpinzn / dashboardsillo
Last active December 30, 2015 15:47
The most basic console dashboard
brew install watch
watch -n 1 echo 'Perniles en `date "+%S"` minutos.'
@fpinzn
fpinzn / gist:9799658
Created March 27, 2014 03:40
take screenshot using protractor
browser.driver.takeScreenshot().then (data)->
screenShotDirectory = "../"
filename = "ss.png"
stream = fs.createWriteStream(screenShotDirectory + filename)
stream.write new Buffer(data, "base64")
stream.end()
@fpinzn
fpinzn / generalize_me.sh
Created March 17, 2014 18:41
json to cson using js2coffee
js2coffee -it fn_tree.json > fn_tree.cson
@fpinzn
fpinzn / cube.sh
Last active August 29, 2015 13:57
#!/bin/bash
set -e
source /build/buildconfig
set -x
apt-get install -y mongodb mongodb-server
npm install cube
@fpinzn
fpinzn / gist:5530241
Created May 7, 2013 04:22
Create directory ruby and navigate to it.
mkdir ruby && cd $_
@fpinzn
fpinzn / Preferences.sublime-settings
Created April 23, 2013 01:46
Most recente sublime preferences
{
"auto_complete": true,
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
"characters": "<",
@fpinzn
fpinzn / git-stats.sh
Created March 14, 2013 01:17
Bash script to generate stats, in the shape of a csv file. Each line is composed by the one-line git log of each commit and the number of lines of code tracked. Extracted from https://www.destroyallsoftware.com/screencasts/catalog/statistics-over-git-repositories
#!/bin/bash
set -e
function main {
git rev-list --reverse HEAD |
while read rev; do
echo "'`commit_description`', '`number_of_lines`'"
done > stats.csv
}
@fpinzn
fpinzn / curl file & view result
Created February 20, 2013 16:56
One liner to post a file to an API and open the answered html in a new tab.
curl -X POST -F "[email protected]" 10.0.1.3:3000/api/v1/users/1/data_sources > result.html && open result.html
@fpinzn
fpinzn / Preferences.sublime-settings
Created January 14, 2013 19:12
sublime preferences
{
"auto_complete": true,
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
"characters": "<",
@fpinzn
fpinzn / url
Created October 8, 2012 20:47
url
http://trigion.lvh.me:3000/nl/recruiter?auth_token=AtfabAZA92rrgEJx9JCy#evaluate_applicant/3
dssdaada
ijsaijsaij