# bower error
git config --global url.https://github.com/.insteadOf git://github.com/
# push master
git push origin master
#git ignore
# .gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #show hardware information | |
| sudo lshw -html > ~/hardware_info.html && google-chrome ~/hardware_info.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #install wireshark and start as root user | |
| $ sudo apt-get install wireshark | |
| $ sudo dpkg-reconfigure wireshark-common | |
| $ sudo usermod -a -G wireshark $USER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #update to las version | |
| sudo npm cache clean -f | |
| sudo npm install -g n | |
| sudo n stable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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/ |