Skip to content

Instantly share code, notes, and snippets.

View adborden's full-sized avatar

Aaron D Borden adborden

View GitHub Profile
@brodygov
brodygov / api-authentication.md
Last active October 8, 2018 17:05
Thoughts on API authentication strategies

Thoughts on API Authentication Strategies

There are a number of different strategies for enabling API authentication for system-to-system authentication between two parties. All of them have some advantages and disadvantages.

Simple API key

The simplest approach is typically to pass a secret API key as a header or using HTTP basic auth. The client provides a secret value in the Authorization or Bearer header. The server matches the key against a stored value for that account. This relies on the security of HTTPS / TLS to provide confidentiality and integrity. This approach excels for websites with a lot of end-users who need to be able to manage their own keys through a web interface or API. It's so simple that clients don't need any custom code.

Pros:

  • Very simple to implement for both clients and servers
@hollyallen
hollyallen / Offboarding_from_18F.md
Last active September 14, 2020 15:16
Holly's list of 18F offboarding tasks
  • Official handbook page
  • Save the usernames and passwords for systems you may need when you are no longer an employee, such as
  • Log into Employee Express
    • Write down your login information for employee express. You can't get this back after you leave GSA.
  • Switch your W2s to Mail instead of Electronic
@afeld
afeld / README.md
Last active August 27, 2019 05:04
archive inactive GitHub repositories in an organization
@toolness
toolness / calc-react-migration.md
Last active September 10, 2018 13:11
Converting CALC from JQuery to React + Redux

Converting CALC from JQuery to React/Redux

At the end of 2016, the [CALC][] team experimented with converting the single-page app on its front page, referred to as the [Data Explorer][], from JQuery to React + Redux.

Rationale

We inherited the [1350-line explorer.js][explorer-1] from a previous team. This code was written under different project and time constraints,

@adborden
adborden / label-setup.sh
Last active March 6, 2018 15:26
Quick setup for labels
#!/bin/bash
# gem install ghi (https://github.com/stephencelis/ghi)
set -o errexit
set -o pipefail
skills=(angular build-infrastructure campaign-finance copy design html-css jekyll js ruby sysadmin)
skill_color="#fef2c0"
features=(candidate committee contributions data historic-election multi-city page referendum search usability)
@vz3
vz3 / languageaccess.md
Last active August 2, 2023 16:43
Designing for language access
@kalxas
kalxas / README.txt
Last active September 14, 2021 10:19
Data.gov CSW HowTo v2.0
Based on copy of https://gist.github.com/kalxas/5ab6237b4163b0fdc930 on 20 June 2014 12:27 UTC
@bencord0
bencord0 / proc-xen.mount
Last active November 7, 2019 03:58
Xen systemd unit files
[Unit]
Description=Mount /proc/xen files
ConditionPathExists=/proc/xen
RefuseManualStop=true
[Mount]
What=xenfs
Where=/proc/xen
Type=xenfs
@kalxas
kalxas / data-gov-csw-howto.rst
Last active October 25, 2022 14:23
Data.gov CSW HowTo