Skip to content

Instantly share code, notes, and snippets.

View gjmf's full-sized avatar

Graham Freeman gjmf

View GitHub Profile
@jmb
jmb / README.md
Last active December 8, 2022 08:41
Google Calendar API v3 widget for Dashing

Description

Dashing widget to display the next and some subsequent Google Calendar events using the Google Calendar API v3.

I use this widget to display my shift calendar - see the screenshot below

Set up

This widget works with API v3 and requires a service account to be set up via the Google Developer's Console. Once a project is set up, enable the Calendar API. On the Credentials page create a new OpenID and download the p12 key file - set up the path to this file in the job file and grant the email address access to the relevant calendar.

@stevebowman
stevebowman / AWSLambdaSimpleSMS.js
Last active June 22, 2023 12:09
AWS Lambda Function to send an SMS message via the Twilio API
console.log('Loading event');
// Twilio Credentials
var accountSid = '';
var authToken = '';
var fromNumber = '';
var https = require('https');
var queryString = require('querystring');
@beardicus
beardicus / edgerouter-qos
Last active September 29, 2023 16:41
EdgeRouter Lite QOS Settings
#
# fair-queue based settings for EdgeRouter Lite traffic shaping
#
# download is typically 30 and change. everything can burst to 100%
# of bandwidth, priority rules keep the garbage in check
set traffic-policy shaper download
set traffic-policy shaper download bandwidth 30Mbit
@jakthom
jakthom / README.md
Last active August 29, 2015 14:09
Xively
@bitfolk
bitfolk / check_poodle.sh
Last active August 29, 2015 14:07
Horrible shell hack to check for enabled SSLv3 on port 443 of a CIDR mask
#!/bin/sh
# Horrible shell hack to check for enabled SSLv3 on port 443 of a CIDR mask.
#
# This is pretty slow because it does them in series. Sticking a '&' on the end
# of the for loop (so "done &" instead of "done") will execute openssl against
# every IP:443 at once. If there's too many to do at once then I suggest
# lashing something up with GNU parallel.
#
# Note also that nmap itself can check for SSLv3 with something like:
@cannuk
cannuk / README.md
Last active October 24, 2015 08:02
Dashing BART

Dashing BART

A simple Dashing widget to show upcoming departures for a specific BART station. You can filter the destinations by platform, direction and specific destination trains.

ScreenShot

Installation

To install, use the Dashing gist install command with the GIST_ID, like so

dashing install 589d7d4dcbefc3af024e
@naveen
naveen / scrubs
Last active December 2, 2021 05:50
Scrubs: Your monthly notice to go through and disconnect unused applications across various services.
Your monthly notice to go through and disconnect unused applications across various services.
Twitter: https://twitter.com/settings/applications
Dropbox: https://www.dropbox.com/account/connected_apps
Facebook: https://www.facebook.com/settings?tab=applications
Google Apps: https://security.google.com/settings/security/permissions?pli=1
Google Ads: http://www.google.com/ads/preferences
Google Account: https://security.google.com/settings/security/secureaccount
Foursquare: https://foursquare.com/settings/connections
Instagram: https://instagram.com/accounts/manage_access
@s0enke
s0enke / README.md
Last active May 12, 2023 14:21
Dashing Cloudwatch

This is an adjusted version of EC2 CloudWatch stats for Dashing which is not bound to EC2 metrics but a generic widget for cloudwatch graphs. Visualization is done by Rickshawgraph as in the original example.

@simlun
simlun / raspi-monitor
Last active September 14, 2021 14:36
Script to enable and disable the HDMI signal of the Raspberry PI
#!/bin/bash -e
# /usr/local/sbin/raspi-monitor
# Script to enable and disable the HDMI signal of the Raspberry PI
# Inspiration: http://www.raspberrypi.org/forums/viewtopic.php?t=16472&p=176258
CMD="$1"
function on {
/opt/vc/bin/tvservice --preferred
@denji
denji / README.md
Last active April 25, 2023 21:48
Take a list of CIDR address blocks and combine them, for example, 192.168.0.0/24 and 192.168.1.0/24 gives 192.168.0.0/23. I usually use "list-iana-reserved-ranges | aggregate-cidr-addresses" to get a list of blocks to not report with firewall log processing.