Skip to content

Instantly share code, notes, and snippets.


Richard Cornish richardcornish

View GitHub Profile
dannysteenman / Text Substitutions.plist
Created Jul 16, 2020
macOS emoji text replacements
View Text Substitutions.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
veltman /
Last active Mar 9, 2021
Generating an SVG from a set of shapefiles

Generating an SVG from a set of shapefiles

The USGS provides detailed downloads of fire perimeters, with timestamped files that can be used to show the spread of a major fire over time.

Using the 2017 Thomas fire as an example, we'll process this data into a single SVG file with all the different perimeter measurements.

This index page contains links to a series of shapefiles of the fire boundary, each one with a timestamp:


Setting up RetroArch on Raspberry Pi 4 and building emulator cores

Guide for myself and others to get RetroArch running on the new Raspberry Pi 4 while projects like RetroPie get an image out for the rpi4.
Disclaimer: I am not an expert and this may not be the most optimal build possible, but it works.

Inspiration taken from:

JamoCA / Comment-Spam-Addresses.txt
Last active Apr 20, 2021
A list of email addresses (or domains when the username is randomized) that are actively blocked using our internal feedback form and/or comment spam filters. Updated regularly. Last Updated: 4/20/2021 (When comparing, sanitize gmail addresses to remove dots & + )
View Comment-Spam-Addresses.txt
dannguyen /
Last active May 21, 2019
Using wget + grep to explore inconveniently organized federal data (FAA Section 333 Exemptions)

if !database: wget + grep

The Federal Aviation Administration is posting PDFs of the Section 333 exemptions that it grants, i.e. the exemptions for operators who want to fly drones commercially before the FAA finishes its rulemaking. A journalist wanted to look for exemptions granted to operators in a given U.S. state. But the FAA doesn't appear to have an easy-to-read data file to use and doesn't otherwise list exemptions by location of operator.

However, since their exemptions page is just one giant HTML table for listing the PDFs, we can just use wget to fetch all the PDFs, run pdftotext on each file, and then [grep](

View gist:8285680
View StripeTutorialPage.html
<!DOCTYPE html>
<html lang="en">
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Getting Started Form</title>
<!-- The required Stripe lib -->
<script type="text/javascript" src=""></script>
<!-- jQuery is used only for this example; it isn't required to use Stripe -->
venkatesh22 / django custom signal
Created Jun 26, 2013
django custom signals creation example
View django custom signal
from django.dispatch import Signal
user_login = Signal(providing_args=["request", "user"])
from foo import signals
harrisj / tinyurl_test.rb
Created Apr 26, 2012
Testing Punctuation on URL Shorteners
View tinyurl_test.rb
require 'net/http'
# These links were taken from my twitter timeline. No endorsement implied.
tiny_urls = {
'bitly' => ['', ''],
'' => ['', ''],
'tinyurl' => ['', ''],
'owly' => ['', ''],
'' => ['', ''],
'' => ['', ''],