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 | |
| ####################################################################### | |
| # | |
| # 日の出・日の入時刻検索コマンド GETSUNRISE.SH | |
| # | |
| # [概要] | |
| # ・第1引数に郵便番号(必須,7桁)、第2引数に日付(任意,8桁)を与えると | |
| # WebAPIを叩きに行って、その地域、その日の日の出&日の入り時刻を返すよ。 | |
| # |
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 | |
| ###################################################################### | |
| # | |
| # SESSIONF - Session File Manager (useful for CGI scripts) | |
| # | |
| # USAGE: sessionf <subcommand> [argument] ... | |
| # | |
| # * List of Subcommands: | |
| # create ..... $0 create at=<template_path> |
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 | |
| ###################################################################### | |
| # | |
| # UTCONV - UNIX time and Real DateTime Converter | |
| # | |
| # USAGE: utconv [datetime_text_or_file] # for Real-datetime -> Unixtime | |
| # utconv -r [unixtime_text_or_file] # for Unixtime -> Real-datetime | |
| # | |
| # * utconv reads stdin when <datetime_text_or_file> is not given. |
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 | |
| ###################################################################### | |
| # | |
| # EXFLOCK : A file lock command that you can use like flock(2) | |
| # | |
| # Usage : exflock <seconds> <file> [maxlifetime] | |
| # <seconds> ...... maximum waiting time to succeed locking | |
| # <file> ......... the path of the file you want to lock | |
| # [maxlifetime] .. the maximum life of the locking process (sec) |
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 | |
| ###################################################################### | |
| # | |
| # GZPIPE - Making a named pipe behave as a gzipping filter | |
| # | |
| # USAGE: gzpipe [-t timeout] <named_pipe_to_use> [output_file] | |
| # | |
| # 1) create the named pipe <named_pipe_to_use> when unexists | |
| # 2) read stream data from the named pipe |
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 | |
| ###################################################################### | |
| # | |
| # MKSTEMP : A wrapper of mktemp(1) to behave as a equivalent of mkstemp(1) | |
| # | |
| # Written by Rich Mikan (richmikan[at]richlab.org) at 2013/11/09 | |
| # | |
| # Usage : mkstemp [mktemp(1)options] <template> | |
| # |
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 | |
| ###################################################################### | |
| # | |
| # APALOGNORM : a normalizer for logs of the Apache combined format | |
| # | |
| # Written by Rich Mikan (richmikan[at]richlab.org) at 2014/01/04 | |
| # | |
| # Usage : apalognorm [-s string] <logfile> | |
| # <logfile> should be written with Apache combine format. |
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 | |
| ###################################################################### | |
| # | |
| # FSED : flexible sed (looks like the fgrep) | |
| # | |
| # Written by Rich Mikan (richmikan[at]richlab.org) at 2014/04/08 | |
| # | |
| # Usage : fsed <pattern_str> <substitute_str> <file> | |
| # |
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 | |
| # This source code should be viewed and run with | |
| # more than 58 chars width and more than 100 lines height. | |
| # 10 20 30 40 50 | |
| # -------+---------+---------+---------+---------+-------| | |
| # | |
| # The original code is exposed at | |
| # http://www.slideshare.net/mametter/ruby-2012 |