Skip to content

Instantly share code, notes, and snippets.

View zhouqt's full-sized avatar

Tom Zhou zhouqt

  • Canonical, Ltd.
  • Beijing, China
  • 15:23 (UTC +08:00)
View GitHub Profile
#!/usr/bin/env python3
"""
This is a tool for recovering lost machine units in current model
Usage:
{0} model-name dest-dir
"""
# changes summary:
# added logic to prevent overwrite /var/lib/juju to avoid removing non-machine units
// ==UserScript==
// @name SFComment
// @namespace http://tampermonkey.net/
// @version 0.11
// @description Workaround negative timecard caused by time drift
// @description Some SF comment window hacks
// @author roylez
// @include https://canonical*.visual.force.com/servlet/servlet.Integration*
// @license MIT
// @require https://code.jquery.com/jquery-2.2.4.min.js
// ==UserScript==
// @name SFreadability-modified
// @namespace http://tampermonkey.net/
// @version 0.751
// @history 0.751 Merge from roylez's version
// @history 0.75 adjust comments section max-width
// @history 0.74 Hightlight last update date fields in case listings
// @history 0.73 Color code last updated time in case listing
// @history 0.721 Add functions to handle console page
// @history 0.72 Add call history tab 2020-03-06 (zhouqt)