Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| // ==UserScript== | |
| // @name Jira 5 - no stalker | |
| // @namespace http://djce.org.uk/greasemonkey | |
| // @include https://jira.dev.bbc.co.uk/browse/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| try { |
| require 'capybara/firebug' | |
| # Disable Webmock if needed. | |
| WebMock.disable_net_connect!(allow_localhost: true) | |
| # Same thing for VCR if it has been imported somewhere. | |
| VCR.configure do |c| | |
| c.ignore_localhost = true | |
| end | |
| ENV['NO_PROXY'] = ENV['no_proxy'] = '127.0.0.1' |
| In this ZK demo, a partition places the primary on the minority component. All | |
| operations time out while the cluster converges on a new primary, at which | |
| point three clients (talking to the three nodes in the majority component) can | |
| proceed again. When the partition is healed, the two minority nodes can begin | |
| accepting writes again. As with single-node Postgres, Zookeeper's client | |
| protocol and ZAB both allow for false negatives (timeouts may actually succeed) | |
| but not false positives (every successful write *will* be present in the final | |
| set.) | |
| HOW TO READ THIS CHART: |
| #!/usr/bin/env python3 | |
| import sys | |
| import getopt | |
| from PIL import Image | |
| xterm256colors = [ # http://pln.jonas.me/xterm-colors | |
| (0, (0x00, 0x00, 0x00)), # SYSTEM | |
| (1, (0x80, 0x00, 0x00)), # SYSTEM | |
| (2, (0x00, 0x80, 0x00)), # SYSTEM | |
| (3, (0x80, 0x80, 0x00)), # SYSTEM |
| First, a script to ensure tmux is running how we like it: | |
| $ cat start-tmux | |
| #!/bin/bash | |
| if ! tmux has-session -t irssi >/dev/null 2>&1 ; then | |
| tmux -2 new-session -d -n irssi -s irssi irssi | |
| fi | |
| if ! tmux has-session -t irssi; then |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');