Skip to content

citrin/scripts

Repository files navigation

Some small and simple scripts used by me for for various tasks. Most of them tested only under FreeBSD.

  • dhcpd-static-route.pl - generate classless static route option string for ISC DHCP, more info (in russian)
  • dovecot-maildir2mbox.pl - convert Maildir to Dovecto mbox
  • exifautotran - Transforms Exif files so that Orientation becomes 1 (like tool from ligjpeg, but in perl, using Image::ExifTool)
  • file2mail.sh - simple script to send a file as an email attach
  • flac_cue_to_mp3.sh - convert flac/wv image + CUE to set of mp3 files with ID3 tags from CUE
  • gajim_history.pl - show last N (100 by default) messages from Gajim history (stored in SQLite DB)
  • gmirror-rebuild.sh - run gmirror rebuild for stale components after full server startup
  • grabssh - fix ssh-agent forwarding when attaching to an existing tmux or screen
  • hdd-r-speed.sh - run short read benchmark for all HDD
  • inventory-save.sh - save hardware information as text files in /var/db/inventory
  • jpeg2pdf.sh - pack several jpeg images into single pdf file (wrapper around gs)
  • lib_check.sh - list dynamic executables that have unresolvable shared library links
  • ozi-map-merge.pl - generate Global Mapper script to merge raster maps (georeferenced by OziExplorer)
  • procstat-v.pl - parse 'procstat -v' (FreeBSD) output and show in human readable form
  • resize.sh - resize photos (before publish)
  • send-xmpp - perl script to send IM messages over XMPP protocol (Jabber)
  • simplify-gps-track.sh - wrapper around gpsbabel - reduce track to 400 points (useful to show on web site e. g. maps.google.com)
  • split-image.sh - split an image into 4 smaller ones (e. g. to print A3 image on A4 printer)
  • vmstat_memory.pl - print 'vmstat -m' and 'vmstat -z' (FreeBSD) sorted by memory usage