Skip to content

Instantly share code, notes, and snippets.

@tabletick
tabletick / photos_tag.rb
Last active Dec 11, 2015 — forked from sukima/photos_tag.rb
Added *id:center* parameter as exception to center image + license button.
View photos_tag.rb
# 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]
View gist:4129818
#!/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.
View putSSHPubKey.sh
#!/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 Oct 12, 2015
Upload-script for octopress-deployment within a git-repository
View blog.deploy.pl
#!/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;
View radioalphabet.pl
#!/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 Sep 20, 2012
Copy files with the pipeviewer and show a progressbar
View cp_p.sh
#!/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 Sep 7, 2012
NextGen Pictures to Octopress (Fancybox/Photo-tag plugin)
View nextgen2octopress.pl
#!/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 / audio_tag.rb
Created Sep 6, 2012
Audio/MP3 Plugin for Octopress
View audio_tag.rb
# 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 / log-played_song.pl
Created Sep 4, 2012
Logging played songs in a logfile with MOC
View log-played_song.pl
#!/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;
View ngggallery2fancybox.pl
#!/usr/bin/perl
#
# Script converts Wordpress NGG Gallery Syntax in posts into
# Fancybox Gallery syntax
#
# RequiresText:CSV
# Image::Size
# ------------------------------------------------------------------------
use Getopt::Long;