added more missing scripts
This commit is contained in:
parent
7e3041c271
commit
06f479dadc
31
list-calendar-events.py
Executable file
31
list-calendar-events.py
Executable file
@ -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)
|
32
vdi2raw2ewf
Executable file
32
vdi2raw2ewf
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user