Instantly share code, notes, and snippets.

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: Foundation
Author: Isaac Asimov
Comment: Its a must and will always be a masterpiece.
Series: Foundation (Publication Order) #1
Rating: 8/10
ISBN: 0553803719
Finished: 12.10.2018

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"}