Skip to content

Instantly share code, notes, and snippets.

View MorrisJobke's full-sized avatar

Morris Jobke MorrisJobke

View GitHub Profile
@MorrisJobke
MorrisJobke / sunday-open-bakery.geojson
Last active December 20, 2015 22:19
Sonntagsbäcker in Chemnitz
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am morrisjobke on github.
  • I am morrisjobke (https://keybase.io/morrisjobke) on keybase.
  • I have a public key whose fingerprint is 0D33 A6C4 3887 D75D 8285 7FB2 EF55 2587 D06F F0E9

To claim this, I am signing this object:

@MorrisJobke
MorrisJobke / youtube-playlist-downloader.py
Last active October 21, 2022 18:36
Youtube Playlist Downloader
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Youtube Playlist Downloader
# Copyright (C) 2014 Morris Jobke <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MorrisJobke
MorrisJobke / jodel.html
Created April 2, 2016 00:19 — forked from felixboehm/jodel.html
jodel-board, TOKEN needs to be set
<html>
<head>
<style>
.grid-item {
margin-bottom: 15px;
}
.grid-item img {
width: 250px;
height: 400px;
#!/bin/bash
if [ -z "$2" ]; then
echo "Usage: ./add-domain.sh DOMAIN INTERNAL_URL"
exit 1;
fi
DOMAIN=$1
INTERNAL=$2
cp /etc/nginx/sites-available/TEMPLATE /etc/nginx/sites-available/$DOMAIN
@MorrisJobke
MorrisJobke / reverse-l10n.php
Last active June 29, 2016 10:06
Creates a po file from a (ownC|Nextc)loud JSON file in the server code. Call it like this: `php reverse-l10n.php de`
<?php
/**
* composer install gettext/gettext
*/
require 'vendor/autoload.php';
use Gettext\Translations;
$apps = [
/*
* add this as user style for URLs starting with http://adventofcode.com/2016/day/ in your browser
*/
body {
min-width: initial;
}
header {
white-space: initial;
}
@MorrisJobke
MorrisJobke / timelapse.md
Created December 23, 2016 13:28
Creating a timelapse out of an images series

Creating a timelapse out of an images series

Bring them into a common naming format (ordered by date):

jhead -n%Y-%m-%d.%H-%M-%S *.JPG

Create a timelapse video out of those images:

@MorrisJobke
MorrisJobke / deploy-etherpad.sh
Last active October 30, 2021 18:28
Deploy stuff on dokku
ssh [email protected] apps:create pad
ssh [email protected] mariadb:create pad
ssh [email protected] mariadb:import pad < ~/backup.sql
ssh [email protected] mariadb:link pad pad
ssh [email protected] config:set pad ETHERPAD_SETTINGS=settings.json
git clone [email protected]:bright-star/etherpad-lite-heroku
cd etherpad-lite-heroku
git remote add dokku [email protected]:pad