Skip to content

Instantly share code, notes, and snippets.


Janik Vonrotz janikvonrotz

View GitHub Profile
View Pull all git projects.ps1
$gitUser = @(
View Backup to external

Backupt to external drive

robocopy C:\Users\janik\LocalDrive D:\LocalDrive /MIR /R:1 /W:0 /XD node_modules

robocopy C:\Users\janik\Nextcloud D:\Nextcloud /MIR /R:1 /W:0

robocopy C:\Users\janik\Nextcloud2 D:\Nextcloud2 /MIR /R:1 /W:0

robocopy C:\Users\janik\ D:\ /MIR /R:1 /W:0

View Garmin Connect
janikvonrotz / Manually renew letsencrypt
Created Apr 16, 2020
Manually renew letsencrypt certificate
View Manually renew letsencrypt

Clone the letsencrypt cli.

git clone
cd letsencrypt

Request a new certificate for your domain manually.

janikvonrotz /
Created Apr 7, 2020
Split file names into year and month folder
for file in *; do
echo $file;
yearmonth=$(echo $file | grep -o '[0-9][0-9][0-9][0-9]-[0-9][0-9]')
newfilename=$(echo $file | grep -o '[0-9][0-9]-[a-z].*.md$')
mkdir $yearmonth
mv $file $yearmonth/$newfilename
janikvonrotz / Collect-ImageMetadata.ps1
Last active Jul 20, 2020
Extract and transfrom metadata of all image files in a folder#powershell
View Collect-ImageMetadata.ps1
Function Get-FileMetaData {
foreach($sFolder in $folder)
$a = 0
$objShell = New-Object -ComObject Shell.Application
$objFolder = $objShell.namespace($sFolder)
foreach ($File in $objFolder.items())


Title: Wolkenbruchs waghalsiges Stelldichein mit der Spionin
Series: Wolkenbruch #2
Author: Thomas Meyer
Comment: Jewis customs from an exaggerated perspective. Amusing and provocative.
Rating: 7/10
ISBN: 3257070802
Finished: 15.11.2020

janikvonrotz / map.geojson
Last active Jan 17, 2021
Places I've been to
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
title author
Janik von Rotz



The knoweldge articles are stored in a strict structure. There are 7 top level folders:

janikvonrotz / Convert-KeePassToPass.ps1
Last active Oct 20, 2019
Convert KeePass to Pass #KeePass #PowerShell
View Convert-KeePassToPass.ps1
[xml]$Content = Get-Content -Path "KeepassData.xml"
Access the xml data:
function Traverse-Tree ($Node, $ParentPath) {