Skip to content

Instantly share code, notes, and snippets.

View philipashlock's full-sized avatar

Philip Ashlock philipashlock

View GitHub Profile
@philipashlock
philipashlock / Screen Shot 2022-11-11 at 11.11.11 PM.png.html
Created November 14, 2022 04:30
Screen Shot 2022-11-11 at 11.11.11 PM.png
<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAA8EAAAXdCAYAAADJjF/aAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAomVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAJAAAAABAAAAkAAAAAEABJKGAAcAAAASAAAAkKABAAMAAAABAAEAAKACAAQAAAABAAADwaADAAQAAAABAAAF3QAAAABBU0NJSQAAAFNjcmVlbnNob3R0HVcAAAAACXBIWXMAABYlAAAWJQFJUiTwAAADC2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj4xNDQvMTwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+MTQ0LzE8L3RpZmY6WVJ
@philipashlock
philipashlock / userChrome.css
Created February 8, 2019 20:03
Firefox userChrome.css for use with Tree Style Tab on Mac OS
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Adapted from https://www.reddit.com/r/FirefoxCSS/comments/ao3ydl/configuring_firefox_for_tree_style_tab_usage/ */
/* hide native tabs and sidebar header */
#TabsToolbar-customization-target {
visibility: collapse;
}
@philipashlock
philipashlock / index.html
Created June 2, 2017 17:21
USC Title 44 diff for S1088
This file has been truncated, but you can view the full file.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="usc.css" />
<title>
United States Code Document
</title>
<!-- AUTHORITIES-PUBLICATION-NAME:United States Code Preliminary Release -->
<!-- AUTHORITIES-PUBLICATION-ID:uscprelim -->
@philipashlock
philipashlock / index.html
Created June 2, 2017 16:50
USC Diff of title44 chap35 subchap I sec3502 for S1088
<style>
del {
background-color : #F2A5A5;
}
.new {
background-color: #BFF2AA;
}
</style>
<pre>
@philipashlock
philipashlock / index.html
Last active June 2, 2017 16:48
USC diff of title44 chap35 subchap Isec3518 for S1088
<head>
<style>
del {
background-color : #F2A5A5;
}
.new {
background-color: #BFF2AA;
}
</style>
@philipashlock
philipashlock / gsa-office-codes-all.csv
Last active May 1, 2017 22:53
GSA Office Codes - All
10P
10PC
10PCE
10PCP
10PCPA
10PCPB
10PCPC
10PM
10PMA
10PMAA
code name
AA Office of the Administrator
AK Office of Civil Rights
B Office of the Chief Financial Officer
C Office of Human Resource Management
D Office of Mission Assurance
E Office of Small Business Utilization
G Civilan Board of Contract Appeals
H Office of Administrative Services
I Office of the Chief Information Officer
@philipashlock
philipashlock / indicator_metadata-updates-08-2016.csv
Created August 31, 2016 21:46
SDG Indicator Metadata Updates from August 15th
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 3 columns, instead of 2. in line 5.
Description of Excel Flagged Discrepancy,CORRECT NAME: Final SDG List-UNSD (via Abdulla) Aug15 2016,INCORRECT OR MISFORMATTED NAME : NRP indicators names FROM WEB SITE (https://gsa.github.io/sdg-indicators/ as of Aug22 2016)
change needed in NRP name,3.1.1 Maternal mortality ratio,3.1.1 Maternal mortality ratio (per 100 000 live births)
TYPO in NRP site (decimal missing),3.6.1 Death rate due to road traffic injuries,3.6 Death rate due to road traffic injuries
change needed in NRP name,3.b.2 Total net official development assistance to medical research and basic health sectors,3.b.2 Total net official development assistance to the medical research and basic health sectors
change needed in NRP name,"5.4.1 Proportion of time spent on unpaid domestic and care work, by sex, age and location","5.4.1 Percentage of time spent on unpaid domestic and care work, by sex, age and location"
TYPO in NRP site name,5.c.1 Proportion of countries with systems to track and make public allocations for gender equality and womenÕ
@philipashlock
philipashlock / catalog-sample-extended.csv
Created November 24, 2015 23:30
Project Open Data Metadata Schema v1.1 as a CSV with dot delimited class names for fields
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
accessLevel,accrualPeriodicity,bureauCode,conformsTo,contactPoint.fn,contactPoint.hasEmail,describedBy,dataQuality,description,distribution.downloadURL,distribution.format,distribution.mediaType,identifier,issued,keyword,landingPage,language,license,modified,primaryITInvestmentUII,programCode,publisher.name,references,rights,spatial,systemOfRecords,temporal,theme,title,isPartOf
public,R/P1Y,018:10,http://www.agency.gov/widget-taxonomy/,Jane Doe,mailto:jane.doe@agency.gov,http://www.agency.gov/datasets/widgets-dictionary.html,true,This dataset provides national statistics on the production of widgets,https://data.agency.gov/datasets/widgets-statistics/widgets.csv,CSV,text/csv,http://dx.doi.org/10.7927/H4PZ56R2,2011-11-22,"widget,manufacturing,factory",http://agency.gov/widgets/data,en-US,http://creativecommons.org/publicdomain/zero/1.0/,2011-11-19T12:00:00Z,021-006227212,018:001,"Widget Services,Office of Citizen Services and Innovative Technologies,General Services Administration,U.S. Government","http://agen
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront