Skip to content

Instantly share code, notes, and snippets.

View rcoup's full-sized avatar

Robert Coup rcoup

View GitHub Profile
sgillies / advanced_rasterio_features.ipynb
Last active November 20, 2023 12:50
Advanced Rasterio features notebook
View advanced_rasterio_features.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
jessfraz / boxstarter.ps1
Last active February 14, 2024 15:54
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Jess Frazelle <>
# Last Updated: 2017-09-11
# Install boxstarter:
# . { iwr -useb } | iex; get-boxstarter -Force
# You might need to set: Set-ExecutionPolicy RemoteSigned
# Run this boxstarter by calling the following from an **elevated** command-prompt:
Manouchehri / rfc3161.txt
Last active March 1, 2024 22:34
List of free rfc3161 servers.
View rfc3161.txt
dunkelstern /
Created March 8, 2016 17:15
Use the inline image functionality of iTerm2 3.0 to display an animated gif from giphy search
from __future__ import print_function
import urllib
import json
import sys
import base64
search = urllib.quote(sys.argv[1])
json_data = urllib.urlopen("{searchterm}&api_key=dc6zaTOxFJmzC&limit=1".format(searchterm=search)).read()
ejdyksen /
Last active February 21, 2024 11:17
A script to fix EDID problems on external monitors in macOS


A script to fix EDID problems on external monitors in macOS.


  1. Connect only the problem display.

  2. Create this directory structure (if it doesn't already exist):

dzello / keen_io_zrank.rb
Last active December 18, 2015 17:09
A simple Ruby script illustrating how to implement Redis-style ZRANK on the result of a Keen IO group_by query
View keen_io_zrank.rb
# Example Keen IO API response for a count, grouped by an 'entry' field
keen_result = [
"entry" => "Apple",
"result" => 15
"entry" => "Orange",
"result" => 10
mapbutcher / gist:5623849
Last active December 17, 2015 14:19
Python class which uses mapnik to create a static map based upon a coordinate.
View gist:5623849
import mapnik
from shapely.geometry import *
class StaticMap:
srs = '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs'
wgs = '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs'
stylesheet = 'REA_Bright_Local.xml'
markername = 'rea.png'
exportpath = 'output/'
NZKoz / solar87
Created March 28, 2013 01:38
Riyadh Solar Time
View solar87
# <pre>
# This file is in the public domain, so clarified as of
# 2009-05-17 by Arthur David Olson.
# So much for footnotes about Saudi Arabia.
# Apparent noon times below are for Riyadh; your mileage will vary.
# Times were computed using formulas in the U.S. Naval Observatory's
# Almanac for Computers 1987; the formulas "will give EqT to an accuracy of
# [plus or minus two] seconds during the current year."
springmeyer /
Last active October 6, 2015 05:38
Basics of performance profiling for users that want fast programs