sublime text 3 packages – knowledge share

Rebuilt my laptop and have been reconfiguring and upgrading stuff ever since. I forget how much customization goes into a dev box. These are mostly notes to myself but if they help someone else, cool.

You can get sublime text 3 at http://www.sublimetext.com/3 – it is my text editor of choice. And like wordpress plugins or tendenci add-on modules, it is extensible. Make it do what you want, right?

ST3 packages and installing them is a bit different from sublime text 2 so I thought I would share what I had to do to get things installed.

Go to this link
https://packagecontrol.io/installation
Then copy the code on the left on that page
Open the sublime console by typing CTL+` (that last thing is a “tick” mark – top left on a mac keyboard)
Paste the code you copied into the sublime console and hit enter.
Then restart sublime text 3.

Next hit COMMAND+SHIFT+P and type in “Package Control: Install Packages”
You should now see a list of packages to install.

Some common plugins that don’t require much thought to decide on. After that install what you need, but no more, to keep things tidy and fast.

HTML5
Makes HTML look pretty and easier to work with by color coding.

Python Improved
To make this your default Python, open a `.py` Python file.
Select `View -> Syntax -> Open all with current extension as… -> PythonImproved`
and you should be all set.

Color Highlighter
Shows CSS codes in the color that is chosen FFFFF for example.

GitGutter
Shows changes since your last commit by putting small visual cues on the left hand side.

sublime-adding-packages

Screen Shot 2015-08-15 at 2.00.23 PM

markdownlight-sublime-plugin

Search for more packages here: https://packagecontrol.io/ ¬†They have some good ones for css and less/sass/etc… I’d look for the ones with the MOST downloads as an indicator of if it is a stable plugin.

django errors using boot2docker tutorial

If you are doing the docker-compose / boot2docker tutorial on the docker site at:

https://docs.docker.com/compose/django/

There are a few typos and items that will stop you, at least on a Mac although I suspect they are an issue on a PC as well. These are my notes, out of context but hopefully they will help someone else having problems with errors and configuration of Django Dockers for their dev environment.

boot2docker up
docker-compose up
# the following line runs it in the background
docker-compose up -d
To connect the Docker client to the Docker daemon, please set:
 export DOCKER_HOST=tcp://192.168.59.103:2376
# this tells you your environment variables
docker-machine env
http://192.168.59.103:5000/
# The following is incorrect in the docs
docker-compose run web python composeexample/manage.py syncdb

Rough notes, but hopefully enough to help you google for more if you are hitting the same wall I did with boot2docker and docker-compose for Django.

Update: also helpfule https://github.com/ambitioninc/container-transform