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/sh | |
# If no arguments are given, return true. | |
if [ $# -eq 0 ] | |
then | |
exit 0 | |
fi | |
# Test whether any of the arguments repeats. |
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/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 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/sed -f | |
# par2ln.sed - join paragraphs lines with inverse indentation | |
# Copyright (C) 2012 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
# Input: | |
# | |
# foo | |
# bar |
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/sh | |
# WOM -- ISO8601 and ICU compliant week of a month | |
# Copyright (C) 2012 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
if [ $# -ne 1 ] || [ "$1" != +%w -a "$1" != +%u ] | |
then | |
cat 1>&2 <<- EOT | |
Usage: wom +%[wu]; |
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
; ANSI/XTerm control sequences for remind(1) | |
; Copyright (C) 2012 Matous J. Fialka, <http://mjf.cz/> | |
; Released under the terms of The MIT License | |
set bel char(7) | |
set esc char(27) | |
set csi esc + "[" | |
; ANSI attributes |
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/awk -f | |
# Add IPv4 default route to the output of sipcalc(1) | |
# Copyright (C) 2009 Matous Jan Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
# | |
# Parse output of sipcalc(1) and add default route value | |
# to the output stream if prefix length is less or equal to 30. | |
# If prefix length equals to 30 then the lower usable address | |
# is added as default route, the highest usable address is |
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/awk -f | |
# Add IPv6 default route to the output of sipcalc(1) | |
# Copyright (C) 2009 Matous Jan Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
# | |
# Assumes last usable IPv6 address as default route. | |
# | |
# Usage: sipcalc <net>[/<mask>] | sipcalc-add-ipv6-default-route.awk |
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/sed -f | |
# Translate output of sipcalc(1) to Czech language | |
# Copyright (C) 2009 Matous Jan Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
# | |
# Usage: sipcalc <net>[/<mask>] | sipcalc-translate-to-czech.sed | |
# Both IPv4 and IPv6 output of sipcalc(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
-------------------------------------------------------------------------------- | |
-- look.lua - Ion3 or Ion3plus look called "Shiny" | |
-- Copyright (C) 2008,2009 Matous J. Fialka, <http://mjf.cz/> | |
-- Relesed under the terms of The MIT License | |
-- | |
-- Remarks: Drop into ~/.ion3/ or install in the system-wide directory | |
-- Authors: Matous Jan Fialka | |
-- Created: Tue Apr 1 00:12:52 CEST 2008 | |
-- Updated: Mon Feb 9 01:09:41 CET 2009 | |
-------------------------------------------------------------------------------- |
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/sh | |
# man2pdf -- Convert manual page to PDF via PS | |
# Copyright (C) 2012 Matous J. Fialka, <http://mjf.cz/> | |
# Released under the terms of The MIT License | |
groff='groff -Tps -mandoc' | |
ps2pdf='ps2pdf -' | |
file=file | |
man='man -w' |