Skip to content

Instantly share code, notes, and snippets.

Janik von Rotz janikvonrotz

View GitHub Profile
janikvonrotz / Collect-ImageMetadata.ps1
Last active Nov 1, 2018
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: Homo Deus: A Brief History of Tomorrow
Author: Yuval Noah Harari
ISBN: 1784703931
Comment: The first third of this book is a less provocative version of his first book. In the scond third he elaborately talks about humanism, liberalism and other moral philosophies. The last part is were it gets interesting. What will be next after we eradicated war, famine and maybe death. Which moral paradigmas will lead humanity into the future or will the ultimate resolution be our own obsolenz.
Rating: 08/10
Finished: 15.01.2019

Title: Exit Strategy

janikvonrotz / map.geojson
Last active Feb 21, 2019
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 Apr 19, 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) {
janikvonrotz / Meteor project
Created Mar 28, 2017
Meteor project structure #Markdown #Meteor
View Meteor project

Meteor project structure

The Meteor project structure (MPS) is a proposal for a simple file and folder naming specification.

There are several basic distinctions when building a Meteor project structure. First there is a client, server and an imports folder. All folders have specific naming rules and differ in their structure.

Global restrictions are applied to all folders:

  • Non-npm-package-import sources are always index.js files.
  • Every first-level subfolder contains an index.js file.
janikvonrotz /
Created Feb 17, 2017
Convert-ImageToSVG #ImageMagick
convert input.jpg output.ppm
potrace -s output.ppm -o svgout.svg
janikvonrotz /
Last active Feb 28, 2017
Keybase proof

Keybase proof

I hereby claim:

  • I am janikvonrotz on github.
  • I am janikvonrotz ( on keybase.
  • I have a public key whose fingerprint is 256C CDF7 5B8F C4CC FA86 0382 6A0E A5EA F417 5898

To claim this, I am signing this object:

janikvonrotz / Create-IndexJsForNodeProjects.ps1
Last active Jun 29, 2017
Create index.js for node.js project #PowerShell #Node.js
View Create-IndexJsForNodeProjects.ps1
$import = ""
$export = @()
Get-ChildItem | Where-Object{!@("store", "index").contains($_.BaseName)} | ForEach-Object{
$import += "import $($_.baseName) from '$($_.baseName)';`n"
$export += $_.BaseName
janikvonrotz / Convert-ImageFile.ps1
Created Oct 17, 2016
Convert image file format #PowerShell #GraphicsMagick
View Convert-ImageFile.ps1
Get-ChildItem | foreach{Invoke-Expression "gm.exe convert $($_.Name) $($_.BaseName).png"}
You can’t perform that action at this time.