Skip to content

Instantly share code, notes, and snippets.

View luckyrat's full-sized avatar

Chris Tomlinson luckyrat

View GitHub Profile
@luckyrat
luckyrat / setup-rancher.sh
Last active September 19, 2017 22:45 — forked from ronalddddd/setup-rancher.sh
Launch a Rancher server with https access
#!/bin/bash
# - You need to set RANCHER_DOMAIN to a domain that reaches this host via port 80 and 443
# - Run this script with sudo/root,
# e.g. `source setup-rancher.sh`
# - You can then access the Rancher dashboard via https://rancher.example.com
# - To add docker hosts to your Rancher environments,
# follow the rest of http://docs.rancher.com/rancher/latest/en/quick-start-guide/
# Configure these
RANCHER_DOMAIN="$RANCHER_DOMAIN"
@luckyrat
luckyrat / gist:7803415810fb4c09c975
Created May 22, 2015 11:08
importGlobalProperties test JSM
// JSM for working out which globalproperties can be imported in a specific Firefox version.
// https://developer.mozilla.org/en-US/docs/Components.utils.importGlobalProperties
// I'm not certain availability always equates to functionality but it probably does
// and in any case it's a way to narrow down the more involved test for functionality of each property
// Run from browser toolbox scratchpad like:
// Components.utils.import("resource://test-importGlobalProperties-addon/test.jsm");
Components.utils.import("resource://gre/modules/devtools/Console.jsm");
@luckyrat
luckyrat / scratchpad-UI-reveal.js
Last active August 29, 2015 13:57
Scratchpad code to reveal KeeFox 1.4 UI panel
let panelId = 'keefox-panelview';
let widgetId = 'keefox-button';
// Get the widget wrapper (toolbar button)
let wrapper;
wrapper = CustomizableUI.getWidget(widgetId);
// find the window it is attached to
var thewind = wrapper.instances[0].node.ownerGlobal;
The official privacy policy is now available on AMO: https://addons.mozilla.org/en-US/firefox/addon/keefox/privacy/