Skip to content

Instantly share code, notes, and snippets.

View panuta's full-sized avatar

Panu Tangchalermkul panuta

  • Samutprakarn, Thailand
View GitHub Profile
@panuta
panuta / gist:1852087
Last active June 16, 2024 18:15
How to setup Django/Postgresql on OS X Mountain Lion using Homebrew

Command Line Tools for Xcode

Command line tools comes bundle with Xcode prior to 4.3 version. After 4.3, you need to install a separated command line tools yourself.

First, go to this url and login using Apple Developer account (Free to register)

https://developer.apple.com/downloads/index.action
@panuta
panuta / gist:1897940
Created February 24, 2012 05:14
Generate a document thumbnail (doc, xls, ppt and openoffice formats) in Ubuntu Server 10.04
  1. Install OpenOffice headless package

    $ sudo apt-get install openoffice.org-headless openoffice.org-java-common openoffice.org-writer openoffice.org-calc openoffice.org-impress
    
  2. Install UNO python library

$ sudo apt-get install python-uno unoconv

@panuta
panuta / gist:1984908
Created March 6, 2012 08:26
My Python Developer Environment Guide

iPython

Install iPython

sudo pip install ipython

Using iPython within virtualenv

@panuta
panuta / gist:1991540
Created March 7, 2012 06:54
Design Resources
@panuta
panuta / gist:3075882
Last active May 7, 2024 13:33
How to setup Django server with virtualenv on Ubuntu Server 12.04

Fix locale problem

Open file /etc/default/locale to add or change LC_ALL to the following

LC_ALL="en_US.UTF-8"

Then logout and login again.

Install necessary packages

<?xml version="1.0"?>
<opml version="1.0"><head><title>Overcast Podcast Subscriptions</title></head><body><outline type="rss" text="Radiolab from WNYC" title="Radiolab from WNYC" xmlUrl="http://feeds.wnyc.org/radiolab" htmlUrl="http://www.radiolab.org/series/podcasts/"/><outline type="rss" text="99% Invisible" title="99% Invisible" xmlUrl="http://feeds.99percentinvisible.org/99percentinvisible" htmlUrl="http://99percentinvisible.prx.org/"/><outline type="rss" text="Design Matters with Debbie Millman: 2009-2015" title="Design Matters with Debbie Millman: 2009-2015" xmlUrl="http://designobserver.com/show.designmatters2009-10.xml" htmlUrl="http://designobserver.com/topic/designmatters/1039"/><outline type="rss" text="Boxes and Arrows Podcast" title="Boxes and Arrows Podcast" xmlUrl="http://boxesandarrows.com/files/banda/itunes.xml" htmlUrl="http://boxesandarrows.com/"/><outline type="rss" text="UX Podcast" title="UX Podcast" xmlUrl="http://feeds.feedburner.com/uxpodcast" htmlUrl="http://uxpodcast.com/"/><outline
@panuta
panuta / gist:04dc95b7661043ca734b59ab12e36436
Last active October 11, 2016 10:41
Deploy Django application with virtualenv on Ubuntu Server 16.04 using Nginx and uWSGI

Fix locale problem

Open file /etc/default/locale to add or change LC_ALL to the following

LC_ALL="en_US.UTF-8"

Then logout and login again. (I've tried to find a better way to do this but failed. If you can, please tell me.)

Install necessary packages