I hereby claim:
- I am maakuth on github.
- I am maakuth (https://keybase.io/maakuth) on keybase.
- I have a public key ASDar8sqDv1PSDPWqzg6lderRehi3yacdrhe7HqOgtnDWwo
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
# Use with kcat -f "%p,%o,%T\n" to parse message timestamps | |
from sys import argv | |
from datetime import datetime | |
import csv | |
for row in csv.reader(open(argv[1], 'r'), delimiter=','): | |
print(f"Partition {row[0]} offset {row[1]}: {datetime.fromtimestamp(int(row[2])/1000)}") |
#!/usr/bin/env python3 | |
""" | |
Yksinkertainen Long Playn epubien noutovempele. | |
Tarvitaan Python, Selenium, Firefox ja Geckodriver | |
Testatut versiot: | |
- Python 3.11.2 | |
- Selenium 4.8.3 | |
- Geckodriver 0.32.2 (https://github.com/mozilla/geckodriver) | |
- Firefox 111.0.1 |
#Note: This is backed by degraded md-raid6 PV | |
Using uid:1000, gid:1000. | |
Writing a byte at a time...done | |
Writing intelligently...done | |
Rewriting...done | |
Reading a byte at a time...done | |
Reading intelligently...done | |
start 'em...done...done...done...done...done... | |
Create files in sequential order...done. | |
Stat files in sequential order...done. |
#!/usr/bin/env ruby | |
require 'csv' | |
require 'zip' | |
require 'pp' | |
Zip.force_entry_names_encoding = 'ISO-8859-1' | |
entries = [] |
#!/usr/bin/env ruby | |
rooms = `sudo -u postgres psql synapse -t -c "select room_id from rooms;"`.split("\n") | |
rooms.reject! {|r| r.strip == "" } | |
rooms.each_with_index do |r, i| | |
`./synapse-compress-state -p 'postgresql://USERNAME:PASSWORD@HOSTNAME/DBNAME' -r '#{r.strip}' -o out#{i}.sql -t` | |
end |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
. /etc/environment | |
lvcreate -l90%FREE -s -n rootsnap /dev/host/root | |
#XFS specific: Mounting ignoring uuid because the original volume has same uuid | |
mount -o ro,nouuid /dev/host/rootsnap /mnt/rootsnap | |
mount /backuptarget |
sed -e "s_\(..\)\/\(..\)\/\(..\)_20\3-\2-\1_" |
#!/bin/sh | |
if [ $# -eq 0 ] | |
then | |
echo "Usage $0 img1.png img2.tif img3.pdf" | |
echo "Requires ghostscript, imagemagick" | |
fi | |
for file in "$@" | |
do |
#!/bin/bash -e | |
# | |
# Printing made easy for your Linux laptop in the University of Jyväskylä. | |
# Public domain. Original work by Zouppen and cedx. | |
# | |
# Before using, send your public key to charra (to avoid password prompt) | |
# and put the following in your ~/.ssh/config: | |
# | |
# Host charra | |
# User YOUR_USERNAME |