Skip to content

Instantly share code, notes, and snippets.

View tresni's full-sized avatar

Brian Hartvigsen tresni

View GitHub Profile
@tresni
tresni / csd-wrapper.sh
Created September 14, 2017 23:56 — forked from l0ki000/csd-wrapper.sh
Cisco Anyconnect CSD wrapper for OpenConnect (exhanced to autodownload and autoupdate hostscan)
#!/bin/bash
# Cisco Anyconnect CSD wrapper for OpenConnect
# Enter your vpn host here
if [[ -z ${CSD_HOSTNAME} ]]
then
echo "Define CSD_HOSTNAME with vpn-host in script text. Exiting."
exit 1
fi

Graphing Widget

The graphing widget shows graphs using the Rickshaw graphing library. The names of data fields should be (vaguely) familiar if you've used Rickshaw before.

It's recommended that you replace the /assets/javascripts/rickshaw.min.js from your dashboard with the latest from here.

Supported HTML data fields

@tresni
tresni / README.md
Last active January 1, 2016 17:09 — forked from tfohlmeister/README.md

Description

Dashing widget to display a bunch of current and coming-up Google Calendar events.

The widget shows only one event and is based on the text-widget which is default in the Dashing installation. The time is displayed as human-readable time string with the help of MomentJS.

A Dashing job fetches the events of a given public or private calendar url, orders events to match starting time and sends the data to the dashboard. A certain event offset can be set for each calendar widget so that it will show the first (data-pre="0"), the second (data-pre="1") or any other following event based on the offset. For each calendar you'll have to define a name which enables you to assign custom background colors for events of each calendar.

While the main job is called in larger intervals, there is a second job to be run every minute or so, which kicks out already finished events. In that way processing load

@tresni
tresni / Growl.applescript
Created August 7, 2012 21:27 — forked from mceachen/Growl.applescript
iChat and Messages applescript integration: place in ~/Library/Scripts/Messages
on run
tell application "Growl"
-- Make a list of all the notification types that this script will ever send:
set the allNotificationsList to {"IM Received", "Account Connected", "Account Disconnected", "Buddy Available", "Buddy Unavailable"}
-- Make a list of the notifications that will be enabled by default.
set the enabledNotificationsList to {"IM Received"}
-- Register our script with growl.
register as application "iChat Growl AppleScript" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "iChat"
end tell
end run