SETUP
Instalación (linux -android only) Instalar JAVA jdk (el de oracle no el openjdk, android no lo recomienda)
##Instalar Android SDK Tools
#cd ~/.config/fish/
. ~/.config/fish/nvm-wrapper/nvm.fish
function fish_prompt
set_color $fish_color_cwd
# echo -n (prompt_pwd)
if test "$PWD" != "$HOME"
printf "%s" (echo $PWD|sed -e 's|/private||' -e "s|^$HOME|~|")
else
echo '~'
end
set_color normal
echo
if not set -q __git_cb
set __git_cb ":"(set_color brown)(git branch ^/dev/null | grep \* | sed 's/* //')(set_color normal)""
end
echo -n $__git_cb '> '
end
function fish_right_prompt -d "Write out the right prompt"
set_color yellow
date
set_color normal
end
thefuck --alias | source
http://blog.mattwoodward.com/2012/03/definitive-guide-to-couchdb.html
#install in c9 sudo mkdir -p /var/run/couchdb sudo chown couchdb:couchdb /var/run/couchdb sudo su couchdb -c /usr/bin/couchdb
#GUI http://127.0.0.1:5984/_utils
#new user { "_id": "org.couchdb.user:user_staging", "name": "user_staging", "type": "user", "roles": [], "password": "user_staging_pass" }
FROM sctrcdr/ubuntu-base
MAINTAINER Stephen Masters <steve@scattercode.co.uk>
# Add a repo where OpenJDK can be found.
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:webupd8team/java
RUN apt-get update
# Auto-accept the Oracle JDK license
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
RUN apt-get install -y oracle-java8-installer
# install ssh server
sudo apt-get install openssh-server
#tmux
sudo apt-get install tmux
#get tmux
wget https://gist.githubusercontent.com/elidiazgt/0fab1b034ed834da9bd5/raw/e294e73a7bb3e1efd3fb84dd0ccc5ae0e7ee4ade/tmux.sh
# set fish
cd ~/.config/fish/
wget https://gist.githubusercontent.com/elidiazgt/0fab1b034ed834da9bd5/raw/54d309e5cb59c4fb38d580cfed7caf213697e9eb/config.fish
#nvm
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
git clone git://github.com/passcod/nvm-fish-wrapper.git nvm-wrapper
#edit config.fish add this line
. ~/.config/fish/nvm-wrapper/nvm.fish
#set git access
ssh-keygen -t rsa -C "your_email@gmail.com"
cat ~/.ssh/id_rsa.pub
#set git repo
git config --global user.email "your_email@gmail.com"
git config --global user.name "Eli Diaz"
git config --global alias.addc '!git add -A && git commit'
#manage github repos
sudo add-apt-repository ppa:cpick/hub
sudo apt-get update
sudo apt-get install hub
#gitflow
sudo apt-get install git-flow
#manual
git clone --recursive git://github.com/nvie/gitflow.git
make install prefix=$HOME
PATH=$PATH:$HOME/bin
. ~/.bashrc
git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
Make simlink
ln -s ls /usr/bin/ls2
#create file
echo ":)" > readme.md
sudo apt-get install apache2
sudo apt-get install mysql-server php5-mysql
sudo mysql_install_db
#i86 lib
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
#libstdc++6:i386 --dont find
apt-get install lib32stdc++6
#g++ compiler
sudo apt-get install g++
#java
sudo apt-get install oracle-java8-installer
#apache ant
sudo apt-get install ant
#sdk android
android update sdk
# el sdk 19
npm install -g node-gyp
apt-get install python2.7
sudo apt-get install python-pip
#node
sudo npm install nativescript -g --unsafe-perm
Instalar NodeJS (runtime) EN UBUNTU:Entrar a Ubuntu Software Center y buscar la palabra “nodejs-legacy” (debido a que en debian tiene que hacerse un symlink) e instalar el Evented I/O for V8 javascript (legacy symlink) .
Entrar a Ubuntu Software Center y buscar la palabra “npm” el Package manager for Node.js
Instalar manejador de instalaciones de node sudo n stable
ios
brew install watchman
brew intall flow
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash
nvm install node && nvm alias default node
sudo npm install -g mup
#!/bin/sh
# lazy tmux start =D
PROJECT_DIR = 'Documents/projects/'
tmux new-session -d -s worksession
tmux rename-window 'worksession'
#load vagrant
tmux send-keys 'cd Documents/projects/' 'C-m'
tmux send-keys 'fish' 'C-m'
#tmux send-keys 'vagrant up' 'C-m'
#tmux send-keys 'vagrant ssh' 'C-m'
#tmux send-keys 'sudo service httpd start' 'C-m'
#tmux send-keys 'sudo service mysqld start' 'C-m'
#server error log
tmux split-window -h -t worksession:0
tmux send-keys 'cd Documents/projects/' 'C-m'
tmux send-keys 'fish' 'C-m'
#tmux send-keys 'tail -f ~/Projects/centos_6/log/error_log' 'C-m'
#local
tmux split-window -v -t 0
tmux send-keys 'cd Documents/Projects/' 'C-m'
tmux send-keys 'fish' 'C-m'
#app and access error
tmux split-window -v -t 1
tmux send-keys 'cd Documents/projects/' 'C-m'
tmux send-keys 'fish' 'C-m'
#tmux send-keys 'tail -f ~/Projects/nuevo_vagrant/log/access_log' 'C-m'
#vagrant
# tmux split-window -v -t 1
# tmux send-keys 'cd Projects/app-clasificados/' 'C-m'
# tmux send-keys 'fish' 'C-m'
#tmux send-keys 'tail -f ~/Projects/nuevo_vagrant/log/access_log' 'C-m'
#log
# tmux split-window -v -t 0
# tmux send-keys 'cd Projects/app-clasificados/' 'C-m'
# tmux send-keys 'fish' 'C-m'
#tmux send-keys 'tail -f ~/Projects/nuevo_vagrant/log/access_log' 'C-m'
tmux select-pane -t 2
tmux attach-session -t worksession
#get vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim