Skip to content

Instantly share code, notes, and snippets.

View springmeyer's full-sized avatar

Dane Springmeyer springmeyer

View GitHub Profile
From 2ba75d69db5a74d61ea4dde54c9e3b4d78d69210 Mon Sep 17 00:00:00 2001
From: Igor Zinkovsky <[email protected]>
Date: Mon, 6 Feb 2012 22:53:39 -0800
Subject: [PATCH] enable 64bit windows build
---
common.gypi | 17 +-
deps/openssl/config/k8/openssl/opensslconf-posix.h | 278 +++++++++++++++++++
deps/openssl/config/k8/openssl/opensslconf-win32.h | 262 ++++++++++++++++++
deps/openssl/config/k8/openssl/opensslconf.h | 281 +-------------------
@bnoordhuis
bnoordhuis / deamontest.js
Created February 5, 2012 22:35 — forked from AndreasMadsen/deamontest.js
Frist draft on a simple javascript deamon
var child_process = require('child_process');
function startDeamon(child, args) {
var newEnv = JSON.parse(JSON.stringify(process.env));
newEnv.deamonOptions = JSON.stringify({exec: child, args: args});
var deamonWatcher = child_process.fork(process.argv[1], ['deamon'], {
@yhahn
yhahn / report.md
Created February 1, 2012 21:48
export report
  • world coastline as line
  • zoom 0 - 8
  • Copied is total z,x,y coordinates considered.
  • Blank is total number of tiles considered fully transparent.
  • Skipped is total z,x,y coordinates that are never requested from Mapnik at all.

Results

--metatile=8
@brianboyer
brianboyer / gist:1696819
Created January 29, 2012 02:21
Lion dev environment notes
@avar
avar / speedtest.sh
Created January 28, 2012 18:33
Basic speedtest.net replacement
#!/bin/sh
cd /tmp
# dd if=/dev/urandom of=100mb-random-file bs=1024 count=$((100*1024))
rm 100mb-random-file
echo "Downloading 100MB from w"
time rsync --rsh=ssh --append --archive --no-group --human-readable --progress w:/tmp/100mb-random-file .
echo "Uploading a 10MB file to w"
@tokumine
tokumine / postgis.py
Created January 21, 2012 00:28
Hacked imposm postgis.py to enable imports to work with PostGIS 2.0
# On OSX, this Imposm file is found at: /Library/Python/2.7/site-packages/imposm/db/postgis.py. YMMV
# Hack basically comments out all the elements relating to modifying the geometry_columns table.
# In PostGIS 2.0 this is a view and handled transparently.
# Copyright 2011 Omniscale (http://omniscale.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@craigds
craigds / mac-development-for-ubuntu-users.rst
Last active May 24, 2021 08:45
Mac development for Ubuntu users

Mac development for Ubuntu users

This is a quick summary of tweaks to make development on a Mac easier for Ubuntu users. These all worked on my Macbook Air with OSX 10.7 Lion.

If you have something to add here, please let me know! http://twitter.com/craigds

1. Install Xcode

@TooTallNate
TooTallNate / README.md
Created November 16, 2011 00:57
A C header file to make your node bindings backwards and forwards compatible that use eio_custom()

node_async_shim.h

Use this header file to conditionally invoke eio_custom() or uv_queue_work(), depending on the node version that the module is being compiled for.

See the usage.cc file for a partial example.

Comments, forks, and improvements are welcome!

@vmg
vmg / sparc.c
Created November 15, 2011 23:03
Sparks in C
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
int main
(int argc
,char *ac []){int i, count = argc - 1;
double * dvalues=malloc(01- 01+count*
sizeof(double)+1); double mi=DBL_MAX,ran=.0,ma =DBL_MIN,mo;for(i= 00; argc>1
&&i<count;i=i+8-7) {double val = atof(ac[i+1]) ;if(23&&val<mi)mi= val;if(val
@mraleph
mraleph / gist:1352731
Created November 9, 2011 19:49
catching memory corruption
static Handle<Value> Stat(const Arguments& args) {
HandleScope scope;
if (args.Length() < 1 || !args[0]->IsString()) {
return THROW_BAD_ARGS;
}
String::Utf8Value path(args[0]->ToString());
if (args[1]->IsFunction()) {