Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python3
import os
import serial
import re
import socket
import sys
serial = serial.Serial('/dev/tty_fosdem_box_ctl', 115200, timeout=1, exclusive=True)
vasil@kvothe:~/openfest/2025/cut$ cat cut.sh
#!/bin/bash
if [ -z "$1" ]; then
echo usage: $0 tsfile cutfile
exit 1
fi
name="$1"
fname=`basename "$1"`
udd=> select date_trunc('year', date) as dt, count(distinct changed_by) from upload_history group by dt order by dt;
dt | count
------------------------+-------
1998-01-01 00:00:00+00 | 0
1999-01-01 00:00:00+00 | 0
2000-01-01 00:00:00+00 | 290
2001-01-01 00:00:00+00 | 1101
2002-01-01 00:00:00+00 | 1163
2003-01-01 00:00:00+00 | 1227
2004-01-01 00:00:00+00 | 1372
# See 'doc/actions.md' for description of available actions which
# may be assigned to keys. Comments here describe only configuration
# file format itself.
# Normal keyboard orientation is when
# buttons are on the left side and knobs are on the right.
# However, you may want to use the keyboard in another orientation.
# To avoid remapping button positions in your head, just set it here.
# Possible values are:
# (horizontal)
root@marla:~/acme-tiny# cat renew-all.sh
#!/bin/bash
cd /root/acme-tiny || exit 4
for i in `find /etc/apache2/sites/ -type f`; do
bash process.sh $i
done
bash initlab.sh
/etc/init.d/apache2 reload
for i in `find /etc/nginx/sites-enabled/ -type l`; do
#!/usr/bin/env python
# coding=utf-8
import time
from lifxlan import LifxLAN
from subprocess import Popen, PIPE
import json
import sys
import re
import requests
#! /bin/bash
if [ -z "$2" ]; then
echo usage: $0 cam pres
exit 2
fi
ffmpeg -y -loglevel verbose \
-i "$1" -map '0:v0' \
-i "$2" -map '0:v1' \
diff --git a/instructions/sources/FOSDEM_AV_manual.tex b/instructions/sources/FOSDEM_AV_manual.tex
index e91d52d..d83adc3 100644
--- a/instructions/sources/FOSDEM_AV_manual.tex
+++ b/instructions/sources/FOSDEM_AV_manual.tex
@@ -142,13 +142,13 @@ If you are volunteering for video inside a devroom, please:
Please do \emph{NOT} disconnect or turn off any equipment yourself. That is the task of the per building team only.
\section{Rooms}
-We have 24 rooms: 12 small, 6 large and 6 extra large rooms. Each type of room has a different audio/video setup.
+We have 27 rooms: 12 small, 6 large and 6 extra large rooms. Each type of room has a different audio/video setup.
@krokodilerian
krokodilerian / cqsched.py
Created April 3, 2018 13:50
influx cq scheduler
#!/usr/bin/python
from glob import glob
from os import rename, unlink, getpid
from os.path import basename
from hashlib import md5
from time import sleep, time
from multiprocessing import Pool
import json
#!/bin/sh
confdir="`dirname "$0"`/../"
. $confdir/default-config.sh
if [ -f $confdir/config.sh ]; then
. $confdir/config.sh
fi
# should come from config
URL=udp://227.0.0.2:9000