Instantly share code, notes, and snippets.

Janik von Rotz janikvonrotz

View GitHub Profile
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: 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

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:

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) {
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.
View Convert-ImageToSVG.sh
convert input.jpg output.ppm
potrace -s output.ppm -o svgout.svg
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:

View Create-IndexJsForNodeProjects.ps1
$import = ""
$export = @()
Get-ChildItem | Where-Object{!@("store", "index").contains($_.BaseName)} | ForEach-Object{
$import += "import $($_.baseName) from '$($_.baseName)';`n"
$export += $_.BaseName
}
@"
View Convert-ImageFile.ps1
Get-ChildItem | foreach{Invoke-Expression "gm.exe convert $($_.Name) $($_.BaseName).png"}