Skip to content

Instantly share code, notes, and snippets.

# .gdbinit file for debugging Mozilla
# Don't stop for the SIG32/33/etc signals that Flash produces
handle SIG32 noprint nostop pass
handle SIG33 noprint nostop pass
handle SIGPIPE noprint nostop pass
# Show the concrete types behind nsIFoo
set print object on
@kruppel
kruppel / sbSoundCloud.js
Created October 22, 2010 06:25
SB SoundCloud XPCOM component gist
/**
* \file sbSoundCloud.js
* \brief Service component for SoundCloud.
*/
const Cc = Components.classes;
const CC = Components.Constructor;
const Ci = Components.interfaces;
const Cu = Components.utils;
Cu.import("resource://app/jsmodules/sbProperties.jsm");
@kruppel
kruppel / nodebox_fail
Created March 3, 2011 00:00
nodebox fail
nodebox kurt$ vagrant up[default] Provisioning enabled with chef_solo...
[default] Importing base box 'lucid32'...
[default] Matching MAC address for NAT networking...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 4.0.2
@kruppel
kruppel / station.diff
Created May 15, 2011 20:42
Decrease results param value
diff --git a/lib/station.js b/lib/station.js
index 775aa98..fea1648 100644
--- a/lib/station.js
+++ b/lib/station.js
@@ -40,7 +40,7 @@ Station.prototype = {
this._ensureCatalog({}, function (err) {
if (err) return callback(err);
- self._getPlaylist({ results: 100 }, function (err, rdioIdArray) {
+ self._getPlaylist({ results: 50 }, function (err, rdioIdArray) {
@kruppel
kruppel / chattradio.patch
Created May 18, 2011 16:24
chattradio diff
diff --git a/app.js b/app.js
index cd2fd3c..89fa861 100644
--- a/app.js
+++ b/app.js
@@ -1,8 +1,12 @@
-
var express = require('express'),
jade = require('jade'),
app = module.exports = express.createServer();
@kruppel
kruppel / outdatedDiffs.js
Created September 19, 2012 16:27
Display all hidden diffs in a GitHub pull request
var outdatedDiffs = document.getElementsByClassName('outdated-diff-comment-container');
Array.prototype.forEach.call(outdatedDiffs, function (diff) {
diff.classList.add('open');
});
#!/usr/bin/env node
var limit = process.argv[2]
, palindromes = [];
if (!limit) {
console.error('Provide a limit!');
process.exit(1);
}
@kruppel
kruppel / discount_bubble_check.js
Created November 8, 2013 19:48
Discount Bubble Check
var el = document.activeElement;
function bubbleCheck(element) {
var checking = element;
checking.addEventListener('click', function(e) { console.log(checking); }, false);
}
while (el = el.parentNode) { bubbleCheck(el); }
// https://github.com/zendesk/ember.js
// version 0.9.9-zendesk
// SHA b68e5cbec4d95fe2004f5a6dc176c1eadd06e5a1
(function() {
/*global __fail__*/
if ('undefined' === typeof Ember) {
Ember = {};
@kruppel
kruppel / things.md
Last active August 29, 2015 14:08
THINGS

Postman

Sketch

SimpleCov