Skip to content

Instantly share code, notes, and snippets.

View abatko's full-sized avatar

Aba Tkosan abatko

  • Kanazawa, Japan
View GitHub Profile
@abatko
abatko / check_path.rb
Created October 19, 2012 22:11
Ruby script that checks the PATH environment variable, and displays its directories one per line
#!/usr/bin/ruby
abort 'PATH is not set' if ENV['PATH'].nil?
seen = Hash.new
output = ''
ENV['PATH'].split(':').each do |p|
seen[p] = seen[p].nil? ? 1 : seen[p]+1
output += " #{p}"
@abatko
abatko / uninstall-silverlight.sh
Created February 23, 2016 18:22
Uninstall / Remove Silverlight from Mac system
rm -rf /Library/Internet\ Plug-Ins/Silverlight.plugin
rm -rf /Library/Internet\ Plug-Ins/WPFe.plugin
rm -rf /Library/Receipts/Silverlight.pkg
rm -rf /Library/Receipts/Silverlight_W2_MIX.pkg
rm -rf /Library/Receipts/WPFe.pkg
@abatko
abatko / US Zip Code Geolocations from 2018 Government Data
Last active September 27, 2024 00:20
All US zip codes with their corresponding geolocations (latitude and longitude coordinates). Comma delimited for your database goodness. Source: https://www.census.gov/geographies/reference-files/time-series/geo/gazetteer-files.html > ZIP Code Tabulation Areas > Download the ZIP Code Tabulation Areas Gazetteer File
This file has been truncated, but you can view the full file.
ZIP,LAT,LNG
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158327, -66.932928
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.447538, -66.557681
00622,17.991245, -67.153993
@abatko
abatko / 2022-US-zip-codes-abatko.csv
Last active September 17, 2024 13:53
All US zip codes from 2022 Government Data, with geolocations (latitude and longitude coordinates), comma delimited. Source: https://www.census.gov/geographies/reference-files/time-series/geo/gazetteer-files.html > ZIP Code Tabulation Areas > Download the ZIP Code Tabulation Areas Gazetteer File. Based on https://gist.github.com/abatko/ee7b24db8…
We can't make this file beautiful and searchable because it's too large.
ZIP,LAT,LNG
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.457399, -67.124867
00606,18.158327, -66.932928
00610,18.293960, -67.127182
00611,18.276316, -66.807165
00612,18.416727, -66.700090
00616,18.420412, -66.671979
00617,18.446889, -66.561154
@abatko
abatko / 2023-US-zip-codes-abatko.tsv
Created June 11, 2024 09:07
All US ZIP codes from 2023 government data, with their geolocations (latitude and longitude coordinates), formatted as tab-separated values (TSV). Data source: https://www.census.gov/geographies/reference-files/time-series/geo/gazetteer-files.html under 'ZIP Code Tabulation Areas' > 'Download the ZIP Code Tabulation Areas Gazetteer File'. Unlike…
We can't make this file beautiful and searchable because it's too large.
ZIP LAT LNG
00601 18.180555 -66.749961
00602 18.361945 -67.175597
00603 18.457399 -67.124867
00606 18.158327 -66.932928
00610 18.295304 -67.12518
00611 18.276316 -66.807165
00612 18.416727 -66.70009
00616 18.420412 -66.671979
00617 18.446889 -66.561154