Skip to content

Instantly share code, notes, and snippets.

View haku's full-sized avatar

Fae haku

View GitHub Profile
anonymous
anonymous / Jira_5_-_no_stalker.user.js
Created May 14, 2013 09:42
Remove the "stalker" behaviour from Jira 5 ticket pages
// ==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 {
@tychobrailleur
tychobrailleur / gist:5712504
Last active July 11, 2020 17:23
Capybara/Selenium/Firefox/Proxy.
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'
@aphyr
aphyr / gist:6266347
Last active December 21, 2015 06:48
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:
@sfan5
sfan5 / image2xterm.py
Last active July 13, 2020 18:24
Converts images into color sequences (xterm-256color)
#!/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
@rauchg
rauchg / README.md
Last active April 13, 2025 04:29
require-from-twitter