Skip to content

Instantly share code, notes, and snippets.

View bitsgalore's full-sized avatar

Johan van der Knijff bitsgalore

View GitHub Profile
@bitsgalore
bitsgalore / formatCategories.md
Last active August 29, 2015 14:20
File format categories
Category Example formats Needs dedicated software for rendering?
Image formats JPEG, TIFF, BMP Yes
PDF PDF Yes
Web formats HTML, SWF Yes
Office formats Word, Excel, Powerpoint, RTF Yes
Audio WAV, AIFF, MP3 Yes
Video MP4, AVI Yes
Metadata XML, SGML No (perhaps XML editor/viewer)
Executables, installers, system files EXE, CAB, INF No (unless in shielded virtual environment)
@bitsgalore
bitsgalore / softwareReadingRooms.md
Last active August 29, 2015 14:20
Software in KB reading rooms for each format category
Format category Rendering software
Image formats MS Paint, Windows Photoviewer
PDF Adobe Acrobat
Web formats Internet Explorer, Google Chrome
Office formats Microsoft Office
Audio Windows Media Player, VLC Media Player
Video Windows Media Player, VLC Media Player
Metadata Internet Explorer, Notepad, Wordpad
Executables, installers, system files Not applicable
@bitsgalore
bitsgalore / eDepotFExtentions_v3.md
Created April 29, 2015 16:16
File extensions in KB e-Depot, status March 2014
Number of files File extension
34499095 .gif
12913388 .xml
8197415 .jpg
7744829 .sml
7577414 .pdf
2045662 .raw
715509 .tif
296101 .oa3
@bitsgalore
bitsgalore / csv2md.py
Created April 29, 2015 16:36
Quick and dirty CSV to Markdown table converter
#! /usr/bin/env python
# Convert CSV file to Markdown table
import os
import sys
import argparse
import csv
def errorExit(msg):
#!/bin/bash
# Quick and dirty script for computing PSNR between images with identical base names in 2 directories.
#
# - script first loops over all files in dir1 (irrespective of extension)
# - it then assumes corresponding images in dir2 have same based name, but extension
# defined by ext2
#
# Results to CSV output. Output is rather messy because IM sends metrics to stderr (not stdout),
# so needs manual removal of warnings/junk.
# Requires ImageMagick
@bitsgalore
bitsgalore / softwareDevelopmentPC.txt
Last active September 4, 2015 12:49
Software on development PC
accountsservice install
acl install
add-apt-key install
adobe-flashplugin install
apg install
apt-clone install
aptdaemon-data install
aptitude-common install
apturl install
archdetect-deb install
@bitsgalore
bitsgalore / cdparanoiaLogDebug.log
Last active January 30, 2021 10:45
CD imaging notes + sample tool output (scroll down for notes)
cdparanoia -B -L
cdparanoia III release 10.2 (September 11, 2008)
Ripping from sector 0 (track 1 [0:00.00])
to sector 152169 (track 17 [2:40.35])
outputting to track01.cdda.wav
@bitsgalore
bitsgalore / verapdfBuildErrors.txt
Created June 17, 2015 10:40
VeraPDF build errors
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] veraPDF PDF/A Validation Library
[INFO] Unnamed - org.verapdf:verapdfexceptions:jar:1.0-SNAPSHOT
[INFO] Unnamed - org.verapdf:validationprofileparser:jar:1.0-SNAPSHOT
[INFO] Unnamed - org.verapdf:validationlogic:jar:1.0-SNAPSHOT
[INFO] Unnamed - org.verapdf:validationreport:jar:1.0-SNAPSHOT
[INFO] Unnamed - org.verapdf:modelimplementation:jar:1.0-SNAPSHOT
[INFO] Unnamed - org.verapdf:core:jar:1.0-SNAPSHOT
@bitsgalore
bitsgalore / computePSNR.sh
Created August 20, 2015 15:25
Compute PSNR between images
#!/bin/bash
# Compute PSNR between images with identical base names in 2 directories.
# report results to CSV file
# Requires ImageMagick
# Tested under Windows with Cygwin
# Installation directory
instDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# **************