Skip to content

Instantly share code, notes, and snippets.

View gregglind's full-sized avatar

Gregg Lind gregglind

View GitHub Profile
@gregglind
gregglind / RunBetter.md
Last active February 17, 2016 14:52
A Self Checklist for novice runners, and those are looking for more ways to get better.

The Run Better Self Check Routine

Everything stopping you from running faster, harder, stronger:

Running is a very complex activity. You may or may not have the potential to be elite. You always have the potential to improve. This checklist is meant to help you find areas to work on, and maintain good practices. It's a big list! The opportunity is that there is always something to work on, even on your blackest days.

Claim 1: Run Smarter >> Run Harder.

Claim 2: Fast improvement comes from fixing your weakest areas.

@gregglind
gregglind / HB-monitoring.md
Created December 16, 2015 19:36
Queries for On-going Heartbeat Monitoring

version: 1

Has Recent Data / Lag

# anything in the last 24 hours
# This should freak out if it's 0.
# CATCHES:  complete system failure

SELECT count(received_ts)
@gregglind
gregglind / firstWeekSpark.md
Created November 5, 2015 17:34
Some notes from the first week of spark use.

Week One Experiences with Unified Telemetry Spark Stuff

Author: Gregg Lind

Analysis 1: Flash on Day 0 (Point in Time)

Approach: get_pings for a day.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
^C46934 glind ~/gits/fjord [git:master_]$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'trusty64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'trusty64' (v0) for provider: virtualbox
default: Downloading: https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
==> default: Successfully added box 'trusty64' (v0) for 'virtualbox'!
==> default: Importing base box 'trusty64'...
var URL = "https://geo.mozilla.org/country.json";
var URL = "http://people.mozilla.org/~glind/";
var myHeaders = new Headers();
var myInit = { method: 'GET',
headers: myHeaders,
mode: 'cors',
cache: 'default' };
var myRequest = new Request(URL,myInit);
@gregglind
gregglind / InitFromBundle.sh
Last active August 29, 2015 14:21
Learn To Hack Firefox Notes
set -x nounset
# init from bundle
# https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Source_Code/Mercurial/Bundles
cat << END
0. Warnings:
- will need a few GB of space. Repo is big.
0:00.54 /usr/bin/make -f client.mk -s
0:03.91 Adding client.mk options from :
0:03.91 MOZ_OBJDIR=/Users/glind/hgs/mozilla-central/src/obj-x86_64-apple-darwin11.4.2
0:03.91 OBJDIR=/Users/glind/hgs/mozilla-central/src/obj-x86_64-apple-darwin11.4.2
0:04.76 cd /Users/glind/hgs/mozilla-central/src/obj-x86_64-apple-darwin11.4.2
0:04.76 /Users/glind/hgs/mozilla-central/src/configure
0:05.77 creating cache ./config.cache
0:05.91 checking host system type... x86_64-apple-darwin11.4.2
0:05.96 checking target system type... x86_64-apple-darwin11.4.2
0:06.01 checking build system type... x86_64-apple-darwin11.4.2
@gregglind
gregglind / nbbars-fragement-demos.js
Created April 28, 2015 16:32
Gijs demonstration of how bars aren't doing anything interesting with fragments
//
var notificationbox = function (w, which){ // w is a chromeWindow
//w = w || getMostRecentBrowserWindow();
switch (which) {
case "bottom-global":
//w = w || getMostRecentBrowserWindow();
let nb = w.gDataNotificationInfoBar._notificationBox;
//console.log(nb);
return nb;
@gregglind
gregglind / index.js
Created March 30, 2015 19:14
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var p = document.createElement("pre");
document.body.appendChild(p);
p.textContent="LOG";
var log = function () {
p.textContent += "\n" + Array.prototype.slice.call(arguments).join(" ")
}