This file contains hidden or 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 | |
# | |
# ng_pod.py | |
# | |
# Copyright 2011 Costin STROIE <[email protected]> | |
# | |
# NG_PoD 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 3 of the License, or | |
# (at your option) any later version. |
This file contains hidden or 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 | |
# | |
# picasaweb_downloader.py | |
# | |
# Copyright 2011 Costin STROIE <[email protected]> | |
# | |
# This file 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 3 of the License, or | |
# (at your option) any later version. |
This file contains hidden or 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 | |
D="output" | |
mkdir -p "$D" | |
if [ ! "$1" ] |
This file contains hidden or 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 | |
# | |
# recode | |
# | |
# Copyright 2011 Costin STROIE <[email protected]> | |
# |
This file contains hidden or 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 | |
# Simple mail(1) replacement | |
# Software name and version | |
SWNAME="Slugsy-mail" | |
SWVER="0.1" | |
SWSIG="${SWNAME}/${SWVER}" | |
# From | |
FROM="`hostname -s`@`hostname -d`" |
This file contains hidden or 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 | |
# Create playlists with all available stations of sky.fm, di.fm and JazzRadio and send them by email | |
# Create all playlists | |
for station in sky di jazz | |
do | |
for format in mp3 aac | |
do | |
`dirname $0`/radio2playlist $station $format | |
done |
This file contains hidden or 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
1. Add the @afivepaper command before the end of header. | |
2. Create the dvi file: | |
$ texi2dvi4a2ps FILE.texi | |
3. If needed, center the content: | |
$ dvips -t a5 -O -11mm,0mm -o FILE.ps FILE.dvi | |
4. Create the PostScript book: | |
$ cat FILE.ps | psbook -s4 | psnup -2 -Pa5 -m0 -d0 > FILE_book.ps | |
5. Create the PDF file: | |
$ ps2pdf -sPAPERSIZE=a4 -dPDFSETTINGS=/printer FILE_book.ps FILE_book.pdf |
This file contains hidden or 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 | |
# Convert all mjpg AVI movies created by Niokon camera to mp4 | |
if [ ! "$1" ] | |
then | |
find . -iname '*.avi' -exec "$0" "{}" \; | |
exit 1 | |
fi | |
I="$1" | |
B="${I##*/}" |
This file contains hidden or 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 /etc/rc.common | |
# | |
# Startup script for mjpg-streamer with file input plugin | |
# | |
START=50 | |
STOP=50 | |
PROG=/usr/bin/mjpg_streamer | |
start() { | |
start-stop-daemon -S -b -x "${PROG}" -- -i "input_file.so -f /tmp -n snapshot.jpg -d 5" -o "output_http.so -p 8090 -w /www/webcam -n" |
This file contains hidden or 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
METAR | |
===== | |
http://weather.noaa.gov/pub/data/observations/metar/decoded/LRBS.TXT | |
http://weather.noaa.gov/pub/data/observations/metar/stations/LRBS.TXT | |
TAF | |
=== | |
http://weather.noaa.gov/pub/data/forecasts/taf/stations/LRBS.TXT | |
http://tgftp.nws.noaa.gov/data/forecasts/taf/stations/LRBS.TXT |
OlderNewer