Skip to content

Instantly share code, notes, and snippets.

@uniphil
Last active December 20, 2015 21:25
Show Gist options
  • Save uniphil/5032901 to your computer and use it in GitHub Desktop.
Save uniphil/5032901 to your computer and use it in GitHub Desktop.
linux development python focus
# this is not actually a shell script, just some self-reminders for stuff to do on new systems. mind the git configs.
# lets be serious
sudo apt-get install aptitude
# git.
sudo aptitude install git meld
git config --global user.name "Your Name Here"
git config --global user.email "your_email@example.com"
# github ssh key
ssh-keygen -t rsa -C "your_email@example.com"
# allow defaults, use a passphrase
sudo aptitude install xclip && xclip -sel clip < ~/.ssh/id_rsa.pub
# paste at https://github.com/settings/ssh
# python tools
sudo aptitude install virtualenv python-pip ipython
# basic site-wide python tools
sudo pip install flask django requests
# numerical stuff yay
sudo aptitude install python-pandas pylab scipy python-matplotlib
# sublime text 2 from ppa: http://www.webupd8.org/2011/03/sublime-text-2-ubuntu-ppa.html
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo aptitude update && sudo aptitude install sublime-text
# set sublime user preferences to first json file below
# sublime package control http://wbond.net/sublime_packages/package_control/installation
# in sublime: ctrl+` and paste the second file below
# python headers are often handy
sudo aptitude install python-dev
# mongo!
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
# http://www.pantz.org/software/shell/echo_lines_into_a_root_owned_file_with_sudo.html
echo "echo deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen > /etc/apt/sources.list.d/10gen.list" | sudo bash
sudo aptitude update && sudo aptitude install mongodb-10gen
sudo pip install pymongo
# other handy buildy stuff
sudo aptitude install build-essential g++ scons autoconf automake cmake
# fortran, haha
sudo aptitude install f77 gfortran
# TODO: add arduino compiling/uploading tools
GitGutter
SublimeLinter
LiveReload
emmet
soda
SublimeCodeIntel
LESS
CoffeeScript
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')
{
"dictionary": "Packages/Language - English/en_GB.dic",
"font_size": 9,
"rulers": [78,80,84],
"translate_tabs_to_spaces": true,
"auto_complete_commit_on_tab": true
}
@niksg
Copy link

niksg commented Mar 6, 2013

nice man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment