Skip to content

Instantly share code, notes, and snippets.

@AndersonFurlane
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save AndersonFurlane/e61d082ecfe297d871e7 to your computer and use it in GitHub Desktop.

Select an option

Save AndersonFurlane/e61d082ecfe297d871e7 to your computer and use it in GitHub Desktop.
Install Ubuntu

Ubuntu

pendrive boot

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
sudo apt-get update 
sudo apt-get upgrade
sudo apt-get install git-core unrar curl gimp ubuntu-restricted-extras htop compizconfig-settings-manager libcurl4-openssl-dev gnome-do build-essential

nano ~/.bashrc

function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/(\1$(parse_git_dirty))/"
}
export PS1='\[\e[1;37m\]\w\[\e[m\] $(parse_git_branch "(%s)" ) \[\e[1;32m\]\$ \[\e

lamp

sudo apt-get install lamp-server^ libmysqlclient-dev memcached

rvm

curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/'rvm'
rvm requirements
rvm install 2.1.1

rvm unistall and install with readline

    rvm unistall ruby-version
    rvm implode
    rm -rf ~/.rvm
    sudo apt-get --purge remove ruby-rvm
    rvm pkg install readline
    curl -L https://get.rvm.io | bash -s stable --ruby
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"     
source ~/.bashrc
rvm reload
    rvm install ruby-version --with-readline-dir=/usr/include/readline

nano ~/.gitconfig

#paste
[alias]
st = status
ci = commit
co = checkout
br = branch
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
[color "status"]
added = yellow
changed = cyan
untracked = red

IMAGE MAGICK

sudo apt-get install aptitude
sudo aptitude install imagemagick

#Sublime 3 Download

tar vxjf Sublime\ Text\ 2.0.1\ x64.tar.bz2
    mv Sublime\ Text\ 2 /usr/lib/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment