This file contains hidden or 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 python3 | |
import json | |
from pathlib import Path | |
import sys | |
REPO_PATH = Path(__file__).parent.parent | |
sys.path.insert(0, str(REPO_PATH)) | |
from keyboards import get_keyboards, Keyboard |
This file contains hidden or 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 node | |
// Usage: vpsql [<environment>] [-- [<psql args>]] | |
// | |
// This script looks up the appropriate PostgreSQL database information in your | |
// local Vagrant development environment and opens a psql session via the | |
// vagrant ssh command. Without specifying the name of a database (as per your | |
// knexfile) it will default to "development" or "dev" (whichever exists). In | |
// addition to that you can pass arbitrary arguments through to the psql command | |
// by including them after "--". |
This file contains hidden or 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
// ==UserScript== | |
// @name JIRA Markdown Converter | |
// @namespace https://nickcoutsos.github.io/ | |
// @version 0.1 | |
// @description Add context menu action to convert text in a field to/from Github Flavored Markdown | |
// @author Nick Coutsos | |
// @match https://*.atlassian.net/* | |
// @require https://raw.githubusercontent.com/FokkeZB/J2M/master/src/J2M.js | |
// ==/UserScript== |
This file contains hidden or 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
""" | |
mdns_util | |
Provides a class to wrap pybonjour functionality and references to work | |
with Tornado's IOLoop for event handling. | |
Sample usage: | |
>>> from mdns_util import MDNS | |
>>> from tornado.ioloop import IOLoop | |
... |
This file contains hidden or 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
import select | |
import sys | |
from pybonjour import (kDNSServiceErr_NoError, | |
kDNSServiceFlagsAdd, | |
DNSServiceResolve, | |
DNSServiceBrowse, | |
DNSServiceProcessResult) | |
regtype = sys.argv[1] | |
timeout = 5 |
This file contains hidden or 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
javascript:(function(){findSelectionDocument=function(w){if(w.document.getSelection().toString().length>0){return w.document;}for(var i=0;i<w.frames.length;i++){var doc=findSelectionDocument(w.frames[i]);if(doc){return doc;}}return null;};doc=findSelectionDocument(window)||document;timestamp=doc.getSelection().toString().trim();c=doc.getElementById("_canvas");if(c)return;c=doc.createElement("div");c.id="_canvas";c.setAttribute("style","position:fixed;z-index:100;background-color:rgba(25,25,25,.90);top:0px;left:0px;height:100%;width:100%;text-align:center;font-family:monospace, sans-serif;font-size:12px;");c.onclick=function(){this.parentNode.removeChild(this);};w=doc.createElement("div");w.setAttribute("style","background-color:white;padding:20px;margin:100px auto 0;display:inline-block;border-radius:10px;text-align:left;box-shadow:5px 8px 24px -10px black;");w.onclick=function(){event.stopPropagation();};t=doc.createElement("table");t.setAttribute("style","border-collapse:separate;border-spacing:20px 4px;"); |