Skip to content

Instantly share code, notes, and snippets.

View tobru's full-sized avatar

Tobias Brunner tobru

View GitHub Profile
@tobru
tobru / README.md
Last active January 7, 2022 10:40
A dashing widget which displays the currently playing song on a squeezebox player.

Logitech Squeezebox Now Playing

Preview

Screenshot: Squeezebox Widget in action

Description

Squeezebox Now Playing is a a Dashing widget which which displays now playing information from a Logitech Squeezebox player.

@tobru
tobru / post-receive
Created March 22, 2014 20:38
A git post-receive hook for Jekyll which supports branches
#!/usr/bin/env ruby
require 'fileutils'
GIT_REPO = '/home/me/mywebsite_ch.git'
TMP_GIT_CLONE = '/tmp/mywebsite_ch_clone'
DOCROOT = { 'master' => ENV['HOME']+'/public_html',
'draft' => ENV['HOME']+'/public_html_draft' }
@tobru
tobru / lychee_tag.rb
Last active April 7, 2021 04:48
A Liquid tag for Jekyll sites that allows embedding Lychee albums. See https://tobrunet.ch/articles/jekyll-meets-lychee-a-liquid-tag-plugin/
# Connects Jekyll with Lychee (http://lychee.electerious.com/)
#
# # Features
#
# * Generate album overview and link to image
# * Caching of JSON data
#
# # Usage
#
# {% lychee_album <album_id> %}