From 06f479dadc318a98417183545a97b304924b4aaf Mon Sep 17 00:00:00 2001 From: Patrick Neumann Date: Fri, 26 Apr 2019 21:08:03 +0200 Subject: [PATCH] added more missing scripts --- list-calendar-events.py | 31 +++++++++++++++++++++++++++++++ vdi2raw2ewf | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100755 list-calendar-events.py create mode 100755 vdi2raw2ewf diff --git a/list-calendar-events.py b/list-calendar-events.py new file mode 100755 index 0000000..caf6d1b --- /dev/null +++ b/list-calendar-events.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +"""List events of a iCalendar file""" + +# Install dependencies: +# pacman -S python-pip +# pip install ics + +#=== MODULES =================================================================== + +from ics import Calendar + +#=== INFO ====================================================================== + +"""@author: Patrick Neumann +@contact: patrick@neumannsland.de +@copyright: Copyright (C) 2019, Patrick Neumann +@license: GNU General Public License 3.0 +@date: 2019-04-29 +@version: 1.0.0 +@status: Development +""" + +#=== MAIN ====================================================================== + +with open('./tmp/user-calendar.ics', 'r') as f: + c = Calendar(f) + print( c.events ) + +sys.exit(0) \ No newline at end of file diff --git a/vdi2raw2ewf b/vdi2raw2ewf new file mode 100755 index 0000000..39995f6 --- /dev/null +++ b/vdi2raw2ewf @@ -0,0 +1,32 @@ +#!/usr/local/bin/bash + +PATH="/Users/neupat75/VirtualBox VMs" +DSC="LinuxMint" +VDI="${DSC}_19.1" +RAW="${PATH}/${VDI}.raw" +CASE="20190408-01" +EVI="01" + +/usr/local/bin/vbox-img \ + convert \ + --srcfilename "${PATH}/${VDI}/${VDI}.vdi" \ + --dstfilename "${RAW}" \ + --dstformat RAW + +/usr/local/bin/ewfacquire \ + -c fast \ + -C "${CASE}" \ + -d sha1 \ + -D "${DSC}" \ + -e "Patrick Neumann" \ + -E "${CASE}-${EVI}" \ + -g 1 \ + -l "${PATH}/VBoxVM-${VDI}.log" \ + -N "user:u53r - with Evolution and Timeshift" \ + -t "${PATH}/VBoxVM-${VDI}" \ + -u \ + "${RAW}" + +/bin/rm "${RAW}" + +exit 0 \ No newline at end of file