Skip to content

Instantly share code, notes, and snippets.

@kormat
kormat / gist:ca6ee59804de01c0625eba34e08fc3d5
Created May 23, 2024 09:07
Gerrit/jira keybinding ignore tampermonkey script
// ==UserScript==
// @name Gerrit/jira keybinding ignore
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Stop gerrit/jira from adding bindings to up-/down-arrow keys.
// @author http://github.com/kormat
// @match https://gerrit.wikimedia.org/*
// @match https://jira.mariadb.org/*
// @grant none
// ==/UserScript==
@kormat
kormat / WORKSPACE
Last active August 14, 2019 12:51
bazel query --noshow_progress
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "org_golang_google_genproto",
remote = "https://github.com/google/go-genproto",
commit = "4f5b463f9597cbe0dd13a6a2cd4f85e788d27508",
shallow_since = "1551303189 -0700",
)
( nodes = [
( id = 16843653696247128979,
displayName = "b.capnp:B",
displayNamePrefixLength = 8,
scopeId = 17755744977579889772,
nestedNodes = [],
struct = (
dataWordCount = 1,
pointerCount = 0,
preferredListEncoding = inlineComposite,

Blog post:

The directory layout:

/etc/compose/
└── docker-compose.yml
/srv/blogs.example.net/
├── bin
│   └── purge
├── conf
@kormat
kormat / 000 README.md
Last active December 16, 2018 13:14
wordpress with php-fpm in docker

This is how to run the wordpress fpm docker image using nginx and mariadb on the host, and with ssmtp to act as the container's MTA. This is the directory layout used:

/etc/wordpress
├── docker-compose.yml
├── image
│   ├── Dockerfile
│   ├── ssmtp.conf
└── secrets
    └── mysql-passwd
/srv/blogs.example.net
/* From https://rawgit.com/pkaminski/2922da3d58f76a8ed7bf/raw/highlight_lines_in_two_columns.css */
.two.column.diff .diff.line:not(.keep) .line.wrapper:not(.empty) .left.line.content {
background-color: #FBDDDD; /* rgba(91, 220, 114, 0.20) on white */
}
.two.column.diff .diff.line.base:not(.keep) .line.wrapper:not(.empty) .left.line.content,
.two.column.diff .diff.line.whitespace:not(.keep) .line.wrapper:not(.empty) .left.line.content {
background-color: #FFF7F7; /* rgba(91, 220, 114, 0.05) on white */
}
.two.column.diff .diff.line:not(.keep) .line.wrapper:not(.empty) .right.line.content {
backgroundOrder:
- 13 # Pilot is at war with your corporation/alliance
- 44 # Pilot is at war with your militia
- 52 # Pilot has a limited engagement with you
- 11 # Pilot is in your fleet
- 51 # Pilot is a criminal
- 50 # Pilot is a suspect
- 9 # Pilot has a security status below -5
- 12 # Pilot is in your corporation
- 14 # Pilot is in your alliance
stateID stateName
9 Pilot has a security status below -5
10 Pilot has a security status below 0
11 Pilot is in your fleet
12 Pilot is in your corporation
13 Pilot is at war with your corporation/alliance
14 Pilot is in your alliance
15 Pilot has Excellent Standing.
16 Pilot has Good Standing.
17 Pilot has Neutral Standing.
- hosts: localhost
tasks:
- include: task1.yml
- include: task1.yml arg={{ blah|default(omit) }}
#!/bin/bash
[ -n "$1" ] || { echo "Must supply remote name"; exit 1; }
orig=$(git config --get remote."$1".fetch)
echo "$orig"
git config --add remote."$1".fetch "+refs/pull/*/head:refs/remotes/$1/pr/*"