Skip to content

Instantly share code, notes, and snippets.

Janik von Rotz janikvonrotz

Block or report user

Report or block janikvonrotz

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
@janikvonrotz
janikvonrotz / Collect-ImageMetadata.ps1
Last active May 29, 2019
Extract and transfrom metadata of all image files in a folder#powershell
View Collect-ImageMetadata.ps1
Function Get-FileMetaData {
Param([string[]]$folder)
foreach($sFolder in $folder)
{
$a = 0
$objShell = New-Object -ComObject Shell.Application
$objFolder = $objShell.namespace($sFolder)
foreach ($File in $objFolder.items())
{
View bookshelf.md


Title: Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones
Author: James Clear
ASIN: B07D23CFGR
Comment: A elaborate framework for creating good habits and getting rid of bad one. His ideas resonate with psychological models and the challenges of bheavior change. Definately not the average self-improving book.
Rating: 10/10
Finished: 15.05.2019


Title: The Man Who Mistook His Wife for a Hat and Other Clinical Tales

@janikvonrotz
janikvonrotz / map.geojson
Last active May 20, 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.
View README.md
title author
Readme
Janik von Rotz

Knowledge

Logo

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

@janikvonrotz
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:
Content.KeePassFile.Root.Group.Group.Entry[67].String[0].Value
#>
function Traverse-Tree ($Node, $ParentPath) {
@janikvonrotz
janikvonrotz / Meteor project structure.md
Created Mar 28, 2017
Meteor project structure #Markdown #Meteor
View Meteor project structure.md

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
janikvonrotz / Convert-ImageToSVG.sh
Created Feb 17, 2017
Convert-ImageToSVG #ImageMagick
View Convert-ImageToSVG.sh
convert input.jpg output.ppm
potrace -s output.ppm -o svgout.svg
@janikvonrotz
janikvonrotz / keybase.md
Last active Feb 28, 2017
Keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am janikvonrotz on github.
  • I am janikvonrotz (https://keybase.io/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
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
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.