Skip to content

Instantly share code, notes, and snippets.

View eencinasq's full-sized avatar

Edwin Encinas eencinasq

  • ffactory
  • CBBA-Bolivia
View GitHub Profile
@eencinasq
eencinasq / Install nvm on ubuntu
Last active August 9, 2016 03:27
install node version manager
# install
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.4/install.sh | bash for mac
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh -x http://172.20.240.5:8080/ | bash
#Setting enviroment var:
. ~/.nvm/nvm.sh
#KILL PROCES
sudo kill $(sudo lsof -t -i:9001)
#MOUNT CD ROM
mount -t iso9660 -o ro /dev/cdrom /mnt
#Install java from tar.gz
sudo tar zxvf jdk-8u65-linux-x64.tar.gz
update-alternatives --install /usr/bin/java java /opt/jdk/bin/java 100
update-alternatives --install /usr/bin/javac javac /opt/jdk/bin/javac 100
@eencinasq
eencinasq / gist:b2294c1987ef26d96985
Created October 1, 2015 19:58
Hardware information linux
#show hardware information
sudo lshw -html > ~/hardware_info.html && google-chrome ~/hardware_info.html
#install wireshark and start as root user
$ sudo apt-get install wireshark
$ sudo dpkg-reconfigure wireshark-common
$ sudo usermod -a -G wireshark $USER
#update to las version
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
@eencinasq
eencinasq / gist:721786452163df9c4c27
Last active August 31, 2016 15:26
LINUX COMMANDS
#LIST HARD DISKS
sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
#FORWARDING OF PORTS
ssh -L 4445:localhost:4444 [email protected]
echo "sss" | nc -l 4444
#COMPRESS FILES
tar -zcvf archive.tar.gz directory/
# bower error
git config --global url.https://github.com/.insteadOf git://github.com/

# push master
git push origin master

#git ignore
# .gitignore