Skip to content

Instantly share code, notes, and snippets.

@kruppel
kruppel / README.md
Last active June 10, 2018 18:43
Managing wildcard SSL certificates

Managing wildcard SSL certificates

Create a certificate

Start the verification process...

⫸  brew install certbot
⫸  sudo certbot certonly --manual -d '*.example.com' \
 --agree-tos --manual-public-ip-logging-ok --preferred-challenges dns-01 \

Keybase proof

I hereby claim:

  • I am kruppel on github.
  • I am kruppel (https://keybase.io/kruppel) on keybase.
  • I have a public key whose fingerprint is 4EB7 C455 62A4 73EC C9CD D68C 712B 4D70 BE00 AB6E

To claim this, I am signing this object:

@kruppel
kruppel / globals.js
Created April 16, 2015 21:07
Globals?
(function() {
var isNative = function(obj) { return obj.toString().indexOf('[native code]') !== -1; };
var nonNative = Object.keys(window).filter(function(k) {
return !isNative(k);
}).sort();
console.log(nonNative);
}());
@kruppel
kruppel / things.md
Last active August 29, 2015 14:08
THINGS

Postman

Sketch

SimpleCov

// https://github.com/zendesk/ember.js
// version 0.9.9-zendesk
// SHA b68e5cbec4d95fe2004f5a6dc176c1eadd06e5a1
(function() {
/*global __fail__*/
if ('undefined' === typeof Ember) {
Ember = {};
@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); }
#!/usr/bin/env node
var limit = process.argv[2]
, palindromes = [];
if (!limit) {
console.error('Provide a limit!');
process.exit(1);
}
@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');
});
@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();