This file contains 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/env php | |
<?php | |
/* Inspired by: https://github.com/MattWilcox/Adaptive-Images */ | |
# BEGIN: Configuration | |
$config = array ( | |
'breakpoints' => array(10, 80, 480, 768, 820, 1024, 1280, 1640), | |
'group_breakpoints' => TRUE, // if TRUE, will group the images into folders for each breakpoint |
This file contains 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 | |
PING_TIMEOUT=2 | |
PING_ADDRESS=8.8.8.8 | |
PING_STATUS=false | |
EXTERNAL_IP_LABEL='IP Address (external): ' | |
ACQUIRE_EXTERNAL_IP='/usr/local/bin/wget -qO- http://ipecho.net/plain' | |
EXTERNAL_IP_ADDRESS="$(eval "$ACQUIRE_EXTERNAL_IP")" | |
EXTERNAL_IP="${EXTERNAL_IP_LABEL}${EXTERNAL_IP_ADDRESS}" | |
VPN_STATUS=false |
This file contains 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
'use strict'; | |
const version = 'v1.17l::'; | |
const staticCacheName = version + 'pwa'; | |
const pagesCacheName = version + 'pages'; | |
const imagesCacheName = version + 'assets'; | |
const offlinePage = '/local-offline.html'; | |
const weblogSlug = '/weblog/'; | |
const cacheList = [ |
This file contains 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
if (document.getElementById('countdownTimer')) { | |
pad = function(n, len) { // leading 0's | |
var s = n.toString(); | |
return (new Array( (len - s.length + 1) ).join('0')) + s; | |
}; | |
var timerRunning = setInterval( | |
function countDown() { | |
var now = new Date(); | |
if ( (now.getDay() >= 1) && (now.getDay() <= 5) ) { // Monday to Friday only |
This file contains 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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": false, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
This file contains 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 | |
# Traverse a directory starting at $path and change the permissions of all files | |
# or folders (determined with options) to $permissions | |
helpText=$"Usage: ${0##*/} -(f|d) permissions path"; | |
permissions=$2; | |
path=$3; | |
if [[ $path ]] |
OlderNewer