Skip to content

Instantly share code, notes, and snippets.

View dayne's full-sized avatar

Dayne Broderson dayne

View GitHub Profile
@dayne
dayne / overview.markdown
Created August 15, 2011 18:58
qgis - print composer output

I'm seeing a repeatable bug in the latest (well, pulled from git a week ago) qgis.

Grab a raster file or wms

Give the raster some transparency (30% say)

New Print Composer

Make the whole image a map. I used A4 paper at 300dpi. (less than 300 no bug).

@dayne
dayne / gist:2926707
Created June 13, 2012 21:51 — forked from zhm/gist:2005158
Building GDAL 1.9 with ESRI FileGDB support on OS X Lion

Building GDAL 1.9.x with ESRI FileGDB support on OS X Lion

  • Download the SDK from ESRI's website http://resources.arcgis.com/content/geodatabases/10.0/file-gdb-api
  • Extract the SDK, and put the contents of the directory in a known location, I used ~/local/filegdb. Here's an example path to one of the files: ~/local/filegdb/lib/libFileGDBAPI.dylib
  • I use ~/local/filegdb so it can stay isolated in it's own place. You can put it anywhere, but the next few steps might be different.
  • Go into the directory containing the FileGDB SDK, e.g. ~/local/filegdb
  • ESRI built these dylib's using @rpath's, so to avoid needing to mess with DYLD_LIBRARY_PATH, I updated the @rpath's using install_name_tool. There might be a more elegant way to handle this. If so, comments are welcome!
  • Here are the commands I used to patch the dylibs, this is not required if you want to use DYLD_LIBRARY_PATH yourself:
@dayne
dayne / west_fairbanks_below_540.json
Created October 25, 2014 23:21
west_fairbanks_below_540
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
set-option -g prefix C-A
setw -g aggressive-resize on
set -g base-index 1
bind-key a send-prefix
@dayne
dayne / 0-Fedora QGIS build notes
Last active December 19, 2015 16:49
Fedora QGIS build notes
Notes on a build for a local QGIS on Fedora.
Taken from my old jumbled notes from:
http://dayne.broderson.org/2011/08/14/qgis_on_fedora_15.html
http://dayne.broderson.org/2011/07/21/qgis_from_git.html
@dayne
dayne / .vimrc
Last active December 19, 2015 23:09
.vimrc
syntax on
set softtabstop=2
set shiftwidth=2
set tabstop=2
set expandtab
set background=dark
set t_Co=256 " 256 colors
"show the line numbers on the side. allow for lots of lines"
@dayne
dayne / deepdream-install.md
Last active September 11, 2016 05:44 — forked from robertsdionne/deepdream-install.md
Deepdream installation
#!/usr/bin/env bash

# Assuming OS X Yosemite 10.10.4

# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install
@dayne
dayne / latest.js
Last active September 12, 2016 00:35
$(document).ready(function() {
alert("load!");
latest();
})
function latest()
{
alert("testing");
$.ajax({
url: "/latest_image"
@dayne
dayne / win_fetch_cacerts.rb
Created April 5, 2017 19:12
grab ca certs for use on windows box.. sigh
$ cat ../win_fetch_cacerts.rb
require 'net/http'
require 'openssl'
require 'fileutils'
cert_dir = '/C/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/ssl_certs/curl.haxx.se'
FileUtils.mkdir cert_dir unless File.directory?(cert_dir)
# create a path to the file "C:\RailsInstaller\cacert.pem"
@dayne
dayne / ubuntu 14.04->16.04 upgrade.md
Last active April 16, 2017 20:23
ubuntu 14.04 to 16.04 upgrade notes