Skip to content

Instantly share code, notes, and snippets.

View aeris's full-sized avatar

aeris aeris

View GitHub Profile
aeris / mastodon-sidekiq-log-parser.rb
Created June 10, 2023 15:15
Mastodon Sidekiq parse error
#!/usr/bin/env ruby
require 'amazing_print'
ignores = [
/:in `/,
/Job raised exception/,
/WARN: Your Redis network connection is performing extremely poorly/,
/WARN: Mastodon::RaceConditionError/,
/Last RTT readings were/,
/If these values are close to/,
aeris / preseed.cfg
Created March 19, 2020 15:31
Automated installer from ISO image for Debian
# Licence: GPLv3
d-i debian-installer/locale string fr_FR
d-i localechooser/supported-locales string fr_FR.UTF-8
d-i keyboard-configuration/xkb-keymap select fr(latin9)
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string dev
d-i netcfg/get_domain
d-i netcfg/hostname string dev
aeris / migrate.rb
Created October 14, 2018 15:42
Migrate PrivateBin from filesystem to PostgreSQL
#!/usr/bin/env ruby
require 'awesome_print'
require 'pg'
require 'json'
con = PG.connect host: 'localhost', user: 'postgres', password: 'postgres', dbname: 'privatebin'
files = Dir['**/*.php'].sort
con.exec 'TRUNCATE TABLE paste'
aeris / death-letter-en.txt
Last active October 4, 2023 10:19
GDPR death letter
Dear Sir/Madam:
I am writing to you in your capacity as data protection officer for your
company. In light of recent spam received on this email address,
I am making this request for access to personal data
pursuant to Article 15 of the General Data Protection Regulation.
I am concerned that your company’s information practices may be putting my
personal information at undue risk of exposure or in fact has breached its
obligation to safeguard my personal information.
aeris / death_letter.tex
Created August 9, 2018 10:00
Lettre de la mort GDPR
[42] pry(main)> f = { [] }
=> {}
[43] pry(main)> f[:foo] << :bar
=> [:bar]
[44] pry(main)> f
=> {}
[45] pry(main)> f.keys
=> []
[46] pry(main)> f[:bar]
=> []
aeris / .env
Created April 16, 2018 07:41
aeris / dice.ino
Last active February 18, 2018 20:41
Arduino dice (based on HelioxLab work :
// Pour les LED
#define LED_PIN_1 2
#define LED_PIN_2 3
#define LED_PIN_3 4
#define LED_PIN_4 5
// Pour le capteur d’inclinaison
#define BUTTON_PIN 6
aeris / kitten.ino
Last active February 17, 2018 00:17
Kitten laser tower
// License: AGPLv3
#include <Servo.h>
#define MIN_DURATION 200
#define MAX_DURATION 500
#define MIN_FREEZE 100
#define MAX_FREEZE 200
#define LASER_PIN 9
class PanTilt {
aeris / gpgit-rspamc-learn
Last active November 4, 2017 11:08
rspamc spam learn with gpgit encrypted email
#!/usr/bin/env ruby
# License AGPLv3 (
IMAPS_USER = 'xxx'
KWALLET_APP = 'gpgit-rspamc-learn'
require 'awesome_print'
require 'net/imap'