Skip to content

Instantly share code, notes, and snippets.

Avatar

Panu Tangchalermkul panuta

View GitHub Profile
@panuta
panuta / gist:04dc95b7661043ca734b59ab12e36436
Last active Oct 11, 2016
Deploy Django application with virtualenv on Ubuntu Server 16.04 using Nginx and uWSGI
View gist:04dc95b7661043ca734b59ab12e36436

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

View gist:65902f092d4619fe0ed0
<?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:3075882
Last active Nov 25, 2018
How to setup Django server with virtualenv on Ubuntu Server 12.04
View gist:3075882

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

@panuta
panuta / gist:1984908
Created Mar 6, 2012
My Python Developer Environment Guide
View gist:1984908

iPython

Install iPython

sudo pip install ipython

Using iPython within virtualenv

@panuta
panuta / gist:1897940
Created Feb 24, 2012
Generate a document thumbnail (doc, xls, ppt and openoffice formats) in Ubuntu Server 10.04
View gist:1897940
  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:1852087
Last active Apr 8, 2020
How to setup Django/Postgresql on OS X Mountain Lion using Homebrew
View gist:1852087

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