Skip to content

Instantly share code, notes, and snippets.

View janikvonrotz's full-sized avatar
:octocat:

Janik von Rotz janikvonrotz

:octocat:
View GitHub Profile
@janikvonrotz
janikvonrotz / README.md
Last active January 17, 2021 16:19
#Markdown
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 October 20, 2019 18:40
Convert KeePass to Pass #KeePass #PowerShell
[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 March 28, 2017 15:09
Meteor project structure #Markdown #Meteor

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 February 17, 2017 08:05
Convert-ImageToSVG #ImageMagick
convert input.jpg output.ppm
potrace -s output.ppm -o svgout.svg
@janikvonrotz
janikvonrotz / keybase.md
Last active February 28, 2017 11:46
Keybase proof

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 June 29, 2017 17:22
Create index.js for node.js project #PowerShell #Node.js
$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 October 17, 2016 19:00
Convert image file format #PowerShell #GraphicsMagick
Get-ChildItem | foreach{Invoke-Expression "gm.exe convert $($_.Name) $($_.BaseName).png"}
@janikvonrotz
janikvonrotz / helper.js
Last active October 17, 2016 17:10
Helper library for js projects #JavaScript #Meteor #Node
function concenateToPhrase(array, connectWord) {
var length = array.length;
var phrase = "";
array.map((item) => {
var index = array.indexOf(item);
// return word if theres is only one item
if(length == 1){
phrase = item;
@janikvonrotz
janikvonrotz / Configure Lets Encrypt auto renewal for certificates.md
Last active December 6, 2022 21:41
Configure Lets Encrypt auto renewal for certificates #Markdown #OpenSSL

This post is part of my Your own Virtual Private Server hosting solution project.
Get the latest version of this article here: https://gist.github.com/ddce334cd8ab21a40941.

Introduction

Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. So far it works well and makes it easy to obtain a free certificate. Now the created certificates will expire withing 90 days. This post will show you how you can auto renew these certificates before they expire.

Requirements

@janikvonrotz
janikvonrotz / Favorite Books.md
Last active June 6, 2016 16:50
List of my favorite books #JanikVonrotz

Frank Schätzing

  • Limit

Stephen King

  • The Dark Tower series
  • Under the Dome

Christopher Paolini