Skip to content

Instantly share code, notes, and snippets.

@AMeng
Last active December 7, 2016 18:09
Show Gist options
  • Save AMeng/c2b52ff7d82e0f90be1c to your computer and use it in GitHub Desktop.
Save AMeng/c2b52ff7d82e0f90be1c to your computer and use it in GitHub Desktop.
Ubuntu starting commands

Basic stuff:

sudo apt-get update -y
sudo apt-get install -y bundler curl git guake network-manager-openvpn network-manager-openvpn-gnome openvpn python python-dev python-virtualenv ruby shellcheck virtualbox vagrant vim xclip

Slack:

sudo apt-add-repository -y ppa:rael-gc/scudcloud
sudo apt-get update -y
sudo apt-get install -y scudcloud

Spotify:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 94558F59
sudo add-apt-repository "deb http://repository.spotify.com stable non-free"
sudo apt-get update -y
sudo apt-get install -y spotify-client
FILE="tmp.deb"; wget "http://security.debian.org/debian-security/pool/updates/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+deb7u3_amd64.deb" -qO $FILE && sudo dpkg -i $FILE; rm $FILE

Java 8:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install -y oracle-java8-installer

Nokigiri bullshit:

sudo apt-get install -y libxml2-dev libxslt1-dev
sudo gem install nokogiri -- --use-system-libraries

AWS CLI:

sudo pip install awscli
[default]
region=us-east-1
output=text
[profile staging]
region=us-east-1
output=text
[profile prod]
region=us-east-1
output=text
[prod]
aws_access_key_id=
aws_secret_access_key=
[staging]
aws_access_key_id=
aws_secret_access_key=
# Colored man pages
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment