Skip to content

Instantly share code, notes, and snippets.

View miqui's full-sized avatar

Miguel Quintero miqui

View GitHub Profile
@miqui
miqui / gist:0874439f5ac598dcfe31
Created October 27, 2015 00:45
git log color
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
https://www.atlassian.com/git/tutorials/
@miqui
miqui / gist:019ec14fbf382265b463
Created November 17, 2015 23:01
quick latest docker install
wget https://get.docker.io/builds/Linux/x86_64/docker-latest -O docker
sudo install -D -m 0755 docker /usr/bin/docker
@miqui
miqui / gist:7ff6f16e22014826e989
Created January 10, 2016 18:35
docker save image
sudo docker save <my-image> | gzip -9 > <my-image>.tar.gz
#!/bin/sh
set -e
#
# This script is meant for quick & easy install via:
# 'curl -sSL https://get.docker.com/ | sh'
# or:
# 'wget -qO- https://get.docker.com/ | sh'
#
# For test builds (ie. release candidates):
# 'curl -sSL https://test.docker.com/ | sh'
@miqui
miqui / gist:1c71a64a0de14db914e9
Created January 10, 2016 19:14
install docker compose
curl -L https://github.com/docker/compose/releases/download/1.5.0rc3/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# or using pip
pip install -U docker-compose==1.5.0rc3
@miqui
miqui / gist:4f3853e934753af5defa
Last active January 11, 2016 03:48
ubuntu recover admin/root pwd
1. reboot PC (hit shift key during reboot)
2. select recovery->root in menu
3. mount -rw -o remount
4.passwd
@miqui
miqui / gist:6445355231d47f5ef8ea
Created January 11, 2016 02:30
sublime install in ubuntu
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
@miqui
miqui / 0_reuse_code.js
Created January 11, 2016 03:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@miqui
miqui / new_gist_file_0
Created January 12, 2016 20:00
JSON Hacks
http://haacked.com/archive/2009/06/25/json-hijacking.aspx/