Skip to content

Instantly share code, notes, and snippets.

View sirleech's full-sized avatar

Christopher Lee sirleech

  • Canberra, Australia
View GitHub Profile
@sirleech
sirleech / arduino_multibyte_serial_example.cpp
Created August 2, 2011 23:43 — forked from fairchild/arduino_multibyte_serial_example.cpp
Simple updated examples of arduino serial communications
/* ------------------------------------------------
* SERIAL COM - HANDELING MULTIPLE BYTES inside ARDUINO - 03_function development
* by beltran berrocal
*
* this prog establishes a connection with the pc and waits for it to send him
* a long string of characters like "hello Arduino!".
* Then Arduino informs the pc that it heard the whole sentence
*
* the same as examlpe 03 but it deploys 2 reusable functions.
* for doing the same job.
@sirleech
sirleech / install-mapnik2.md
Created February 8, 2012 05:04 — forked from cspanring/install-mapnik2.md
Mapnik2 on Ubuntu 11.10 installation

Mapnik2 on Ubuntu 11.10 installation

Dependencies

sudo apt-get install -y g++ cpp \
python-dev libxml2 libxml2-dev \
libfreetype6 libfreetype6-dev \
libjpeg62 libjpeg62-dev \
libltdl7 libltdl-dev \
libpng12-0 libpng12-dev \
@sirleech
sirleech / gist:1765586
Created February 8, 2012 05:05
Installing Java and Tomcat6 on Ubuntu 11.10

#Java and Tomcat6 on Ubuntu

Versions Tested: 10.04/11.10

##Web Apps Path:

/var/lib/tomcat6/webapps/
@sirleech
sirleech / gist:1765615
Created February 8, 2012 05:10
Mapnik Rendering System on Ubuntu 11.10 Installation

Install Postgres and Postgis

sudo apt-get install postgresql-9.1 pgadmin3 postgresql-contrib postgis postgresql-9.1-postgis

Set password for user Postgres

sudo su postgres
psql
\password postgres
@sirleech
sirleech / gist:1783670
Created February 9, 2012 22:04
Freenas 7 Update Fuppes DB Nightly, upnp
Add this to your cron:
/etc/rc.d/fuppes updatedb
@sirleech
sirleech / gist:1786544
Created February 10, 2012 04:14
Revert PHP 5.3 to 5.2 (better compatibility with Drupal 6)

Let us list all existing PHP packages to know what version we are running:

# dpkg -l | grep php

So, now we are going to duplicate the existing sources.list and replace the lucid with karmic repos and saving it in sources.list.d

@sirleech
sirleech / gist:1786641
Created February 10, 2012 04:36
Apache Solr for Drupal 6 Installation
@sirleech
sirleech / gist:1812914
Created February 13, 2012 02:49
PHP Image Processing Libraries Ubuntu 10.04
PHP5
php5 curl php5-curl php5-xcache php-pear php5-dev
GD
php5-gd
PHP Imagick
sudo apt-get install imagemagick libmagick9-dev
sudo pecl install imagick
@sirleech
sirleech / gist:1813307
Created February 13, 2012 03:31
Reinstall Apache2 Ubuntu

To replace configuration files that have been deleted, without purging the package, you can do

sudo apt-get -o DPkg::Options::="--force-confmiss" --reinstall install apache2.2-common

To fully remove the apache2 config files, you should

sudo apt-get purge apache2.2-common
@sirleech
sirleech / gist:1813497
Created February 13, 2012 03:55
Apache SSI (Server Side Includes)
Apache Mods Required
a2enmod rewrite
a2enmod include
Virtual Host: SSI Includes, AllowOverride All, index.php
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny