Skip to content

Instantly share code, notes, and snippets.

View cdowebcast's full-sized avatar
🏠
Working from home

CDOWEBCAST cdowebcast

🏠
Working from home
View GitHub Profile
/* global caches, Promise */
//Arquivo apenas para facilitar a edição do javascript, deve ser colado no .php// Não minificar
importScripts('serviceworker-cache-polyfill.js');
// While overkill for this specific sample in which there is only one cache,
// this is one best practice that can be followed in general to keep track of
// multiple caches used by a given service worker, and keep them all versioned.
// It maps a shorthand identifier for a cache to a specific, versioned cache name.
@cdowebcast
cdowebcast / check_shoutcast_v2
Created September 27, 2022 22:20 — forked from keijodputt/check_shoutcast_v2
Simple Nagios plugin to check on a SHOUTCast V2 server -- Based on 'Check SHOUTcast Server' by ChrisWi/Juliano Jeziorny
#!/bin/sh
# Nagios shoutcast plug-in
# By Juliano Jeziorny ([email protected])
# Rev 0.1
# 23/11/2010
# *********************************************************
# Modified and adapted for Shoutcast 2 to parse xml stats
# and detect unconnected source
# Rev 0.2 by Keijo D. Putt
# 07-Dec-2017