Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# cron job list for all users, from http://stackoverflow.com/a/137173/6331375
# System-wide crontab file and cron job directory. Change these for your system.
CRONTAB='/etc/crontab'
CRONDIR='/etc/cron.d'
# Single tab character. Annoyingly necessary.
tab=$(echo -en "\t")
@adammessinger
adammessinger / jqm-reload-firstPage.js
Created May 24, 2012 03:33
jQuery Mobile Work-Around: refresh cached first page
// guarantee fresh data on the first-loaded page (stays cached in DOM)
// see https://github.com/jquery/jquery-mobile/issues/4050
$(document).on('pagebeforechange', function(event, data) {
var $all_pages = $.mobile.pageContainer.find(':jqmData(role="page")'),
$cur_page = $.mobile.activePage,
$first_page, // unenhanced if fresh load of URL w/ hash in browser w/o pushSate support
first_page_data,
toPage_type,
root_url,
nav_urls;