Skip to content

Instantly share code, notes, and snippets.

View btbytes's full-sized avatar
🐎
🏈

Pradeep Gowda btbytes

🐎
🏈
View GitHub Profile
@btbytes
btbytes / kannada_on_karmic_koala.markdown
Created July 11, 2009 02:52
Reading and Writing Kannada on Ubuntu Karmic Koala

Reading and Writing Kannada on Ubuntu Karmic Koala (9.04)

$ sudo apt-get scim scim-m17n scim-gtk2-immodule ttf-kannada-fonts
$ scim-setup &

and assign ctrl+alt+space as the trigger for switching keyboard layouts.

Create 75scim file under /etc/X11/Xsession.d/ with following lines (if you have 90im-switch, better to remove it for this setup)

Notes on ConTeXt

Installation

on Ubuntu :

$ sudo apt-get install context
@btbytes
btbytes / plone_init_script.sh
Created July 13, 2009 13:18
Init script for Plone on Debian
#!/bin/sh -e
# Start/stop Zope/Plone server instance
#
# REF: http://plone.org/documentation/how-to/simple-etc-rc-d-init-d-script-for-zeocluster
# Adapted for Debian paths, current Plone 3.2.2+ version and LSB compliance.
# This init script works for a default 'stand-alone' Plone unified installer
# installation (on a single Zope instance)
#
# create as: /etc/init.d/Plone
# to activate it, run: update-rc.d Plone defaults
@btbytes
btbytes / nginx_userdir.conf
Created July 13, 2009 19:37
User-based Website Directories with Nginx
## REF: http://blog.sbf5.com/?p=6
# For requests starting with a tilde, break them into three components:
# 1. The username, everything after the tilde up to the first slash
# 2. The file location, everything after the username up to the last slash
# 3. The trailing slash(es)
# Then, rewrite to go to the f~/ branch.
location /~ {
if ($request_uri ~ ^/~([^/]*)(/.*[^/]|)(/*)$) {
set $homedir $1;
set $filedir $2;
@btbytes
btbytes / kannada_xetex.markdown
Created July 17, 2009 03:24
Typesetting Kannada Unicode using XeTeX

Typesetting Kannada Unicode using XeTeX

System: Ubuntu 9.04

Install XeTeX

$ sudo apt-get install texlive-xetex

Download Akshar fonts and install

#!/usr/bin/env escript
-export([main/1]).
main([]) ->
io:format("hello world!~n").
@btbytes
btbytes / cleanup.sh
Created August 11, 2009 16:58
Debian CF Install Cleanup script
#!/bin/bash
function doc() {
echo "Removing documentation ..."
find / -type d -regex '.*\(/doc/\|/info/\).*' -exec rm -r {} \; 2>/dev/null
}
function man() {
echo "Removing man pages ..."
find / -type d -regex '.*\(/man/\).*' -exec rm -r {} \; 2>/dev/null
@btbytes
btbytes / fabfile.py
Created December 18, 2009 20:29 — forked from fiee/fabfile.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
fabfile for Django
------------------
see http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p/
modified for fabric 0.9/1.0 by Hraban (fiëé visuëlle)
several additions, corrections and customizations, too
<script src="http://pradeepgowda.com/js/processing.js" type="text/javascript"></script>
<script src="http://pradeepgowda.com/js/init.js" type="text/javascript"></script>
<script type="text/javascript">
Array.max = function( array ){
return Math.max.apply( Math, array );
};
Array.min = function( array ){
return Math.min.apply( Math, array );