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 | |
# | |
# Simple mencoder call to convert video from the Panasonic Lumix FX33 to xvid | |
# with mp3 in an avi container and x264 with mp3 in a mkv container. Run as: | |
# | |
# ./fx33video <input.mov> | |
# | |
# ffmpeg info about FX33 videos: | |
# Stream #0.0(eng): Video: mjpeg, yuvj420p, 640x480 [PAR 0:1 DAR 0:1], 30.00 | |
# tb(r) |
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 | |
# | |
# Generate a random MAC address with a known vendor prefix from the nmap mac | |
# prefixes file. | |
# | |
# Tim van Werkoven, 20100405 <[email protected]> | |
# This file is licensed under the Creative Commons Attribution-Share Alike | |
# license versions 3.0 or higher, see | |
# http://creativecommons.org/licenses/by-sa/3.0/ |
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 | |
# | |
# Recursively rename all files in a directory with the following rules: | |
# - Convert letters to lower case | |
# - Convert whitespace to underscore | |
# - Remove 'track' in the name | |
# | |
# Used to clean up filenaming of mp3s | |
# | |
# Tim van Werkoven, 20100405 <[email protected]> |
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 python | |
# encoding: utf-8 | |
# | |
# Recursively rename all files in a directory with the following rules: | |
# - Convert letters to lower case | |
# - Convert whitespace to underscore | |
# | |
# Used to clean up filenaming of mp3s | |
# | |
# Tim van Werkoven, 20090426 <[email protected]> |
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/perl -w | |
# | |
# Find the word distance for each word, and signal words that are close | |
# together. Can be useful for reviewing written text (papers, essays, | |
# whatever) to see if you might need a thesaurus somewhere. | |
# | |
# Tim van Werkoven, 20090426 <[email protected]> | |
# This file is licensed under the Creative Commons Attribution-Share Alike | |
# license versions 3.0 or higher, see | |
# http://creativecommons.org/licenses/by-sa/3.0/ |
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
%!TEX TS-program = xelatex | |
%!TEX encoding = UTF-8 Unicode | |
% Dario Taraborelli (2008) | |
% The Beauty of LaTeX | |
% URL: http://nitens.org/taraborelli/latex | |
% Some rights reserved: CC-BY-SA | |
\documentclass[11pt,a4paper]{article} | |
\usepackage[dvipdfm, colorlinks, breaklinks, pdftitle={The Beauty of LaTeX},pdfauthor={Taraborelli, Dario}]{hyperref} |
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
%!TEX TS-program = xelatex | |
%!TEX encoding = UTF-8 Unicode | |
% Tim van Werkhoven (2010) | |
% newton.tex: Render of Newton's Principia in XeLaTeX | |
% Some rights reserved: CC-BY-SA | |
\documentclass[11pt,a4paper]{article} | |
\usepackage[dvipdfm, colorlinks, breaklinks]{hyperref} |
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
/* add_test.c -- test machine precision for float and double datatypes | |
Compile: gcc -lm add_test.c -o add_test | |
Adapted from: http://virtuallyshocking.com/2008/01/14/float-vs-double/ | |
This code iteratively increments a Real variable with a small amount, | |
leading to round-off errors. When the round-off error is bigger than | |
a preset value 'diff', it prints the number of iterations and the round-off | |
error at that point. Additionally it prints the error at each 100 iterations. | |
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
[tim@saturn] ~/tmp% brew install -v git | |
==> Downloading http://kernel.org/pub/software/scm/git/git-1.7.6.tar.bz2 | |
File already downloaded in /Users/tim/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/tim/Library/Caches/Homebrew/git-1.7.6.tar.bz2 | |
==> make prefix=/usr/local/Cellar/git/1.7.6 install | |
make prefix=/usr/local/Cellar/git/1.7.6 install | |
GIT_VERSION = 1.7.6 | |
* new build flags or prefix | |
./generate-cmdlist.sh > common-cmds.h+ && mv common-cmds.h+ common-cmds.h | |
rm -f git-am git-am+ && sed -e '1s|#!.*/sh|#!/bin/sh|' -e 's|@SHELL_PATH@|/bin/sh|' -e 's|@@DIFF@@|diff|' -e 's/@@GIT_VERSION@@/1.7.6/g' -e 's/@@NO_CURL@@//g' -e '/^# @@BROKEN_PATH_FIX@@$/d' git-am.sh >git-am+ && \ |
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
[tim@saturn] ~/tmp% brew doctor | |
"Git" was not found in your path. | |
Homebrew uses Git for several internal functions, and some formulae | |
use Git checkouts instead of stable tarballs. | |
You may want to install git: | |
brew install git |
OlderNewer