Skip to content

Instantly share code, notes, and snippets.

@chenba
chenba / batch-delete-sequence.mermaid
Last active October 30, 2024 18:30
FxA Inactive Accounts Deletion
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chenba
chenba / git-wipe-remote-merged-branches
Created October 17, 2016 05:08
Locate and Destroy Merged Git Branches
#!/bin/sh
for i in "$@"
do
case $i in
--remote=*)
remote_name="${i#*=}"
shift
;;
--trunks=*)
@chenba
chenba / ugly_waffles
Last active January 1, 2016 18:59
Uglifying JS because it's possible
function tastywaffles(source, data) {
var call_me_maybe = function(things) {
$.each(things, function(_, thingy) { consume(source, thingy); });
};
data.waffle.switches && call_me_maybe(data.waffle.switches);
data.waffle.flags && call_me_maybe(data.waffle.flags);
data.waffle.samples && call_me_maybe(data.waffle.samples);
}