Skip to content

Instantly share code, notes, and snippets.

View dakcarto's full-sized avatar

Larry Shaffer dakcarto

  • Black Hills, South Dakota
View GitHub Profile
#MapProxy sample configuration file
services:
demo:
kml:
tms:
wms:
srs: ['EPSG:4326', 'EPSG:900913', 'EPSG:4258']
image_formats: ['image/jpeg', 'image/png']
md:
@dakcarto
dakcarto / qgis-nightly-build.sh
Created January 26, 2012 18:02
Bash script for local nightly builds of QGIS master branch on Mac OS X Snow Leopard and Lion
#!/bin/bash
# -*- coding: utf-8 -*-
#
# Create QGIS for Mac OS X nightly build from github.com 'master' branch.
# Keep a number of dmg archives of previous builds as backups.
#
# Tested under Lion 10.7.4 and Snow Leopard 10.6.8, **run via sudo**
# Requires same kyngchaos.com framework setup and build environment as per
@dakcarto
dakcarto / INFO_ee_forum_post.txt
Created March 10, 2012 03:28
Nginx 1.x Config for ExpressionEngine 2.x, with PATH_INFO and Adaptable HTTPS Support
This post is a report on my recent experiment getting EE to run well on a Nginx/PHP-FPM/PHP5.3.3+, no-Apache2 setup. I'm new to EE, but not server administration, with plenty of experience using Apache2.
However, after seeing the excessive RAM usage by Apache2 on my Ubuntu 10.04 LTS virtual server, (ve) @ MediaTemple.net , I wanted to look into deploying my first EE site on a more lightweight, but still robust setup, capable of scaling well. After working with EE for a bit, and finding out just how cool it is, I thought I'd share my results of trying this with Nginx 1.x.
The point of this post is to garner input from other EE server admins to refine these Nginx configs, with the hopeful outcome of generating, as much as possible, a 'config-and-drop-in' Nginx setup. While setting up current versions of Nginx and PHP-FPM are not within the scope of this posting...
[b]On Ubuntu 10.0.4[/b], you may want to check out:
@dakcarto
dakcarto / qgis-mac-build.sh
Created June 9, 2012 22:05
Bash script for local builds of QGIS on Mac OS X Snow Leopard and Lion
#!/bin/bash
# -*- coding: utf-8 -*-
#
# Build Mac OS X QGIS.app locally from github.com QGIS repository.
# Keep a number of dmg archives of previous builds as backups.
#
# **Run via sudo, if not installing under home directory**
#
# YOU MUST HAVE FORKED QGIS GITHUB.COM REPOSITORY AND CLONED IT TO YOUR MAC.
@dakcarto
dakcarto / composerlabel_patch.diff
Created July 5, 2012 19:56
Patch for composer label text edit erratic cursor, should not break ticket #5862 fix.
diff --git a/src/app/composer/qgscomposerlabelwidget.cpp b/src/app/composer/qgscomposerlabelwidget.cpp
index 69a42af..ac25c87 100644
--- a/src/app/composer/qgscomposerlabelwidget.cpp
+++ b/src/app/composer/qgscomposerlabelwidget.cpp
@@ -42,8 +42,10 @@ void QgsComposerLabelWidget::on_mTextEdit_textChanged()
if ( mComposerLabel )
{
mComposerLabel->beginCommand( tr( "Label text changed" ), QgsComposerMergeCommand::ComposerLabelSetText );
+ mComposerLabel->blockSignals( true );
mComposerLabel->setText( mTextEdit->toPlainText() );
@dakcarto
dakcarto / gdal-mdb-patch.diff
Last active December 24, 2015 23:09
Patch for homebrew GDAL 1.10 for MDB driver (uses Java framework). Tested on 10.7.5 (with Mac Java 1.6.0 JDK) and 10.8.5 (with Oracle Java 1.7 JDK)
diff --git a/configure b/configure
index 6ab3a35..6d4a4ca 100755
--- a/configure
+++ b/configure
@@ -28406,11 +28406,13 @@ $as_echo_n "checking whether we should include Java support... " >&6; }
JAVA_HOME=""
JAVA_INC=""
+mac_java_fw=""
@dakcarto
dakcarto / set-mac-app-env.sh
Last active July 17, 2020 14:34
Simple shell script to set/replace Mac .app bundle environment variables
#!/bin/bash
# usage: <script> "path to .app bundle"
# convert to absolute path (needed by 'defaults' command)
CMD="import os, sys; print os.path.realpath(\"$1\")"
# echo $CMD
APP=$(/usr/bin/python -c "$CMD" )
@dakcarto
dakcarto / libkml-1.2-static-deps
Created November 11, 2013 20:33
Fix to statically link internal custom dependencies, instead of creating .dylibs
diff --git a/third_party/Makefile.in b/third_party/Makefile.in
index ec56ad0..20cddc6 100644
--- a/third_party/Makefile.in
+++ b/third_party/Makefile.in
@@ -265,15 +265,15 @@ AM_CPPFLAGS = -I$(top_srcdir)/third_party/zlib-1.2.3/contrib \
-I$(top_srcdir)/third_party/googletest-r108 \
-I$(top_srcdir)/third_party/googletest-r108/include
-lib_LTLIBRARIES = libminizip.la liburiparser.la
-noinst_LTLIBRARIES = libgtest.la
@dakcarto
dakcarto / libkml-svn-static-deps
Created November 11, 2013 20:44
Fix to statically link internal custom dependencies, instead of creating .dylibs
diff --git a/third_party/Makefile.am b/third_party/Makefile.am
index 571c240..5512a77 100644
--- a/third_party/Makefile.am
+++ b/third_party/Makefile.am
@@ -5,15 +5,15 @@ AM_CPPFLAGS = -I$(top_srcdir)/third_party/zlib-1.2.3/contrib \
-I$(top_srcdir)/third_party/googletest-r108 \
-I$(top_srcdir)/third_party/googletest-r108/include
-lib_LTLIBRARIES = libminizip.la liburiparser.la
-noinst_LTLIBRARIES = libgtest.la libgtest_main.la
@dakcarto
dakcarto / postgis-config_strip-pgsql.diff
Created November 13, 2013 23:59
Patch to strip all the PostgreSQL functions from PostGIS configure.ac, to allow building liblwgeom.dylib without needing PostgreSQL
diff --git a/configure.ac b/configure.ac
index 67ad482..8312847 100644
--- a/configure.ac
+++ b/configure.ac
@@ -325,160 +325,6 @@ fi
AC_SUBST([ICONV_LDFLAGS])
AC_SUBST([ICONV_CFLAGS])
-
-dnl ===========================================================================