Skip to content

Instantly share code, notes, and snippets.

Johan van der Knijff bitsgalore

  • Rotterdam, The Netherlands
Block or report user

Report or block bitsgalore

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bitsgalore
bitsgalore / checkLastModified.sh
Last active Nov 12, 2019
Report last-modified date header for a list of URLs
View checkLastModified.sh
#!/bin/bash
# Check value of last-modified date header for list of URLs
#
# Uses curl: https://curl.haxx.se/
# Display usage message if command line does not contain expected
# number of arguments
if [ "$#" -ne 2 ] ; then
echo "Usage: checkLastModified.sh fileIn fileOut" >&2
View jpylyzer-coc-example.xml
<?xml version='1.0' encoding='UTF-8'?>
<jpylyzer xmlns="http://openpreservation.org/ns/jpylyzer/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openpreservation.org/ns/jpylyzer/ http://jpylyzer.openpreservation.org/jpylyzer-v-1-1.xsd">
<toolInfo>
<toolName>jpylyzer</toolName>
<toolVersion>1.18.0</toolVersion>
</toolInfo>
<fileInfo>
<fileName>openJPEG15.jp2</fileName>
<filePath>/home/johan/jpylyzer-test-files/openJPEG15.jp2</filePath>
<fileSizeInBytes>670372</fileSizeInBytes>
View tape-dd.md

Reading a tape with dd and mt

In the simplest case, reading data from a tape involves nothing more than a dd command line such as this one:

dd if=/dev/nst0 of=file0001.dd bs=16384

Here, the "if" argument tells dd to read input from the non-rewind block device /dev/nst0, and the value of "of" defines the file where

View jpylyzer2-outformat.md

Proposed jpylyzer output format changes

Johan van der Knijff, 3 July 2019

This document describes some proposed changes to the jpylyzer output format for the upcoming jpylyzer 2.0 release (which is foreseen for November 2019). The main occasion for these changes is the addition of raw codestream validation functionality. Since this functionality will lead to a small (but nevertheless breaking) change to jpylyzer's output format, this is a good moment for fixing a few other inconsistencies.

Related Github issues are:

@bitsgalore
bitsgalore / jpylyzer2-multi-jp2.xml
Created Jul 3, 2019
Example jpylyzer 2 output file, using --format jp2, multiple input files
View jpylyzer2-multi-jp2.xml
<?xml version='1.0' encoding='UTF-8'?>
<jpylyzer xmlns="http://openpreservation.org/ns/jpylyzer/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openpreservation.org/ns/jpylyzer/ http://jpylyzer.openpreservation.org/jpylyzer-v-2-0.xsd">
<toolInfo>
<toolName>jpylyzer</toolName>
<toolVersion>2.0.0a1</toolVersion>
</toolInfo>
<file>
<fileInfo>
<fileName>aware.jp2</fileName>
<filePath>/home/johan/test/aware.jp2</filePath>
@bitsgalore
bitsgalore / jpylyzer2-jp2.xml
Last active Jul 3, 2019
Example jpylyzer 2 output file, using --format jp2
View jpylyzer2-jp2.xml
<?xml version='1.0' encoding='UTF-8'?>
<jpylyzer xmlns="http://openpreservation.org/ns/jpylyzer/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openpreservation.org/ns/jpylyzer/ http://jpylyzer.openpreservation.org/jpylyzer-v-2-0.xsd">
<toolInfo>
<toolName>jpylyzer</toolName>
<toolVersion>2.0.0a1</toolVersion>
</toolInfo>
<file>
<fileInfo>
<fileName>aware.jp2</fileName>
<filePath>/home/johan/test/aware.jp2</filePath>
@bitsgalore
bitsgalore / jpylyzer2-j2c.xml
Last active Jul 3, 2019
Example jpylyzer 2 output file, using --format j2c
View jpylyzer2-j2c.xml
<?xml version='1.0' encoding='UTF-8'?>
<jpylyzer xmlns="http://openpreservation.org/ns/jpylyzer/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openpreservation.org/ns/jpylyzer/ http://jpylyzer.openpreservation.org/jpylyzer-v-2-0.xsd">
<toolInfo>
<toolName>jpylyzer</toolName>
<toolVersion>2.0.0a1</toolVersion>
</toolInfo>
<file>
<fileInfo>
<fileName>is_codestream.j2c</fileName>
<filePath>/home/johan/test/is_codestream.j2c</filePath>
View bewaarmachine.xml
<?xml version="1.0" ?>
<isolyzer>
<toolInfo>
<toolName>isolyzer</toolName>
<toolVersion>1.3.0</toolVersion>
</toolInfo>
<image>
<fileInfo>
<fileName>bewaarmachine.iso</fileName>
<filePath>/home/johan/diskImagesKBDepot/testset2015/bewaarmachine.iso</filePath>
@bitsgalore
bitsgalore / tapes-all.txt
Created Jun 3, 2019
File(1) id results of xxLINK tapes
View tapes-all.txt
fileName,mimeTypeFile,matchFile
/media/bcadmin/Elements/xxLINK/tapes-DDS/1/file000001.dd,/media/bcadmin/Elements/xxLINK/tapes-DDS/1/file000001.dd: new-fs dump file (big endian), Previous dump Wed Dec 20 13:07:49 1995, This dump Thu Jan 1 00:00:00 1970, Volume 1, Level zero, type: tape header, Label none, Filesystem /, Device /dev/sd0a, Host www.xxlink.nl, Flags 1,1
/media/bcadmin/Elements/xxLINK/tapes-DDS/1/file000002.dd,/media/bcadmin/Elements/xxLINK/tapes-DDS/1/file000002.dd: new-fs dump file (big endian), Previous dump Wed Dec 20 13:08:19 1995, This dump Thu Jan 1 00:00:00 1970, Volume 1, Level zero, type: tape header, Label none, Filesystem /usr, Device /dev/sd0g, Host www.xxlink.nl, Flags 1,1
/media/bcadmin/Elements/xxLINK/tapes-DDS/1/file000003.dd,/media/bcadmin/Elements/xxLINK/tapes-DDS/1/file000003.dd: new-fs dump file (big endian), Previous dump Wed Dec 20 13:14:01 1995, This dump Thu Jan 1 00:00:00 1970, Volume 1, Level zero, type: tape header, Label none, Filesystem /home, Device /dev/sd0h, Host ww
View isobusterReport-cdi.xml
<?xml version="1.0" encoding="UTF-8" ?>
<dfxml xmlns='http://www.forensicswiki.org/wiki/Category:Digital_Forensics_XML'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:dc='http://purl.org/dc/elements/1.1/'
xmlns:hfs='http://www.forensicswiki.org/wiki/HFS' version='1.0'>
<metadata>
<dc:type>CD</dc:type>
</metadata>
You can’t perform that action at this time.