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
$ dpkg-reconfigure tzdata |
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
# The ssh-copy-id command (in the openssh-client package and installed by default) does exactly this: | |
$ ssh-copy-id [email protected] | |
# copies the public key of your default identity (use -i identity_file for other identities) to the remote host. |
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
sudo -E gem install omniauth-twitter --version=1.0.0 |
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
ssh -L 3013:localhost:3013 ebro |
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 all screen session | |
$ screen -ls | |
# connect to 'launch' session | |
$ screen -x launch | |
# hide screen session | |
ctrl + A, ctrl + D |
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
sudo apt-get install default-jdk raspell | |
sudo apt-get install libpq-dev libgeoip-dev libcurl3 libcurl3-gnutls libcurl4-openssl-dev |
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
# ref http://www.christopherirish.com/2012/03/21/how-to-set-the-timezone-on-ubuntu-server/ | |
# ref http://askubuntu.com/questions/3375/how-to-change-time-zone-settings-from-the-command-line# | |
sudo dpkg-reconfigure tzdata |
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
# 1. take out comments (starting with '#') | |
# 2. take out empty lines | |
grep -v '^#' my.conf | grep -v '^$' > stripped.my.conf | |
# credits http://ubuntuforums.org/showthread.php?t=2157515&p=12706474#post12706474 |
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
# As root user | |
sudo su | |
# Update the OS | |
apt-get update -y | |
# Add this to ~/.bashrc to remove timezone warnings | |
export LC_ALL="en_US.UTF-8" | |
source ~/.bashrc |