This file contains hidden or 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
setw -g mode-keys emacs # Use emacs keybindings in copy mode | |
setw -g status-keys emacs | |
set -g mouse on | |
# COPY & PASTE | |
# Copy tmux buffer to X clipboard | |
# bind -Tcopy-mode M-w send-keys -X copy-pipe "xclip -i -sel p -f | xclip -i -sel c " . bind-key -n C-y run-shell "xclip -o | tmux load-buffer - ; tmux paste-buffer" | |
# run -b runs a shell command in background |
This file contains hidden or 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
--- gcc/config/i386/linux-unwind_old.h 2019-08-08 11:02:37.812459833 +0200 | |
+++ gcc/config/i386/linux-unwind.h 2019-08-08 11:36:20.876351869 +0200 | |
@@ -135,7 +135,7 @@ | |
int sig; | |
struct siginfo *pinfo; | |
void *puc; | |
- struct siginfo info; | |
+ siginfo_t info; | |
struct ucontext uc; | |
} *rt_ = context->cfa; |
This file contains hidden or 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
#!/bin/bash | |
# Rotate an animated gif by a chosen amount, while maintaining the animation | |
if [ "$1" == "-h" ]; then | |
echo "Usage: `basename $0` [rotation in degrees] [input file] [output file]" | |
exit 0 | |
fi | |
ROTATION=$1 |
This file contains hidden or 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
from hashlib import md5 | |
import argparse | |
parser = argparse.ArgumentParser(description='Proof of work') | |
parser.add_argument('--input_string', default='chungus', | |
help='String to compute proof of work on') | |
parser.add_argument('--prefix', default='000', | |
help='Required prefix for PoW - longer is more difficult') | |
args = parser.parse_args() |
This file contains hidden or 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
#!/usr/bin/env python | |
import argparse | |
import string | |
from typing import List | |
from collections import Counter | |
import numpy as np | |
def main(args) -> List[str]: |
OlderNewer