Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block stuartphilp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
stuartphilp / userscript.js
Last active Feb 27, 2018
Fixed Position Bugzilla Bug Titles
View userscript.js
// ==UserScript==
// @name ScrollingBugTitlez
// @description Pins the bug title header and other useful context so it's always visible when scrolling longer bugs
// @include*
// @author Stuart Philp
// ==/UserScript==
Any copyright is dedicated to the Public Domain.
import simplejson as json
import requests
overview = requests.get('')
overview_json = json.loads(overview.text)
for job in overview_json["jobs"]:
if job["color"] == "red":
which aws
if [ $? = 0 ]; then
echo "AWS CLI Found. Continuing..."
echo "You need to install the AWS CLI binary before running this script, and do an aws configure to set up credentials/regions."
pip install awscli
# pip install pypdf2
# Based on the initial splitter script by David Burns
# You will need to enter your email creds so you can receive the bonus statements
# which you can then review, edit, and forward (sending directly could be dangerous)
stuartphilp / gist:10415968
Created Apr 10, 2014
VAST Sample Creative
View gist:10415968
"thumb": {
"caption": "Family Vacation Photo",
"sourceHeight": 1206,
"href": "/image/v1.0.0/bin/51e0778cd91accb66644e2b0?v=5c072",
"sourceWidth": 1800,
"credits": null
"primaryMedia": {
"content": {
View gist:8712421
correlator = ->
Math.floor (Math.random() * 10000000000000000)
module.exports = new class DFP
request: ({id, size, targets}, callback) =>
counter = counter + 1
data =
# These field names and values have been determined by reverse engineering
# requests made from Google's official GPT library. (The GPT library
# cannot be used directly because it places all ad units in iframes.)
You can’t perform that action at this time.