Skip to content

Instantly share code, notes, and snippets.

@tabletick
tabletick / audio_tag.rb
Created September 6, 2012 10:08
Audio/MP3 Plugin for Octopress
# Title: MP3 tag for Jekyll
# Authors: Devin Weaver, Daniel Roos (youtube changes)
# Description: Allows mp3 tag to include mp3 files embedded into the post.
# It uses the player 'audio.js' from http://kolber.github.com/audiojs/
#
# Install the plugin according to the manuel of the author by adding the necessary lines to the head-template
# and adding the files into the right directories.
#
# Please read my [blog post about it][2].
#
@tabletick
tabletick / photos_tag.rb
Last active December 11, 2015 04:29 — forked from sukima/photos_tag.rb
Added *id:center* parameter as exception to center image + license button.
# Title: Photos tag for Jekyll
# Authors: Devin Weaver
# Licence extension: Daniel Roos (2013-01-16)
# CSS integrateion : Daniel Roos (2013-12-01)
# Description: Allows photos tag to place photos as thumbnails and open in fancybox. Uses a CDN if needed.
# Includes licenses if needed as well.
#
# ** This only covers the markup. Not the integration of FancyBox **
#
# To see an unabridged explination on integrating this with [FancyBox][1]
@tabletick
tabletick / gist:4129818
Created November 22, 2012 07:31
mutt_bgrun
#!/bin/sh
# @(#) mutt_bgrun $Revision: 1.4 $
# mutt_bgrun - run an attachment viewer from mutt in the background
# Copyright (C) 1999-2002 Gary A. Johnson
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#!/bin/bash
# Name: putSSHPubKey.sh
# Purpose: Adds SSH public Key to remote Host
# Author: Tabletick
# Date: 2012/11/06
#
# Explanation: adds the public ssh key to the AUTHORIZED_KEYS file on a remote server
# Works only in this particular configuration to shows that it's possible. _Username_ and Keyfile
# is therefore hardcoded.
@tabletick
tabletick / blog.deploy.pl
Last active October 12, 2015 03:38
Upload-script for octopress-deployment within a git-repository
#!/usr/bin/perl
# Deploying the Octopress Blogg via FTP
# Questions
#
# The script runs only inside the octopress folder structure and will abort if being run outside.
# Depends on File::chdir, File::Find::Rule, Net::FTP:Recursive, IO::Prompt, Timer::Runtime
use 5.10.1;
use strict;
use warnings;
@tabletick
tabletick / radioalphabet.pl
Created October 9, 2012 08:50
Nato Radio Alphabet
#!/usr/bin/perl
# 20120909/JT
# Printing out the radio alphabet
# or translating a string into it.
# http://en.wikipedia.org/wiki/NATO_phonetic_alphabet
use 5.10.1;
use strict;
use warnings;
my %NatoAlphabet = (
@tabletick
tabletick / cp_p.sh
Created September 20, 2012 09:16
Copy files with the pipeviewer and show a progressbar
#!/bin/bash
# Script for copying files while seeing a progressbar.
# Check for pipe-viewer being installed.
for tool in pv; do
if ! type $tool >/dev/null 2>&1; then
echo "ERROR: \"$tool\" not found."
echo " This is needed by $scriptname to work. Check your"
echo " \$PATH variable or install the tool \"$tool\"."
exit 2
@tabletick
tabletick / nextgen2octopress.pl
Created September 7, 2012 09:39
NextGen Pictures to Octopress (Fancybox/Photo-tag plugin)
#!/usr/bin/perl
#
#
# Script converts the Wordpress NextGen images syntax in posts to
# Octopress markdown, Fancybox and Photo-Tag plugin syntax.
#
# Requires Text::CSV
# Image::Size
# ------------------------------------------------------------------------
use Getopt::Long; # Handling parameters
@tabletick
tabletick / log-played_song.pl
Created September 4, 2012 17:39
Logging played songs in a logfile with MOC
#!/usr/bin/perl
# log-played_song.pl
# 2012-04-19
# Syntax: see parameter '-h'
#
# Script used for [MOC](http://moc.daper.net/) for logging the played songs into logfile.
# ==================
# Handling parameters
use Getopt::Long;
@tabletick
tabletick / ngggallery2fancybox.pl
Created September 4, 2012 12:47
NGG Gallery to Fancybox
#!/usr/bin/perl
#
# Script converts Wordpress NGG Gallery Syntax in posts into
# Fancybox Gallery syntax
#
# RequiresText:CSV
# Image::Size
# ------------------------------------------------------------------------
use Getopt::Long;