Skip to content

Instantly share code, notes, and snippets.

View nextlevelshit's full-sized avatar

Michael Werner Czechowski nextlevelshit

View GitHub Profile
nextlevelshit /
Last active November 4, 2020 08:49
Cronjob for Gatsby Deployment and Backup at Uberspace (

1. Add both bash scripts to root folder of your repository to be deployed

Your root directory might look now like:

├── data
├──         # <------ Delete backups older than 15 days
├──   # <------ Deploy and backup "old" public directory
├── gatsby-browser.js
nextlevelshit /
Last active December 16, 2019 11:42
Removing VirtualBox on Ubuntu 18.04.3
  1. Removing package with apt-get
sudo apt-get remove --purge virtualbox 
  1. Deleting virtual machines
sudo rm ~/"VirtualBox VMs" -Rf
sudo rm ~/.config/VirtualBox/ -Rf

Etiquette for Coffee Shops in Amsterdam

How to smoke the Dutch way

  1. Show your face. Take off your hoodies, caps, and hats.

Keybase proof

I hereby claim:

  • I am nextlevelshit on github.
  • I am nextlevelshit ( on keybase.
  • I have a public key whose fingerprint is 1463 B21B 2CE3 422A D9A4 FD7C 4B03 4CF7 B499 8298

To claim this, I am signing this object:

nextlevelshit / create_many_to_many_table.php
Last active February 17, 2018 11:32
Laravel 5 many-to-many migration table for belongsToMany() connections between two Entities. This is a so called pivot table two foreign keys, that create its index.
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAuthorEntryTable extends Migration
* Run the migrations.
nextlevelshit /
Last active September 27, 2020 05:47
A installation guide to get Lumen 5.5 running on Ubuntu 17.04 including all dependencies and known issues

How to install Laravel Lumen 5.5 on Ubuntu 17.04

In that installation guide i will carry you through all dependencies of Lumen 5.5 on a system with Ubuntu 17.04. I will also provide known issues, that come along the installation of Lumen.

1. Requirements for installing Lumen 5.5

Type in the commands beneath the required package and check if you have yet installed them. If not, click the link for installation guide.

PHP >= 7.0

nextlevelshit / pre-commit
Created January 28, 2017 16:06
git hook for markdown files, that should be compiled into pdf before committing
echo "Compiling markdown files ..."
list=$(git diff --cached --name-only --diff-filter=ACM)
while read -r line; do
if [[ $line =~ $regex ]]; then
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<meta charset="utf-8">
<title>Force based label placement</title>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>