Skip to content

Instantly share code, notes, and snippets.

View gists-app-test's full-sized avatar

gists-app-test

View GitHub Profile
@gists-app-test
gists-app-test / 1.dup
Created September 12, 2012 14:27
identifiers
13822
17471
15871
18655
18219
18574
14647
13800
17967
15620
@gists-app-test
gists-app-test / newerthan.sh
Created September 12, 2012 14:27 — forked from artyom/newerthan.sh
Check if file is newer than X minutes
#!/bin/sh -eu
usage () { printf "%s file [time-in-minutes]\n" ${0##*/} >&2 ; }
test $# -eq 0 && { usage ; exit 2 ; }
WHAT=$1
test -e $WHAT || { echo "$WHAT not found" >&2 ; exit 2 ; }
MINUTES=${2:-30}
case ${0##*/} in
older*)
test $(($(date +%s)-$(stat --printf "%Y\n" "$WHAT"))) -gt $(($MINUTES*60))
-bash-4.1$ /qa/tools/opt/git-1.6.5/bin/git status
/qa/tools/opt/git-1.6.5/bin/git: error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory
-bash-4.1$ git status
git: error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory
@gists-app-test
gists-app-test / file001.txt
Created September 12, 2012 14:25
Gist 002
Sample gist 002. File 001. Line 001.
@gists-app-test
gists-app-test / file001.txt
Created September 12, 2012 14:24
Gist 001
Sample gist 001. File 001. Line 001.