Skip to content

Instantly share code, notes, and snippets.

View adammw's full-sized avatar
👨‍💻
Hacking on Kubernetes Platform @ Zendesk

Adam Malcontenti-Wilson adammw

👨‍💻
Hacking on Kubernetes Platform @ Zendesk
View GitHub Profile
AllCops:
# Include gemspec and Rakefile
Includes:
- '**/*.gemspec'
- '**/Rakefile'
Excludes:
- 'vendor/**'
ClassLength:
Enabled: false
This file has been truncated, but you can view the full file.
// header CWS (deflate compressed) version 14
// decompressed swf 843004 -> 2810177
// size [Rect 0 0 10000 7500]
// frame rate 24
// frame count 1
// FileAttributes 4b 0%
// Metadata 459b 0%
// <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1">
<dc:format>application/x-shockwave-flash</dc:format>
@adammw
adammw / hello.c
Last active August 29, 2015 13:56
#include <stdio.h>
int main()
{
printf("Hello World!\n");
}
Feb 22 08:20:43 link kernel: [1074899.816012] [Hardware Error]: MC1 Error: Copyback Parity/Victim error.
Feb 22 08:20:43 link kernel: [1074899.822188] [Hardware Error]: Error Status: Corrected error, no action required.
Feb 22 08:20:43 link kernel: [1074899.828352] [Hardware Error]: CPU:0 (f:2f:0) MC1_STATUS[-|CE|-|-|-]: 0x9000000000000171
Feb 22 08:20:43 link kernel: [1074899.834532] [Hardware Error]: cache level: L1, tx: INSN, mem-tx: EV
Feb 22 09:10:43 link kernel: [1077899.816013] [Hardware Error]: MC1 Error: Copyback Parity/Victim error.
Feb 22 09:10:43 link kernel: [1077899.822187] [Hardware Error]: Error Status: Corrected error, no action required.
Feb 22 09:10:43 link kernel: [1077899.828384] [Hardware Error]: CPU:0 (f:2f:0) MC1_STATUS[-|CE|-|-|-]: 0x9000000000000171
Feb 22 09:10:43 link kernel: [1077899.834572] [Hardware Error]: cache level: L1, tx: INSN, mem-tx: EV
Feb 22 09:30:43 link kernel: [1079099.816009] [Hardware Error]: MC1 Error: Copyback Parity/Victim error.
Feb 22 09:30:43 link kernel: [1
require 'RMagick'
require 'capybara'
require 'launchy'
module Capybara::Recording
def start_recording
system "rm -f tmp/*"
end
def save_recording
{
"ad-hermes-proxy": [{
name: "Rule",
fields: [{
id: 1,
type: "string",
name: "type",
enumMap: null
}, {
id: 2,
@adammw
adammw / gist:11135063
Created April 21, 2014 07:30
PBS Video Extractor
// PBS Video Extractor
(function () {
var getVideoUrl = function (id, fn) {
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://video.pbs.org/video/' + id + '.smil');
xhr.responseType = 'document';
xhr.onload = function () {
var videos = Array.prototype.slice.call(xhr.response.querySelectorAll('video'), 0);
videos.sort(function (a, b) {
// youtube sizing logic
var a = m.getElementById("player"),
b = m.getElementById("watch7-container");
if (b && a) {
var c = m.hasClass(b, "watch-wide"),
b = m.lo(); // hash of width and height
if (c) {
var c = !!m.A("ENABLE_AUTO_LARGE"),
d = m.hasClass(window.document.body, "site-center-aligned") && (m.hasClass(window.document.body, "watch-early-bigbear") || m.hasClass(window.document.body, "appbar-flexwatch") || m.hasClass(window.document.body, "appbar-flexwatch-mini")),
[{"tile_label":"Featured","tile_swipe_type":null,"tile_swipe_data":"","name":"Secrets and Lies - S1 Ep. 6","subtitle":"","short_description":"Tom Murnane's killer is finally exposed in this heart-stopping series finale.","tv_show":"Secrets and Lies","tv_season":"1","tv_episode":"SAL/006","tv_week":"","videoStillURL":"https://networkten-a.akamaihd.net/2199827728001/201404/112/2199827728001_3442282822001_vs-5342e92fe4b0b440f6f69400-672293880001.jpg?pubId=2199827728001","brightcoveid":3442116293001,"video_type":"Show","end_date":"2014-05-09 11:59 PM"},{"tile_label":"On Now","tile_swipe_type":null,"tile_swipe_data":"","name":"Melbourne Eyewitness News Late - Live streaming","subtitle":"","short_description":"Melbourne Eyewitness News Late - Live streaming","tv_show":"Late News","tv_season":"","tv_episode":"","tv_week":"","videoStillURL":"https://networkten-a.akamaihd.net/2199827728001/201401/2841/2199827728001_3129728942001_2199827728001-2800490135001-News-Video-WatchLive-900x506.jpg?pubId=2199827728001","brightc
AP.define("jira", ["_dollar", "_rpc"], function (b, g) {
function f() {
return decodeURI(RegExp("postFunction\\.id=([0-9a-z\\-]+)").exec(document.location)[1])
}
var e, d;
var c = {
getUuid: f,
onSaveValidation: function (h) {
d = h
},