This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env gjs | |
const GLib = imports.gi.GLib; | |
/** | |
* https://developer.mozilla.org/docs/Web/API/WindowOrWorkerGlobalScope/setInterval | |
* https://developer.mozilla.org/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval | |
*/ | |
window.setInterval = function(func, delay, ...args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// I just found out that we have a bunch of NSFW emoji in our bulk-imported set of >4000 emoji. | |
// Rather than weed them out, I want to start with a blank slate. This code does that. | |
// | |
// Navigate to your "Custom Emoji" page, the one with all the delete buttons. | |
// Delete one of them and acknowledge that it's going away forever. | |
// Then open the JavaScript console and paste this in. | |
// | |
// At some point your JavaScript console will start spewing errors. | |
// Reload the Emoji page, delete one emoji by hand again, and paste this in again to resume. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse,collections,json,shlex,urllib,re | |
from datetime import datetime | |
from datetime import timedelta | |
from dateutil.parser import parse | |
from termcolor import colored | |
# Command line arguments | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--dry-run", dest="dryrun", action="store_const", const=True, default=False, help="Do not delete SonarQube projects.") |