This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// hnsort | |
// v0.3 | |
// Copyright (c) 2009, Wayne Burkett | |
// Released under the GPL license | |
// http://www.gnu.org/copyleft/gpl.html | |
// ==UserScript== | |
// @name hnsort | |
// @namespace http://wayneburkett.com | |
// @description Sort articles on the Hacker News homepage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: ./xcode_sdk_link.sh /Applications/Xcode-<old_version>.app | |
platforms_path="$1/Contents/Developer/Platforms"; | |
if [ -d $platforms_path ]; then | |
for platform in `ls $platforms_path` | |
do | |
sudo ln -sf $platforms_path/$platform/Developer/SDKs/* $(xcode-select --print-path)/Platforms/$platform/Developer/SDKs; | |
done; | |
fi; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MarkAsRead | |
// v0.1 | |
// Copyright (c) 2008, Wayne Burkett | |
// Released under the GPL license | |
// http://www.gnu.org/copyleft/gpl.html | |
// ==UserScript== | |
// @name MarkAsRead | |
// @namespace http://dionidium.com/projects/greasemonkey/ | |
// @description Mark previously-read Hacker News comments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download the shapefiles and parcel data, merge it all together, and dump it into a database | |
mkdir tmp && \ | |
curl -L "https://www.stlouis-mo.gov/data/upload/data-files/prcl_shape.zip" -o tmp/prcl.zip && \ | |
cd tmp && \ | |
unzip prcl.zip && \ | |
curl -LO "https://www.stlouis-mo.gov/data/upload/data-files/par.zip" && \ | |
unzip par.zip && \ | |
mv par.dbf prcl.dbf && \ | |
ogr2ogr -f SQLite prcl_raw.db prcl.shp -t_srs EPSG:4326 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see this gist for instructions to generate the database of parcels this was created from | |
# https://gist.github.com/wayneburkett/9fc130e1e2f1f6105a6fa2c0e74c2e3c | |
ogr2ogr -f GeoJSON northside.geojson prcl.shp -t_srs EPSG:4326 -select handle -where "ownername LIKE 'NORTHSIDE REGEN%'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias.about !describe() { msg="$1"; git config branch."$(git rev-parse --abbrev-ref HEAD)".description ${msg:+"$msg"}; }; describe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get a pared-down database of the trees in NYC | |
# the downloaded CSV is ~210M | |
# the generated DB is ~22M | |
mkdir trees && \ | |
curl -L "https://data.cityofnewyork.us/api/views/uvpi-gqnh/rows.csv?accessType=DOWNLOAD" -o trees/trees.csv && \ | |
ogr2ogr -f SQLite trees.db trees/trees.csv -nln trees -dialect sqlite \ | |
-sql "SELECT tree_id AS id, \ | |
ROUND(latitude, 6) lat, \ | |
ROUND(longitude, 6) lon \ | |
FROM trees" |
OlderNewer