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
| # Basically the nginx configuration I use at konklone.com. | |
| # I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com | |
| # | |
| # To provide feedback, please tweet at @konklone or email eric@konklone.com. | |
| # Comments on gists don't notify the author. | |
| # | |
| # Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites. | |
| # Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration. | |
| server { |
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
| <script> | |
| var host = "YOURDOMAIN.github.io"; | |
| if ((host == window.location.host) && (window.location.protocol != "https:")) | |
| window.location.protocol = "https"; | |
| </script> |
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
| FROM ubuntu | |
| MAINTAINER Eric Mill "eric@konklone.com" | |
| # turn on universe packages | |
| RUN echo "deb http://archive.ubuntu.com/ubuntu raring main universe" > /etc/apt/sources.list | |
| RUN apt-get update | |
| # basics | |
| RUN apt-get install -y nginx openssh-server git-core openssh-client curl | |
| RUN apt-get install -y nano |
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
| #!/usr/bin/env ruby | |
| # Script by Eric Mill to detect government domains in the Chrome HSTS Preload list. | |
| # | |
| # The Chrome HSTS Preload list is a hardcoded set of domains for which the browser | |
| # will *only* ever access the site using HTTPS. If an http:// link to that site is | |
| # encountered, the browser will just rewrite the URL to https:// before following | |
| # it. | |
| # | |
| # This list is also incorporated into Firefox and Safari, making it a nice list to |
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
| # | |
| all: test | |
| openssl-fips-2.0.8.tar.gz: | |
| wget http://www.openssl.org/source/openssl-fips-2.0.8.tar.gz | |
| openssl-1.0.1i.tar.gz: | |
| wget http://www.openssl.org/source/openssl-1.0.1i.tar.gz |
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
| # house-icpsr.csv and senate-icpsr.csv are made by converting the XLS files found here to CSV: | |
| # http://web.mit.edu/17.251/www/data_page.html#2 | |
| # Specifically, these files that list information and IDs for members from the 103rd to 112th Congress: | |
| # http://web.mit.edu/cstewart/www/data/house_members_103-112-1.xls | |
| # http://web.mit.edu/cstewart/www/data/senators_103-112-1.xls | |
| # This script looks through the two original CSVs, caches the ICPSR ID of every member from the 110th Congress onward, | |
| # then goes through every legislator in the Sunlight Labs Congress API and tries to match them up by a combination of | |
| # last name, state, and party. |
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
| #!/usr/bin/env ruby | |
| ### | |
| # Small script to rename files as exported from L-Soft's LISTSERV. | |
| # | |
| # Files are named with the month in the extension, e.g. SM-COP.LOG1410 | |
| # This renames them to be of the form SM-COP-2014-10.log | |
| # | |
| # Written by Eric Mill, eric.mill@gsa.gov. Public domain. | |
| ### |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
| arpc.afrc.af.mil | |
| www.uscg.mil | |
| erecruit.nga.mil | |
| arpcmt1.afrc.af.mil | |
| arpcmt2.afrc.af.mil | |
| arpcmt3.afrc.af.mil | |
| mypay.dfas.mil | |
| mypayeaw.dfas.mil | |
| www.fdm.army.mil | |
| 52arty-db-002v.afrc.af.mil |
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
| // Subtracts two dates, formatted as e.g. 2025-04-10T12:46:10 | |
| // Author: Eric Mill, eric.mill@gsa.gov | |
| // columns with notBefore and notAfter dates | |
| var startField = "D"; | |
| var endField = "E"; | |
| var resultField = "F"; | |
| // first sheet | |
| var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0]; |
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
| #!/usr/bin/env ruby | |
| # Forked from https://gist.github.com/pzb/84f867ed5a330093cfbf | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
NewerOlder