Skip to content

Instantly share code, notes, and snippets.

View johnjohndoe's full-sized avatar

Tobias Preuss johnjohndoe

View GitHub Profile
@johnjohndoe
johnjohndoe / confluence-wiki.css
Created March 27, 2024 11:41
Custom CSS for a Confluence wiki to be used with the Stylus browser extension
html {
font-size: 1em !important;
line-height: 1.5em !important;
}
h1 {
padding: 0.4em;
border-bottom: 3px solid #0385e4 !important;
color: #0385e4 !important;
background-color: #f1f1f1;
@johnjohndoe
johnjohndoe / download-url-to-file.rb
Last active March 14, 2024 17:58
Ruby script to download a number of files from individual URLs via HTTP/HTTPS/FTP specified in an external file.
#!/usr/bin/env ruby
#
# Ruby script to download a number of files
# from individual URLs via HTTP/HTTPS/FTP
# specified in an external file.
#
# Author: Tobias Preuss
# Revision: 2013-04-18 16:26 +0100 UTC
# License: Creative Commons Attribution-ShareAlike 3.0 Unported
@johnjohndoe
johnjohndoe / schedule.xml
Created February 15, 2024 20:25
FOSSGIS 2024 / schedule.xml with malformed track nodes
<?xml version='1.0' encoding='utf-8' ?>
<!-- Made with love by pretalx v2023.2.0.dev0. -->
<schedule>
<generator name="pretalx" version="2023.2.0.dev0" />
<version>0.8</version>
<conference>
<title>FOSSGIS-Konferenz 2024</title>
<acronym>fossgis2024</acronym>
<start>2024-03-20</start>
<end>2024-03-23</end>
@johnjohndoe
johnjohndoe / schedule.xml
Created February 14, 2024 20:46
FOSSGIS 2024 / schedule.xml without track nodes
<?xml version='1.0' encoding='utf-8' ?>
<!-- Made with love by pretalx v2023.2.0.dev0. -->
<schedule>
<generator name="pretalx" version="2023.2.0.dev0" />
<version>0.8</version>
<conference>
<title>FOSSGIS-Konferenz 2024</title>
<acronym>fossgis2024</acronym>
<start>2024-03-20</start>
<end>2024-03-23</end>
@johnjohndoe
johnjohndoe / gist:7abb3f5ff4e5cc11b45222be3a04e93f
Created January 16, 2024 21:44
37C3 / schedule.xml without rooms and events
<?xml version="1.0"?>
<schedule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://c3voc.de/schedule/schema.xsd">
<version>2024-01-16 22:13</version>
<conference>
<acronym>37c3</acronym>
<title>37th Chaos Communication Congress</title>
<start>2023-12-27T07:30:00+00:00</start>
<end>2023-12-31T04:59:00+00:00</end>
<days>4</days>
<timeslot_duration>00:10</timeslot_duration>
@johnjohndoe
johnjohndoe / schedule.xml
Created January 16, 2024 21:41
37C3 / schedule.xml without days
<?xml version="1.0"?>
<schedule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://c3voc.de/schedule/schema.xsd">
<version>2024-01-16 22:13</version>
<conference>
<acronym>37c3</acronym>
<title>37th Chaos Communication Congress</title>
<start>2023-12-27T07:30:00+00:00</start>
<end>2023-12-31T04:59:00+00:00</end>
<days>4</days>
<timeslot_duration>00:10</timeslot_duration>
This file has been truncated, but you can view the full file.
<?xml version="1.0"?>
<schedule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://c3voc.de/schedule/schema.xsd">
<version>2024-01-14 00:15</version>
<conference>
<acronym>37c3</acronym>
<title>37th Chaos Communication Congress</title>
<start>2023-12-27T07:30:00+00:00</start>
<end>2023-12-31T04:59:00+00:00</end>
<days>4</days>
<timeslot_duration>00:10</timeslot_duration>
@johnjohndoe
johnjohndoe / pre-commit.sh
Created November 6, 2012 11:48
Git pre-commit hook to add a new line at the end of a file and remove trailing whitespaces
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# Usage:
# Remove the .sh file extension when you put the script in your hooks folder!
#
@johnjohndoe
johnjohndoe / rehruecken-rezept.md
Last active December 25, 2023 20:11
Rezept Rehrücken

Rehrücken

Am Tag zuvor

  1. Silberhaut mit scharfen Messer entfernen
  2. an der Wirbelsäule entlang einschneiden, damit später besser trennbar
  3. Filetstücke austrennen
  4. mit Kräutern (Oregano, Salbei, Thymian), Sellerie, Knoblauch, trockenem Rotwein einlegen
  5. mit Klarsichtfolie abdecken und über Nacht in den Kühlschrank

Vorbereitung

@johnjohndoe
johnjohndoe / .gitignore
Created January 3, 2011 18:04
A git log alias with colors, date and owner.
# A git log alias.
# Shows the brief log describtion in one line.
# Adds colors, a relative date and the owner.
# File name: .gitconfig
[alias]
look = log --graph --pretty=format:'%Cred %h : %Creset%s %Cgreen(%cr) %C(blue)<%an>%C(yellow)%d %Creset' --date=relative