Skip to content

Instantly share code, notes, and snippets.

Avatar

Quinn Comendant quinncomendant

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am quinncomendant on github.
  • I am qc (https://keybase.io/qc) on keybase.
  • I have a public key whose fingerprint is 15B9 1090 A3FE 9875 FA4A DCF3 753A D975 0BF1 3B86

To claim this, I am signing this object:

@quinncomendant
quinncomendant / denominator cli wrapper
Created Aug 8, 2015
This is a CLI wrapper for Netflix/denominator that simplifies many of its common uses. Instead of typing `denominator -q -n yourconfigname record -z example.com add -n example.com -t A -d 1.1.1.1` now you can just run `dns example.com add A 1.1.1.1` (assuming you install this script as `dns`). Run with `-h` for documentation.
View denominator cli wrapper
#!/usr/bin/env bash
#
# Quinn Comendant <quinn@strangecode.com>
# 06 Aug 2015 17:51:37
#
# Config
#
# Location of denominator binary.
@quinncomendant
quinncomendant / Factuality service.md
Last active May 26, 2016
A service that crowdsources fact checking of web pages. This text is embryonic (text copied from an email to a friend), but it's a powerful idea and needs to start somewhere. I would appreciate comments: help identify problems, offer suggestions towards its design, and how to solve adoption. Email me at quinn@strangecode.com
View Factuality service.md

The idea is to create a means for web users to rate the factuality of content on a web page. A browser extension, which allows individual phrases of text to be selected, then rated for accuracy and commented upon. The browser extension then displays a score of the page’s factuality, based on the crowdsourced ratings. Clicking the extension reveals more detail, including comments from fact-checkers and selected passages from the text with notes and external references. With the plugin running, it could then automatically add a light green or red underline to text on the page which has been rated, indicating exactly which phrases have been reviewed. Hovering the cursor over these phrases brings up a popup of notes for that statement.

But here's the exciting part: each phrase of text that is selected, rated, and commented upon (hopefully with cited references to why the phrases are factual or bullshit) will be sent to a central server with the rating metadata. With a lot of usage, a huge corpus of text phrases

View Design principles of computer systems.md

Design principles of computer systems

Design principles applicable to many areas of computer systems

  • Adopt sweeping simplifications
    So you can see what you are doing.
  • Avoid excessive generality
    If it is good for everything, it is good for nothing.
  • Avoid rarely used components
    Deterioration and corruption accumulate unnoticed—until the next use.
@quinncomendant
quinncomendant / denominator-zone-list.sh
Last active Sep 27, 2016
Wrapper script for denominator to prevent overrunning API limits. It works by watching the output file, and every 3 zones that are saved, it will pause for 4 seconds (so at most 45 zones/minute are retrieved).
View denominator-zone-list.sh
#!/usr/bin/env bash
#
# Quinn Comendant <quinn@strangecode.com>
# 23 Sep 2016 19:31:05
#
# Functions
#
@quinncomendant
quinncomendant / podcasts.md
Last active Oct 21, 2016
Podcast subscriptions as of July 2016. Computer-readable OPML version at bottom can be imported into a podcatcher like iTunes.
View podcasts.md
View selection.yml
version: '2'
volumes:
dbdata:
driver: local
services:
db:
image: mysql/mysql-server:5.7
ports:
- "3306:3306"
volumes:
@quinncomendant
quinncomendant / spamdyke-sender-conf
Created May 6, 2017
Create a custom sender config file for spamdyke using a template
View spamdyke-sender-conf
#!/usr/bin/env bash
#
# Quinn Comendant <quinn@strangecode.com>
# 06 May 2017 14:45:53
#
# Functions
#
@quinncomendant
quinncomendant / Analytics.inc.php
Last active Sep 7, 2017
Class for server-side submission of data to Google Analytics
View Analytics.inc.php
<?php
/*
* Analytics.inc.php
*
* Class for server-side submission of data to Google Analytics.
* TODO: Would be better to save the request to a queue to process submissions in the background. Currently, requests are blocked until the POST to GA completes or timeout is reached.
*
* @author Quinn Comendant <quinn@strangecode.com>
* @version 1.0
* @since 24 Aug 2014 15:35:43
@quinncomendant
quinncomendant / install-dnscrypt-proxy.md
Last active Sep 21, 2017
Instructions to install dnscrypt-proxy via Homebrew on macOS
View install-dnscrypt-proxy.md

Prevent DNS leaks on macOS by using dnscrypt-proxy. dnscrypt-proxy is available for installation via Homebrew, and comes configured to use OpenDNS servers. After installing, dnscrypt-proxy will always run in the background and encrypt all your DNS queries:

  1. Open Terminal.app (press Command+Space and type terminal and hit return).
  2. Run in Terminal app: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" and press enter/return key. Wait for the command to finish.
  3. Run in Terminal app: brew install dnscrypt-proxy and press enter/return key. Wait for the command to finish.
  4. Run a DNS leak test: click the Standard test and ensure all DNS servers are owned by opendns.com.