Skip to content

Instantly share code, notes, and snippets.

@wildintellect
wildintellect / buildliveinchroot.sh
Created May 1, 2012 23:31
OSGeo Live chroot build
#LiveCD on the commandline
#https://help.ubuntu.com/community/LiveCDCustomization
DIR=`dirname ${0}`
VERSION=`cat "$DIR"/../VERSION.txt`
PACKAGE_NAME="osgeo-live"
ISO_NAME="${PACKAGE_NAME}-${VERSION}"
sudo apt-get install squashfs-tools genisoimage
#TODO add wget to grab a fresh image, optional
@wildintellect
wildintellect / latexlistings.tex
Created October 18, 2011 07:18
Example latex use of listings package with custom keywords added to a langauge definition.
\lstset{language=SQL,
numbers=left,
frame=single,
backgroundcolor=\color[RGB]{234,237,230},
numberstyle=\tiny,
basicstyle={\footnotesize\ttfamily\bfseries},
frameround=tttt,
breaklines=true,
keywordstyle=\color[RGB]{32,74,135},
commentstyle=\color[RGB]{143,89,2},
@wildintellect
wildintellect / 5rc5to5rc6.sh
Created August 28, 2011 03:26
osgeolive5rc5fix
#!/bin/sh
#
# Corrections file for 5.0rc5
# Must be run as sudo
#
# Theoretically these should be solved in upstream tickets if building from scratch.
# cd ~/gisvm/
# svn up
# cd bin
# wget https://gist.github.com/gists/1176202/download -O gist.tar.gz
Error: SiteDomain parameter not defined in your config/domain file. You
must edit it for using this version of AWStats.
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may
be wrong.
Check config file, permissions and AWStats documentation (in 'docs'
directory).