Skip to content

Instantly share code, notes, and snippets.

@dotike
dotike / try_or_die.sh
Last active Nov 6, 2021
3 finger claw technique for POSIX shell programming. Three one-line functions which greatly enhance shell programming, enabling reliable UNIX-style programming in an extremely concise fashion.
View try_or_die.sh
#!/bin/sh
##############################################################################
# This code known is distributed under the following terms:
#
# Copyright (c) 2013 Isaac (.ike) Levy <ike@blackskyresearch.net>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@dotike
dotike / gist:8257249
Created Jan 4, 2014
wikipedia dumps, fetch last-1-good dump
View gist:8257249
#!/bin/sh
##############################################################################
# This code known is distributed under the following terms:
#
# Copyright (c) 2012-2013 Isaac (.ike) Levy <ike@blackskyresearch.net>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions