This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" || { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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> |