Date: | 2011-03-31 |
---|---|
category: | Programming |
tags: | Ubuntu, Debian, Node.js |
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
# Encoding of a vertical video (Vertical-video-syndrome; i know) | |
# | |
# http://www.flickr.com/photos/msiebuhr/3406602054/ | |
timelapse-vertical.avi: | |
mencoder \ | |
"mf://*.JPG" \ | |
-mf fps=25 \ | |
-vf scale=1200:800,crop=900:700:0:50,rotate=1 \ | |
-o $@ \ | |
-of lavf \ |
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 | |
# Measure the memory usage of process with PID | |
# Execute whatever's given on the command-line | |
$* > /dev/null & | |
sleep 1 | |
# Monitor it |
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/tcsh | |
set TESTED_VERSION=`wget http://josm.openstreetmap.de/tested -O - -q` | |
set NEW_JOSM=/usr/share/josm/josm-tested-$TESTED_VERSION.jar | |
set JOSM=/usr/share/josm/josm.jar | |
wget http://josm.openstreetmap.de/josm-tested.jar -O $NEW_JOSM -c | |
rm $JOSM | |
ln -s $NEW_JOSM $JOSM |