Operations - anything pertaining to maintaining and implementing systems at scale
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
#! /usr/bin/env stl | |
. Linux Syscall Table (semi-handcrafted) | |
. Copyright (C) 2015 Matous Jan Fialka, <http://mjf.cz/> | |
. Released under the terms of The MIT License | |
.meta linux version: 4.1.x | |
.meta source 1: arch/x86/syscalls/syscall_64.tbl | |
.meta source 2: arch/x86/syscalls/syscall_32.tbl |
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
#! /bin/sh | |
# Posix shell script to convert between time in human form and date | |
# Copyright (C) 2011 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
if humantime=`humantime -f $@` | |
then | |
date -d "$humantime seconds" '+%F %T' | |
fi |
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
#! /bin/sh | |
# Posix shell script to connect two shell commands by bi-directional pipe | |
# Copyright (C) 2011 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
if [ $# -ne 2 ] | |
then | |
printf -- 'Usage: bip COMMAND COMMAND\n' | |
exit 0 |
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
/** | |
* Strip Juniper Comments | |
* Copyright (C) 2011 Matous J. Fialka, <http://mjf.cz/> | |
* Released under the terms of The MIT License | |
*/ | |
#include <stdio.h> | |
enum { | |
ASCII_NUL = '\000', |
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
clear Lock | |
clear Control | |
keycode 9 = Caps_Lock NoSymbol Caps_Lock NoSymbol Caps_Lock | |
keycode 37 = Escape NoSymbol Escape NoSymbol Escape | |
keycode 66 = Control_L NoSymbol Control_L NoSymbol Control_L | |
add Lock = Caps_Lock | |
add Control = Control_L Control_R |
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
#! /bin/sed -f | |
# pinyin2utf8.sed -- Convert US-ASCII Pinyin to UTF-8 | |
# Copyright (C) 2012 Matous J. Fialka (mjf), <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
# | |
# DESCRIPTION | |
# Script converts all occurences of US-ASCII encoded Pinyin text | |
# enclosed by the solidus characters pairs to UTF-8 encoded text. | |
# |
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
@-moz-document domain("workflowy.com") { | |
@import 'https://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono'; | |
@font-face { | |
font-family: 'FontAwesome'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('FontAwesome'), url(//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/fonts/fontawesome-webfont.woff) format('woff'); | |
} | |
#controlsLeft { |
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
global | |
log 127.0.0.1 local2 info | |
pidfile /var/run/haproxy.pid | |
stats socket /var/run/haproxy.stat mode 600 level admin | |
#debug | |
defaults | |
mode http | |
log global |
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
#! /bin/sh | |
# Record - record shell session using script(1) | |
# Copyright (C) 2011 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
RECORD_PATH="$HOME/.typescripts/%Y/%m/%d" | |
RECORD_FILE='%H%M%S' | |
RECORD_TIMING_FILE="$RECORD_FILE.timing" |
OlderNewer