Skip to content

Instantly share code, notes, and snippets.

View oldpatricka's full-sized avatar

Patrick Armstrong oldpatricka

View GitHub Profile
brew install readline
brew link readline
brew install python
brew install postgres
brew install postgis
brew install gdal
brew install geos
brew install git
brew install tmux
brew install pip
brew install readline
brew link readline
brew install python
brew install postgres
brew install postgis
brew install gdal
brew install geos
brew install git
brew install tmux
brew install pip
# Fucking lxml. (thanks to toastdriven)
brew install libxml2 --static
curl -O ftp://xmlsoft.org/libxml2/libxslt-1.1.22.tar.gz
tar xvzf libxslt-1.1.22.tar.gz
cd libxslt-1.1.22
env CFLAGS="-arch i386 -arch ppc -arch x86_64" LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk" ./configure --disable-dependency-tracking --prefix=/usr/local --with-libxml-prefix=/usr/local/Cellar/libxml2/2.7.7/
make
make install
pip install lxml==2.2.6
#From http://www.nimbusproject.org/doc/2.5/DHCP-TP1.2.2-draft2.pdf
Xen is integrated heavily with Linux for dom0 operations and has some hooks for adding
and removing iptables rules upon VM creation/destruction. Broadcast packets coming
from a guest virtual interface (we will use vif1.0 in this example) are by default copied to
the whole LAN. To avoid this situation, we investigated using iptables but found that
ebtables offers the most solid solution.
ebtables is a standard Linux package and the kernel support for it is in a default Xen
installation. As with ISC DHCP, installing the userspace tools (/sbin/ebtables) is a one
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000000
auto repeat delay: 525 repeat rate: 11
auto repeating keys: 00ffffffffffffff
ffffffffffffffff
ffffffffffffffff
ffffffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Bandersnatch:~ patricka$ cat uuidtest.c
#import <uuid/uuid.h>
#import <stdio.h>
int main() {
uuid_t my_uuid;
uuid_generate(my_uuid);
char uuid_string[60];
uuid_unparse(my_uuid, uuid_string);
patricka@patricka-laptop:~/hep-gc-cloud-scheduler-c1b4e52$ sudo python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
creating /usr/local/lib/python2.6/dist-packages/cloudscheduler
copying build/lib.linux-i686-2.6/cloudscheduler/cloud_management.py -> /usr/local/lib/python2.6/dist-packages/cloudscheduler
copying build/lib.linux-i686-2.6/cloudscheduler/info_server.py -> /usr/local/lib/python2.6/dist-packages/cloudscheduler
copying build/lib.linux-i686-2.6/cloudscheduler/cluster_tools.py -> /usr/local/lib/python2.6/dist-packages/cloudscheduler
<job>
<executable>/bin/sh</executable>
<directory>${GLOBUS_USER_HOME}</directory>
<argument>script.${GLOBUS_JOB_ID}.sh</argument>
<stdout>${GLOBUS_USER_HOME}/out.${GLOBUS_JOB_ID}.txt</stdout>
<stderr>${GLOBUS_USER_HOME}/err.${GLOBUS_JOB_ID}.txt</stderr>
<fileStageIn>
<transfer>
<sourceUrl>gsiftp://heplw26.phys.uvic.ca/hepuser/patricka/gridtest/script.sh</sourceUrl>
<destinationUrl>file:///${GLOBUS_USER_HOME}/script.${GLOBUS_JOB_ID}.sh</destinationUrl>

What Metadata should be editable by users/admins?

What metadata should be accessible via the API?

##Images Legend: u = user suppiled m = mandatory

  • uuid
@oldpatricka
oldpatricka / gdal java bindings
Created November 5, 2010 18:44
build porblems
==> ############## building java bindings
==> make
make
mkdir -p org/gdal/gdal
mkdir -p org/gdal/gdalconst
swig -Wall -I../include -I../include/java -I../include/java/docs -outdir "org/gdal/gdal" -package "org.gdal.gdal" -I/private/tmp/homebrew-gdal-1.7.2-89rL/gdal-1.7.2 -c++ -java -o gdal_wrap.cpp ../include/gdal.i
mkdir -p org/gdal/ogr
mkdir -p org/gdal/osr
swig -Wall -I../include -I../include/java -I../include/java/docs -outdir "org/gdal/gdalconst" -package "org.gdal.gdalconst" -I/private/tmp/homebrew-gdal-1.7.2-89rL/gdal-1.7.2 -java -o gdalconst_wrap.c ../include/gdalconst.i
swig -Wall -I../include -I../include/java -I../include/java/docs -outdir "org/gdal/ogr" -package "org.gdal.ogr" -I/private/tmp/homebrew-gdal-1.7.2-89rL/gdal-1.7.2 -c++ -java -o ogr_wrap.cpp ../include/ogr.i