Skip to content

Instantly share code, notes, and snippets.

View guillermoroblesjr's full-sized avatar

Guillermo Robles, Jr. guillermoroblesjr

View GitHub Profile
# other
whereis node
ss -lnp
sudo start ssh
sudo restart ssh
sudo killall node
sudo killall -u root node
sudo update node
dolphin ./ &
dolphin &
@guillermoroblesjr
guillermoroblesjr / gist:b730c1d77c398291218b
Last active August 29, 2015 14:15
Force dnsomatic.com DDNS updating
# Force dnsomatic.com DDNS updating
sudo ddclient -force
# Start node server
# login as root
nohup node subdomain-server.js &
@guillermoroblesjr
guillermoroblesjr / gist:fbd48e95329aac616208
Created February 19, 2015 22:40
Updating packages with apt-get
# Updating
sudo apt-get update
sudo apt-get dist-upgrade
# a specific program to update:
sudo apt-get install <program>
# View auth.log
sudo tail -f /var/log/auth.log
@guillermoroblesjr
guillermoroblesjr / gist:9b17a625395f8c0cddf8
Created February 25, 2015 17:01
NPM list dependencies
# list all dependencies
npm list --depth=0
# list dependencies for a specific package
npm list --depth=0 | grep grunt-contrib-compass
find ./ -name "myfile.js"
@guillermoroblesjr
guillermoroblesjr / gist:39164a814e8266f47707
Created February 26, 2015 20:25
Installing/Updating Cmake with Ubuntu or LinuxMint
# From: http://www.cmake.org/pipermail/cmake/2013-February/053649.html
# This will create a directory named "Support" in your home folder, download
# and extract CMake 2.8.10. Finally it invokes cmake with the "-version"
# param to check that cmake run.
cd && mkdir Support && cd Support && \
wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2-Linux-i386.tar.gz && \
tar -xzvf cmake-2.8.10.2-Linux-i386.tar.gz && \
./cmake-2.8.10.2-Linux-i386/bin/cmake -version
@guillermoroblesjr
guillermoroblesjr / gist:acc2ec6b189fd4c6b896
Created March 12, 2015 19:25
Save CURL output to a file
curl -o mygettext.html http://www.gnu.org/software/gettext/manual/gettext.html
@guillermoroblesjr
guillermoroblesjr / gist:374998dd675f6b4f7416
Created March 13, 2015 15:02
NPM shrinkwrap save with dev dependencies
npm shrinkwrap --dev