Skip to content

Instantly share code, notes, and snippets.

View santiblanko's full-sized avatar
🎯
Focusing

santiblanko santiblanko

🎯
Focusing
View GitHub Profile
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
@santiblanko
santiblanko / gist:6734415
Last active December 24, 2015 02:59
Virtualbox. Esto no lo borro porque es muy bonito... esto... Lo hice cuando no tenia ni * idea de nada de la vida.
MODO GRAFICO ACTIVADO
VBoxSdl.exe -startvm "NOMBRE_DE_LA_MAQUINA_VIRTUAL"
MODO SIN INTERFAZ GRAFICA
VBoxHeadless.exe -startvm "NOMBRE_DE_LA_MAQUINA_VIRTUAL"
(el redireccionamiento de puertos abajo)
querÌa ahorrar una ventana en la barra de tareas corriendo la VM en el fondo,
pero igual me quedÛ visible la consola de cmd.
asi que esta es una solucion viable.
Slidesjsconf Colombia
James Halliday
https://github.com/substack/browser-unix-colombia-2013
Joe McCann
https://cloudup.com/crkFEmAupqt
Jorge Rubiano
https://www.dropbox.com/s/kuefabnxcm5oxxe/JSConf.pdf
@santiblanko
santiblanko / gist:7953726
Created December 13, 2013 23:53
Add your public SSH key to a server in one command
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> ~/.ssh/authorized_keys'
@santiblanko
santiblanko / post-receive
Created December 16, 2013 02:49
Post-receive hook with composer.
it --work-tree=/var/www/laravel --git-dir=/var/repo/gob.git checkout -f
## store the arguments given to the script
#read oldrev newrev refname
## Where to store the log information about the updates
LOGFILE=./post-receive.log
# The deployed directory (the running site)
DEPLOYDIR=/var/www/laravel

This hexbin map shows the proximity of earthquakes (magnitude 3.0 or greater) in the Canterbury region of New Zealand during the month of September, 2010.

The map is created using Leaflet. The hexbin layer is a custom Leaflet layer which uses d3js to generate a svg hexbin overlay. The source for the custom leaflet layer is viewable here.

Earthquake data sourced from GeoNet.

@santiblanko
santiblanko / .htaccess
Created February 18, 2014 23:37
Laravel apache .htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:ondrej/php5
sudo apt-get update
@santiblanko
santiblanko / db.sh
Created February 19, 2014 05:35
good garbage
#!/bin/bash
echo "Let's get started."
echo -n "What is the name of the database for this app? "
read -e DATABASE
echo Creating MySQL database
mysql -uroot -p -e "CREATE DATABASE $DATABASE"
Somebody asked me how to become a Product Manager. Here's what I wrote them.
---------------------------------------------------------------------------
Hi Jon,
Those are a lot of questions. Let me try to simplify it.
I think a Product Manager is a person who is responsible for determining
what a product should be and how it should evolve. This is a design role