Skip to content

Instantly share code, notes, and snippets.

View klcodanr's full-sized avatar

Dan Klco klcodanr

View GitHub Profile
(async () => {
let response = await fetch('/system/console/status-pattern-detector.json');
let text = await response.text();
let json = text.replaceAll(/\n/g, ',')
.slice(0, -1);
let items = JSON.parse(`[${json}]`);
function getComponentName(item) {
//get the component name from the item
return "";
@klcodanr
klcodanr / jekyll-init-script
Last active January 14, 2016 10:53
Shell script for Jekyll to loaded on server load.
#!/bin/sh
# jekyll Starts and stops Jekyll
#
#
# chkconfig: - 85 15
# description: Jekyll is a Ruby based website caching engine
# processname: jekyll
# pidfile: /var/run/jekyll.pid
# Configure your values here