Skip to content

Instantly share code, notes, and snippets.

View johnjohndoe's full-sized avatar

Tobias Preuss johnjohndoe

View GitHub Profile
@johnjohndoe
johnjohndoe / listrooms.json
Created January 15, 2025 10:30
FOSDEM room states / real response
[
{
"id": "72",
"roominfo": "H.2213",
"roomname": "H.2213",
"state": "2"
},
{
"id": "70",
"roominfo": "H.1308 (Rolin)",
@johnjohndoe
johnjohndoe / rooms.json
Created November 15, 2024 10:31
FOSDEM room states / sample response
[
{
"roomname": "Room A",
"state": 0
},
{
"roomname": "Room B",
"state": 1
},
{
@johnjohndoe
johnjohndoe / ffmpeg-scale-video.md
Last active August 5, 2024 10:11
Resize / scale a video with FFmpeg

Resize / scale a video with FFmpeg

  • Scale the input.mp4 to a height of 600px.
  • Let FFmpeg choose a number which is divisible by 2 to avoid the not divisible by 2 error.
ffmpeg -i input.mp4 -vf scale=-2:600,setsar=1 ouput.mp4

Related

@johnjohndoe
johnjohndoe / vcard-split.py
Last active June 11, 2024 08:34 — forked from umrashrf/vcard-split.py
Python script to split Google contacts into individual VCF files.
#!/usr/bin/python
#split vcf files
import re
working_dir = '/home/umair/Documents/Contacts/'
input_file = 'contacts starred 26-06-2014.vcf'
output_seed = 'contacts-part-'
vcards_per_file = 1
@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>