Skip to content

Instantly share code, notes, and snippets.

View adelevie's full-sized avatar

Alan deLevie adelevie

View GitHub Profile
#!/bin/bash
scan_urls () {
urls=(https://18f.gsa.gov/2015/10/26/micro-purchase-criteria-announcement/ https://18f.gsa.gov/2015/10/29/welcome-to-betafec/ https://18f.gsa.gov/2015/10/22/preventing-technical-debt/)
anon_function_SLURSOMNVUJABYAMWOFU () {
local x=$1; shift
echo Getting a11y error messages for url: dollarx
pa11y -r json $x | jq .[] | jq .message
}
➜ ~ cf login
API endpoint> cloud.gov
FAILED
Server error, status code: 404, error code: 0, message:
➜ ~ cf login
API endpoint> cloud.18f.gov
FAILED
Server error, status code: 404, error code: 0, message:
➜ gsa-forms pdftk SF1424-15.pdf dump_data_fields | pdfq | jq '.[0]'
{
"FieldType": "Text",
"FieldName": "form1[0].#subform[0].item20[0]",
"FieldNameAlt": "20. ITEM DESCRIPTION",
"FieldFlags": "8388608",
"FieldJustification": "Left"
}
➜ gsa-forms pdftk SF1424-15.pdf dump_data_fields | pdfq | jq '.[1]'
{
---
FieldType: Text
FieldName: form1[0].#subform[0].BIDS_NUMBER[0]
FieldNameAlt: INVITATION FOR BIDS NUMBER
FieldFlags: 8388608
FieldJustification: Left
---
FieldType: Text
FieldName: form1[0].#subform[0].ZIP_CODE[0]
FieldNameAlt: ADDRESS YOUR BID TO: ZIP CODE
package main
import (
"fmt"
"sort"
"github.com/docopt/docopt-go"
)
func usage() string {
root@dokku:/home/dokku/node-js-other# ls
branches config description ENV hooks IP.web.1 objects refs URLS
cache CONTAINER.web.1 DOKKU_SCALE HEAD info nginx.conf PORT.web.1 URL VHOST
root@dokku:/home/dokku/node-js-other# cat nginx.conf
server {
listen [::]:80;
listen 80;
server_name node-js-other.adelevie.com;
access_log /var/log/nginx/node-js-other-access.log;
error_log /var/log/nginx/node-js-other-error.log;
# usage:
# ./dokku-sslmate DOMAIN
mkdir -p /home/dokku/tls
cp /etc/sslmate/$1.crt /home/dokku/tls/server.crt
cp /etc/sslmate/$1.key /home/dokku/tls/server.key
var functionMaker = // ?????
var addTwo = functionMaker(2);
var addThree = functionMaker(3);
addTwo(10); //=> 12
addThree(100); //=> 103
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
Domain,type,typeCode,code,message,context,selector
gsa.gov,notice,3,WCAG2AA.Principle2.Guideline2_4.2_4_2.H25.2,Check that the title element describes the document.,<title>GSA Home</title>,html > head > title
gsa.gov,error,1,"WCAG2AA.Principle2.Guideline2_4.2_4_1.G1,G123,G124.NoSuchID","This link points to a named anchor ""skipContent"" within the document, but no anchor exists with that name.","<a href=""#skipContent"" class=""skip-content"">Skip to main content</a>",#skip-to-content-destination > a
gsa.gov,notice,3,"WCAG2AA.Principle2.Guideline2_4.2_4_4.H77,H78,H79,H80,H81",Check that the link text combined with programmatically determined link context identifies the purpose of the link.,"<a href=""#skipContent"" class=""skip-content"">Skip to main content</a>",#skip-to-content-destination > a
gsa.gov,notice,3,"WCAG2AA.Principle2.Guideline2_4.2_4_4.H77,H78,H79,H80,H81",Check that the link text combined with programmatically determined link context identifies the purpose of the link.,"<a href=""/portal/categ

Dear Daily Digest Subscriber,

Tomorrow, the Federal Communications Commission will commence an upgrade of its legacy IT systems starting at 6 p.m. EDT. During this time, interactive public-facing web applications hosted at the FCC – including EDOCS, ECFS, and ULS – will be unavailable. As a result, production of the Daily Digest will be paused from Thursday, September 3 or Friday, September 4.

Distribution of the Daily Digest will resume when the systems are available again. We will work to have these web applications upgraded and available again by the morning of Tuesday, September 8.

The FCC does not plan to release any official documents during the IT upgrades. That said, the Commission will have in place a mechanism to allow for a hard copy release of an item should there be a pressing need. Any such releases that would ordinarily appear in the Daily Digest will be included in the Daily Digest when it is next issued.

If you have questions, please read the Public Notice, which includes contact in