Skip to content

Instantly share code, notes, and snippets.

gitx() {
local gitdir gitdirtx=false
local worktree worktreetx=false
gitdir=$(git rev-parse --git-dir) || return $?
worktree=$(git rev-parse --show-toplevel) || return $?
case $gitdir in *.git/worktrees/tx) gitdirtx=true;; esac
case $worktree in *.git/tx) worktreetx=true;; esac
case ${1-} in
begin)
test "$gitdirtx:$worktreetx" = "false:false" || {
// ==UserScript==
// @name Standard Issue Quiz
// @namespace gigawatt.nl
// @version 1
// @include http://standardissuemagazine.com/quizzes/*
// @grant none
// ==/UserScript==
var s=document.createElement("script");
s.src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js";
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sched.h>
#include <unistd.h>
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/wait.h>