Skip to content

Instantly share code, notes, and snippets.

View DarinMacRae's full-sized avatar

Darin MacRae DarinMacRae

View GitHub Profile
@philippb
philippb / git-backup-to-AWS-S3.sh
Created March 6, 2012 20:52 — forked from weavenet/gist:1524092
Complete git repository backup script to AWS S3
#!/bin/bash
# Script to backup git repo to S3
# Set bucket, dir, password and account to use for the backup. I keep mine in local env vars
# These are set by localrc which lives on an encrypted home directory and is executed by my bashrc
bucket=$GITHUB_BACKUP_BUCKET
dir=$GITHUB_BACKUP_DIR
password=$GITHUB_BACKUP_PASSWORD
account=$GITHUB_ACCOUNT
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Reflection;
namespace FindConflictingReference
{
public class Reference
{
public AssemblyName Assembly { get; set; }
@murdockcrc
murdockcrc / documentdb_random.js
Last active September 28, 2018 16:58
DocumentDB stored procedure to retrieve a random document
/*
The MIT License (MIT)
Copyright (c) 2015 HdV Media GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
#!/bin/bash
#
# Requires:
# - gdal_sieve.py
# - ogr2ogr (GDAL)
# - topojson (node.js)
# Grab the relative directory for source file.
SRC_DIR=`dirname $0`
@ryanbaumann
ryanbaumann / install-tippecanoe-on-windows.md
Last active April 11, 2024 13:20
Install Tippecanoe to make Mapbox Vector Tiles on a Windows 10 OS machine

Problem

Tippecanoe is an open source command line tool for creating Mapbox Vector Tiles. It runs only on unix environments like MacOS and Linux - so if you need to make maps with large vector data from geojson, shapefiles, or similar - you're hosed if you're on Windows.

Goals

  1. Create vector tiles of massive vector data on a Windows 10 machine

Requirements