Skip to content

Instantly share code, notes, and snippets.

@ssd532
ssd532 / cron_helper.sh
Created October 17, 2015 14:40 — forked from liquidgecka/cron_helper.sh
Cron helper
#!/bin/bash
usage() {
cat << EOF
Usage: $0 [OPTION]... COMMAND
Execute the given command in a way that works safely with cron. This should
typically be used inside of a cron job definition like so:
* * * * * $(which "$0") [OPTION]... COMMAND
Arguments:
@ssd532
ssd532 / firefoxWithDebug.sh
Last active August 29, 2015 14:13 — forked from ibc/Chrome.sh
#!/usr/bin/env bash
#
# Run Firefox with WebRTC debugging.
# - Signaling (SDP) logs go to SIGNALING_FILE.
# - ICE/STUN/TURN logs go to stderr.
#
FIREFOX_EXEC=/Applications/Firefox.app/Contents/MacOS/firefox
SIGNALING_FILE=/tmp/firefox_signaling.log