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
| img { | |
| opacity: 0.2 !important; | |
| filter: alpha(opacity=20) !important; | |
| zoom: 1; /* needed to trigger "hasLayout" in IE if no width or height is set */ | |
| } | |
| /* | |
| *, body > *, body > * > *, body > * > * > * { | |
| background: none!important; | |
| } | |
| */ |
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 | |
| # | |
| # cutlink - Convert hardlink-ed file to just a copy. | |
| # | |
| # Basically, the command does the following, with many checks. | |
| # | |
| # $ cp $file $file.tmp | |
| # $ rm -f $file | |
| # $ mv $file.tmp $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
| #! /usr/bin/ruby | |
| ACCURACY = 0.08 | |
| $chrono = false | |
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 | |
| errno_headers="/usr/include/asm-generic/errno-base.h /usr/include/asm-generic/errno.h" | |
| print_usage () { | |
| echo "Usage: ${0##*/} ERRNO" | |
| } | |
| case $1 in |
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/ruby | |
| # ruby ./epoch2time $(date '+%s') | |
| def sec2time(sec) | |
| thetime = Time.at(sec) | |
| return thetime.to_s | |
| end | |
| if ARGV.length < 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
| #!/bin/sh | |
| # | |
| # TODO: | |
| # - Parhaps TARGET_DIR should be a last argument (like mv) | |
| # - Option like grep's -r switch might be useful(?) | |
| # - Verbose option to report witch files are moved and which are skipped | |
| DIE () { | |
| echo "ERROR: $@" | |
| exit 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
| #!/bin/bash | |
| # watch screensaver's lock/unlock activity and log | |
| log=$HOME/usr/var/log/screensaver.log | |
| DIE () { | |
| touch $log | |
| echo "ERROR: $*" | tee -a $log >&2 | |
| } |
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/python | |
| import sys | |
| import urllib | |
| print urllib.unquote_plus(sys.argv[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
| #!/bin/bash | |
| set -ue | |
| bash_trace () { | |
| typeset -i i=0 | |
| for func in "${FUNCNAME[@]}" | |
| do | |
| printf '%15s() %s:%d\n' \ | |
| "$func" "${BASH_SOURCE[$i]}" "${BASH_LINENO[$i]}" |
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/python | |
| import sys | |
| import os | |
| if len(sys.argv) <= 1: | |
| print os.path.realpath(os.getcwd()) | |
| else: | |
| print os.path.realpath(sys.argv[1]) |