This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby -w | |
=begin | |
/*************************************************************************** | |
* Copyright (C) 2008, Paul Lutus * | |
* * | |
* 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 * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#set -x | |
# Search all subfolders for photos/videos to rename from their Exif data. | |
# Also compress videos to 720height 3000kbps x264 mp4 (which is roughly divide size by ten from my camera .mov files) | |
# https://gist.github.com/1923696 | |
where=$1 | |
test -z "$where" && where='.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set -e | |
# set -x | |
main() { | |
symlink="$1" | |
comment="$2" | |
file=`readlink -e "$symlink"` | |
where=`dirname "$file"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
# | |
# Convert Visiontac VGPS-900 log file to GPX | |
# | |
# 2009-02-08 | |
# mip@rootcamp.net | |
# | |
SED='/usr/local/bin/gsed' # brew install gnu-sed | |
GREP='/usr/bin/grep' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl | |
use common::sense; | |
#use feature qw(say); | |
use Mail::Box::MailDir; | |
use Mail::Box::Manager; | |
use Config::General qw(ParseConfig SaveConfig); | |
use Date::Manip qw(UnixDate Date_Cmp); | |
use Getopt::Std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# NOTE: This requires GNU getopt. On Mac OS X and FreeBSD, you have to install this | |
# separately; see below. | |
OPTS=`getopt -o hn: --long help,interval: -n 'parse-options' -- "$@"` | |
if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi | |
# echo "$OPTS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# First parameter must be file name to convert | |
where=`dirname "$1"` | |
what=`basename "$1"` | |
shift | |
pushd "$where" >/dev/null | |
docker run --rm --volume "$where:/data" --user `id -u`:`id -g` pandoc/core "$what" "$@" | |
popd >/dev/null |