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
// ==UserScript== | |
// @name Mike's timesheet improvements | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Add plus time buttons to the new GetMyTime | |
// @author Michael Maurizi | |
// @match https://app.getmytime.com/timesheet.aspx | |
// @grant none | |
// ==/UserScript== |
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
def bulk_upsert(model, fields, values, by): | |
""" | |
Return the tuple of (inserted, updated) ids | |
""" | |
result = (None, None) | |
if values: | |
stmt = """ | |
WITH data_set AS ( | |
INSERT INTO %s (%s) |
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
// ==UserScript== | |
// @name Turn Github Branch names into links | |
// @namespace maurizi.org | |
// @include https://github.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var i; | |
var elems = document.querySelectorAll('.commit-ref.current-branch'); |
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
// ==UserScript== | |
// @name Swipe to Archive for Inbox | |
// @namespace maurizi.org | |
// @description Swipe to Archive for Google's Inbox | |
// @include https://inbox.google.com/ | |
// @include https://inbox.google.com/u/0/ | |
// @include https://inbox.google.com/u/1/ | |
// @include https://inbox.google.com/u/2/ | |
// @include https://inbox.google.com/u/3/ | |
// @include https://inbox.google.com/u/4/ |
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
@echo off | |
cygwin-shim.bat /bin/ansible-galaxy %* |