Skip to content

Instantly share code, notes, and snippets.

View atomicules's full-sized avatar

atomicules atomicules

View GitHub Profile
@atomicules
atomicules / image-subdivide.scm
Created March 24, 2011 11:57
Gimp Image slicing plugin for use with Motion 2. Note that this information is probably out of date. It is being added here for reference/archival purposes and relates to a blog post from 2005
; 2011-03-24 - Note, Giuseppe's current version of this script can be found
; here: http://registry.gimp.org/node/13880
; and here: http://xoomer.virgilio.it/lwcon/gimp/scripts/image-subdivide.htm
; I think I only modified the two lines mentioned below, but it was a few years
; ago and I can't diff against the original code as Giuseppe has updated it
; since.
;;;
;;; image-subdivide.scm
;;;
@atomicules
atomicules / gist:884926
Created March 24, 2011 11:36
iMovie DV Stream to Final Cut Express Media Convertor. Note that this information is probably out of date. It is being added here for reference/archival purposes and relates to a blog post from 2005
-- DESCRIPTION
-- ===========
-- This script converts iMovie capture files in the DV Stream format to FCE compatible ones. To do this it converts the audio only (since that is the problem).
-- HOW TO USE
-- ==========
-- Open required iMovie capture in Quicktime. Run this script! No other movies can be open. Will only convert one at a time. For batch conversion see the droplet in this folder
@atomicules
atomicules / gist:884913
Created March 24, 2011 11:25
iTunes Script - Only Albums. Note that this information is probably out of date. It is being added here for reference/archival purposes and relates to a blog post from 2005
--This script will attempt to compile a playlist of only albums based on user inputted
--values for min. number of tracks per album and min. album duration
--
--Inspired by "Make Album Playlists" by Andrew Mathieson
--And also by TETENAL's script on macnn after he beat me to it
--With info from "Doug's Applescripts for iTunes" www.dougscripts.com/itunes
--
--This script by i5m
--
tell application "iTunes"
@atomicules
atomicules / gist:884911
Created March 24, 2011 11:22
View Images Actual Size - Applescript for GraphicConverter. Note that this information is probably out of date. It is being added here for reference/archival purposes and relates to a blog post from 2006
-- View Image Actual Size
-- ======================
-- DESCRIPTION
-- ===========
-- This script zooms an image in GraphicConvertor so that it is shown actual size. By this I mean if you measure in on screen with a ruler it should match the size it prints at when printed at Original size.
-- I wrote this to match the way Gimp works since you can specify a Screen Resolution to use. OSX, etc assumes a screen resolution of 72 ppi when viewing images at Actual/Original size. More often than not this isn't the case. For instance on my 12" powerbook the screen is 9.68" x 7.26". At a resolution of 1024x768 pixels this gives: 1024 / 9.68 = 105.8 ppi
-- It can only zoom at whole numbers, so may in fact be slightly off actual printed size, but far far less than the assumed 72dpi on screen.
@atomicules
atomicules / FCE Batch Capture Example File.xml
Created March 24, 2011 10:50
XML Template for batch capture in Apple's Final Cut Express. Note that this information is probably out of date. It is being added here for reference/archival purposes and relates to a blog post from 2005.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xmeml>
<xmeml version="1">
<bin>
<name>***BIN NAME***</name>
<children>
<clip id="***CAPTURE NAME***">
<name>***CAPTURE NAME***</name>
<duration>
125
@atomicules
atomicules / gist:884917
Created March 24, 2011 11:29
iTunes script - Set Composer to Album. Note that this information is probably out of date. It is being added here for reference/archival purposes and relates to a blog post from 2005
-- This script utilises the Composer field of a track so that you can browse through full albums only on your iPod.
-- Suitable for those who don't sync their full library to their iPod, but do sync a mixture of full albums and individual tracks (from full albums from their iTunes library).
-- It avoids having to suffer the usual 'browse by album' view on your iPod being cluttered with albums with one or few tracks.
--
-- BACKGROUND INFO:
--
-- I have an iPod mini so I don't sync everything from my iTunes library. I ALWAYS sync about 7 non-smart playlists (i.e. hand picked playlists) that are based on genre, mood, etc. I then have another playlist that I dump full albums into, lets call it iP_full_albums. I then have a smart playlist that adds in recently added tracks. I use another couple of smart playlists to sort the songs on my ipod (i.e. they don't add any tracks from the library to my ipod, but reference the afore mentioned playlists) and filter by rating, least played, etc. I then manually adjust the
@atomicules
atomicules / nanoblogger2jekyll.rb
Created March 22, 2011 10:19
Some Ruby scripts I used to import/convert posts from various sources to Jekyll.
# Script to convert a directory of Nanoblogger posts to Jekyll
#
# Nanoblogger is a command line, static blogging app, not that
# dissimilar to Jekyll: http://nanoblogger.sourceforge.net/
#
# It's been years since I've used it though, but the below script
# worked for me in converting the files to Jekyll.
Dir['*.txt'].each do |f|
# Need to read file to find title
@atomicules
atomicules / gist:835932
Created February 20, 2011 12:10
Pinboard bookmark importer for Camino
--Pinboard Bookmark Importer
--An Applescript to automate importing of Pinboard.in bookmarks to a collection in Camino. To be used for occasional or one off import
-- pinboard username and password
property pbuser : "pinboard username"
property pbpass : "pinboard password"
--Download bookmarks via curl to desktop (because can use shortcut when selecting file for import via UI scripting)
do shell script ("cd ~/Desktop; curl https://" & pbuser & ":" & pbpass & "@pinboard.in/export/ -o pinboard.html")
@atomicules
atomicules / gist:414504
Created May 26, 2010 13:48
"My vimrc file. Trying to keep it as simple and cross platform as possible
"This is no longer up to date. It got more complicated...
"My vimrc file. Trying to keep it as simple and cross platform as possible
set tabstop=4 "Number of spaces that a tab character takes
set softtabstop=4 "after reading the docs, I still don't get all the tab options.
set noexpandtab "I don't want tab characters converted to spaces
set shiftwidth=4 "number of spaces used for each step of auto-indent
set smarttab autoindent "copy indent from current line when starting new line
set guifont=Consolas:h10 "Nice font Use Inconsolata:h13 on OSX, Linux.
# For blog post
# New win32-api version of http://www.mustap.com/rubyzone_post_90_ruby-on-windows
require 'win32/api'
include Win32
desktop = API.new("SystemParametersInfo", ['L','L','P','L'] , 'L', "user32")
desktop.call(20,0,"c:\\my_img.bmp",0)