Skip to content

Instantly share code, notes, and snippets.

Avatar

Janik Vonrotz janikvonrotz

View GitHub Profile
@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"}
@janikvonrotz
janikvonrotz / helper.js
Last active Oct 17, 2016
Helper library for js projects #JavaScript #Meteor #Node
View helper.js
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 Feb 14, 2016
Configure Lets Encrypt auto renewal for certificates #Markdown #OpenSSL
View Configure Lets Encrypt auto renewal for certificates.md

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 Jun 6, 2016
List of my favorite books #JanikVonrotz
View Favorite Books.md

Frank Schätzing

  • Limit

Stephen King

  • The Dark Tower series
  • Under the Dome

Christopher Paolini

@janikvonrotz
janikvonrotz / Install-Python.md
Last active Oct 22, 2015
Ubuntu: Install Python #Ubuntu #Python
View Install-Python.md

Introduction

Configure Python 3 and install pip. Pip allows us to easily manage any Python 3 package we would like to have.

Requirements

Installation

You can’t perform that action at this time.