Skip to content

Instantly share code, notes, and snippets.

View jansanchez's full-sized avatar

Jan Sanchez jansanchez

View GitHub Profile
@jansanchez
jansanchez / gist:6236445
Last active December 21, 2015 02:39
chaplin native coffee compile
# Agregar al final del archivo: ~/.bashrc
alias chaplin='coffee --watch --bare --output src/public/static/js/um/ frontend/chaplin/coffee/'
# para ejecutar: solo escribir en el terminal lo siguiente:
chaplin
@jansanchez
jansanchez / gist:6228504
Created August 14, 2013 06:32
Install Brunch + ChaplinJs / Linux CrunchBang
# Install Brunch
sudo npm install -g brunch
# clone skeleton(in the our project path)
brunch new https://github.com/paulmillr/brunch-with-chaplin
#
@jansanchez
jansanchez / gist:6226971
Created August 14, 2013 00:22
Colorful Bash Prompt
# @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt”
# Shamelessly copied from https://github.com/gf3/dotfiles
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM=gnome-256color
elif infocmp xterm-256color >/dev/null 2>&1; then
export TERM=xterm-256color
fi
if tput setaf 1 &> /dev/null; then
@jansanchez
jansanchez / gist:6226891
Last active December 21, 2015 01:19
change proxy settings in /etc/enviroment
# edit Enviroment
vim /etc/environment
# add
no_proxy=localhost,127.0.0.0/8,*.local,local.*,*.red.corporativa
NO_PROXY=localhost,127.0.0.0/8,*.local,local.*,*.red.corporativa
all_proxy=socks://172.21.0.83:3128
@jansanchez
jansanchez / gist:6215596
Created August 12, 2013 21:45
GIT: Revert changes to modified files and Remove all untracked files and directories
# Revert changes to modified files:
git reset --hard
# Remove all untracked files and directories:
git clean -fd
@jansanchez
jansanchez / gist:6212444
Created August 12, 2013 16:20
/etc/fstab - mount
# discs list
fdisk -l
# mount
mount /dev/sda2 /media/WIN7/ -t ntfs -o nls=utf8,umask=0222
# /etc/fstab: static file system information.
@jansanchez
jansanchez / gist:6208156
Last active December 20, 2015 22:49
Install Ruby on Linux
sudo apt-get install irb
sudo apt-get install ruby1.9.1
# Install Ruby gem: thin Server
sudo gem install thin
# Install Ruby gem: sinatra - http://www.sinatrarb.com/
@jansanchez
jansanchez / gist:6203061
Created August 11, 2013 02:02
Git install and config for github.com
# Go to: https://help.github.com/articles/set-up-git
# And later: https://help.github.com/articles/generating-ssh-keys
Enjoy!
@jansanchez
jansanchez / gist:6202643
Last active March 17, 2017 20:17
Install Sublime Text into Linux CrunchBang 11 [Waldorf] and your Main Development Packages
# First, download the latest version from: http://www.sublimetext.com/2
# In my case choice: Linux 64 bits [[http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2]]
cd ~/downloads
# unzip: Sublime Text 2.0.2 x64.tar.bz2
tar -zxvf Sublime\ Text\ 2.0.2\ x64.tar.bz2
@jansanchez
jansanchez / gist:6198809
Last active September 25, 2017 03:04
Install NodeJs and your dependences
# write how sudo
sudo apt-get update && sudo apt-get install git-core curl build-essential openssl libssl-dev
# clone node repo
# in ~/user
git clone https://github.com/joyent/node.git