Skip to content

Instantly share code, notes, and snippets.

View payingattention's full-sized avatar
🏠
(Waiting patiently for4ticket # https://github.com/keybase/client/issues/14640.)

// /∫ ∫∫ ∫prosodyVvVereableContext( (( [[ [( ( payingattention

🏠
(Waiting patiently for4ticket # https://github.com/keybase/client/issues/14640.)
View GitHub Profile
@payingattention
payingattention / ComcastInject.html
Created November 25, 2018 05:28 — forked from ryankearney/ComcastInject.html
This is the code Comcast is injecting into its users web traffic.
<script language="JavaScript" type="text/javascript">
// Comcast Cable Communications, LLC Proprietary. Copyright 2012.
// Intended use is to display browser notifications for critical and time sensitive alerts.
var SYS_URL='/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do';
// var image_url='http://servicealerts.comcast.net:8080/images/mt';
var image_url='http://xfinity.comcast.net/constantguard/BotAssistance/notice/images';
var headertext1='<strong>Comcast Courtesy Notice</strong>';
var textline1='You have reached 90% of your <b>monthly data usage allowance</b>.';
var textline2='Please sign in for more information and to remove this alert.';
var acknowledgebutton='<a href=\"#\" onClick="document.location.href=\''+SYS_URL+'?dispatch=redirect&redirectName=login&paramName=bmUid\'" title="Sign in to acknowledge" style="color: #FFFFFF;"><img alt="Sign in to acknowledge" src="'+image_url+'/mt_signin.png"/></a>';
{"changes":[["field",["field: view","field: field","field: kind"],[["02cdd50c-b328-4970-98a5-4a015f29de98","fc7f3434-8105-4c32-b036-4cf8b5dcb5cf","output"]],[]],["tag",["tag: view","tag: tag"],[["02cdd50c-b328-4970-98a5-4a015f29de98","editor"]],[]],["display name",["display name: id","display name: name"],[["02cdd50c-b328-4970-98a5-4a015f29de98","New table!"],["fc7f3434-8105-4c32-b036-4cf8b5dcb5cf","Field A"]],[]],["view",["view: view","view: kind"],[["02cdd50c-b328-4970-98a5-4a015f29de98","table"]],[]],["display order",["display order: id","display order: priority"],[["fc7f3434-8105-4c32-b036-4cf8b5dcb5cf",-1]],[]]],"commands":[]}
{"changes":[["02cdd50c-b328-4970-98a5-4a015f29de98",["fc7f3434-8105-4c32-b036-4cf8b5dcb5cf"],[[""]],[]]],"commands":[]}
{"changes":[["02cdd50c-b328-4970-98a5-4a015f29de98",["fc7f3434-8105-4c32-b036-4cf8b5dcb5cf"],[[""]],[]]],"commands":[]}
{"changes":[["02cdd50c-b328-4970-98a5-4a015f29de98",["fc7f3434-8105-4c32-b036-4cf8b5dcb5cf"],[[""]],[]]],"commands":[]}
{"changes":[["02cdd50c-b
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}

SEE BIP 70

See https://en.bitcoin.it/wiki/BIP_0070 for the latest version of this document; I'll keep this document so the process of discussion/revision isn't lost.

Bitcoin Payment Messages

This document proposes protocol buffer-based formats for a simple payment protocol between a customer's bitcoin client software and a merchant.

@payingattention
payingattention / _.md
Last active August 29, 2015 14:17 — forked from klange/_.md

Since this is on Hacker News...

  • No, I don't distribute my résumé like this. A friend of mine made a joke about me being the kind of person who would do this, so I did (the link on that page was added later).
  • I apologize for the use of _t in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".
  • They're all while loops because shut up, you're overthinking a joke.

Want to grab a copy of your favorite website, using wget in the command line, and saving it in WARC format? Then this is the gist for you. Read on!

First, copy the following lines into a textfile, and edit them as needed. Then paste them into your command line and hit enter:

export USER_AGENT="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27"
export DOMAIN_NAME_TO_SAVE="www.example.com"
export SPECIFIC_HOSTNAMES_TO_INCLUDE="example1.com,example2.com,images.example2.com"
export FILES_AND_PATHS_TO_EXCLUDE="/path/to/ignore"
export WARC_NAME="example.com-20130810-panicgrab"

The Department of Better Technology is hiring a web developer to help us revolutionize the world of government IT. @cjoh and I started this company after being embedded inside government and seeing first-hand the horrors of the technology that these folks have to use everyday. We worked on a project called RFP-EZ that made it super simple to view and bid on government contracts. It wasn't anything amazing -- just a simple Bootstrap site, but just by making this process easier to understand for web firms who don't specialize in government contracting, we were able to save the federal government an average of 30%.

potus + rfpez

Once our 6 month term was up, we knew that we had to keep working on the issue. We received a generous investment from the John S. and James L. Knight Foundation to bring this procurement experiment down to the local level of government, and

###Invite your readers to leave you a Bitcoin tip on Reddit

Reddit's Bitcoin implementation is ideal for beginners. Here's how to get them to give it a try.

####Structure

require 'digest/md5'
=begin
About:
This script automatically runs on a 2-second loop, searches the current directory for haml & sass files that have been modified since the last iteration and builds them as needed into a file with the same name minus the .haml/sass extension. I wrote it so I could use Haml & Sass to develop Wordpress themes.
How-to:
1) Name your source files with the extension you'd like them to have, then add ".haml" or ".sass" as appropriate...
For example: index.php.haml and styles.css.sass
<?php
/*
Plugin Name: Disable Wptexturize
Description: Removes most calls to this incredible slow function.
Version: 1.0
Author: Thomas Scholz
Author URI: http://toscho.de
License: GPL
*/