Skip to content

Instantly share code, notes, and snippets.

View Fatman13's full-sized avatar
🌐
Building Web3

Y Fatman13

🌐
Building Web3
View GitHub Profile
$ dpkg-reconfigure tzdata
# The ssh-copy-id command (in the openssh-client package and installed by default) does exactly this:
$ ssh-copy-id user@hostname.example.com
# copies the public key of your default identity (use -i identity_file for other identities) to the remote host.
sudo -E gem install omniauth-twitter --version=1.0.0
ssh -L 3013:localhost:3013 ebro
@Fatman13
Fatman13 / Connect to a screen session
Created September 2, 2014 09:48
Connect to a screen session and hide it
# list all screen session
$ screen -ls
# connect to 'launch' session
$ screen -x launch
# hide screen session
ctrl + A, ctrl + D
@Fatman13
Fatman13 / ubuntu_dev_env
Last active August 29, 2015 14:05
Ubuntu packages needed for setting up dev env
sudo apt-get install default-jdk raspell
sudo apt-get install libpq-dev libgeoip-dev libcurl3 libcurl3-gnutls libcurl4-openssl-dev
@Fatman13
Fatman13 / gist:97fb2381f938a5d6a4c3
Last active August 29, 2015 14:05
Ubuntu Time Zone Command
# 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
@Fatman13
Fatman13 / gist:f28e6a24d9702fad70c3
Created August 7, 2014 10:44
Striped (for long conf files)
# 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
# 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