Skip to content

Instantly share code, notes, and snippets.

View cecepm's full-sized avatar

Cecep Mahbub cecepm

  • Jakarta, Indonesia
View GitHub Profile
@cecepm
cecepm / gist:5113864
Last active December 14, 2015 16:19
Install Graphite on CentOS 6 using virtualenv
@cecepm
cecepm / gist:5628827
Last active April 1, 2019 04:12
Setup ZSH with help from oh-my-zsh

Setup ZSH with help from oh-my-zsh

iTerm in action

Installing oh-my-zsh

Clone repository

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
@cecepm
cecepm / gist:5641044
Created May 24, 2013 03:07
Using south on existing django apps

Using south on existing django apps

Initial convert

On one of your django instance

./manage.py syncdb
./manage.py convert_to_south <app_name>

To apply on another django instance (other development env or on production server)

@cecepm
cecepm / gist:5683547
Last active December 17, 2015 22:39
Migrate PostGIS version 1.5 to version 2.0 using PostgresApp on Mac OSX

Migrate PostGIS version 1.5 to version 2.0 using PostgresApp on Mac OSX

Version

Source DB (data to be migrated)

OS Ubuntu 12.04 (on vagrant/virtualbox vm)
PostgreSQL 9.1
PostGIS 1.5.3
@cecepm
cecepm / postgis_administration.md
Last active March 28, 2016 15:40
PostgreSQL cheatsheet

PostGIS Administration

Create Database with Spatial Support (PostGIS v2.0)

Connect to your database, example using psql command line

\connect mydb

then install extensions

@cecepm
cecepm / gist:6366520
Last active December 21, 2015 21:09
Install QGIS 1.8 on Mac OSX 10.8 (Mountain Lion)

Install QGIS 1.8 on Mac OSX 10.8 (Mountain Lion)

Download and install in this order

http://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.9.dmg
http://www.kyngchaos.com/files/software/frameworks/GSL_Framework-1.16-1.dmg
http://www.kyngchaos.com/files/software/qgis/QGIS-1.8.0-2.dmg

GRASS Support

@cecepm
cecepm / gist:6666459
Last active December 23, 2015 17:09
Install Scientific iPython on Mac OSX 10.8 (Mountain Lion)

iPython Notebook

Install iPython and prerequisites in virtualenv

mkvirtualenv ipy
pip install numpy
brew install gfortran
pip install scipy
brew install freetype

pip install matplotlib

@cecepm
cecepm / gist:6668013
Last active December 23, 2015 17:19
Install Scientific iPython on Ubuntu 12.04

Install iPython Notebook

Install virtualenv and virtualenvwrapper

sudo apt-get install python-virtualenv virtualenvwrapper

Create virtual environment

mkvirtualenv ipy
@cecepm
cecepm / gist:7283918
Last active December 27, 2015 06:49
Update VirtualBox Guest Additions

Warning:

[default] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
cause things such as shared folders to not work properly. If you see
shared folder errors, please update the guest additions within the
virtual machine and reload your VM.

Guest Additions Version: 4.2.12

VirtualBox Version: 4.3

@cecepm
cecepm / gist:7801973
Last active December 30, 2015 08:19
Install Sentry on Ubuntu 12.04

Install Prerequisites

Build dependencies

sudo apt-get install build-essential python-dev python-pip

Database

sudo apt-get install postgresql-9.1 postgresql-server-dev-9.1