Skip to content

Instantly share code, notes, and snippets.

@maxidorius
maxidorius / notes.md
Last active November 16, 2023 00:05
Notes on privacy and data collection of Matrix.org

Notes on privacy and data collection of Matrix.org


This version of the document is no longer canonical. You can find the canonical version hosted at Gitlab and Github.

PART 2 IS OUT, INCLUDING THE DISCLOSURE OF A GLOBAL FEDERATION DATA LEAK, AND THE ANATOMY OF A GDPR DATA REQUEST HANDLED BY MATRIX.ORG. SEE THE REPOS ABOVE.

@ingshtrom
ingshtrom / haproxy.log
Created January 30, 2019 14:40
haproxy but report docs
"_messagetimems","_messagetime","container_name","message"
"1548793228554","01/29/2019 15:20:28.554 -0500","k8s_haproxy_haproxy-router-d5csc_routing-external-default_23340a5e-23c6-11e9-a7e5-0242ac11000b_59","7ffd6cfef000-7ffd6cff1000 r-xp 00000000 00:00 0 [vdso]"
"1548793228554","01/29/2019 15:20:28.554 -0500","k8s_haproxy_haproxy-router-d5csc_routing-external-default_23340a5e-23c6-11e9-a7e5-0242ac11000b_59","ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]"
"1548793228550","01/29/2019 15:20:28.550 -0500","k8s_haproxy_haproxy-router-d5csc_routing-external-default_23340a5e-23c6-11e9-a7e5-0242ac11000b_59","7ffd6cfec000-7ffd6cfef000 r--p 00000000 00:00 0 [vvar]"
"1548793228549","01/29/2019 15:20:28.549 -0500","k8s_haproxy_haproxy-router-d5csc_routing-external-default_23340a5e-23c6-11e9-a7e5-0242ac11000b_59","7f99cb65a000-7f99cb65b000 rw-p 00024000 ca:10 534226 /lib/x86_64-linux-gnu/ld-2.24.so"
"1548793228549"
@robbat2
robbat2 / 00-haproxy.cfg
Created December 9, 2018 08:25
rsync haproxy frontend with ratelimiting & deny, uses haproxy-lua
# This is a very very minimal rsync config that gives ratelimit and ban messages
global
lua-load 01-deny-rsync.lua
frontend fe_rsync
mode tcp
bind *:9873
tcp-request content set-var(txn.rsync_deny_message) str("") # Start empty
# Track the backend state
@klingtnet
klingtnet / how-to-upgrade-nvmw-ssd-firmware-on-linux.md
Last active January 25, 2025 23:19
How to upgrade [Lenovo] NVMe SSD firmware on Linux

The instructions were tested on a Lenovo X1 Carbon 5th Gen (X1C5) on Arch Linux but should be applicable to other Lenovo models and Linux distributions.

BACKUP YOUR DATA! I created a bootable Ubuntu Image like this:

$ sudo sh -c 'curl --location --silent --fail "http://releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.iso" | pv > /dev/<your-usb-drive>'
# note that pv is only there to show progress, it is perfectly fine to redirect curl to the usb drive directly.

then I booted from this drive by pressing F12 on reboot and dumped my NVMe disk to an external hard drive like this:

@feklee
feklee / README.md
Last active February 12, 2024 20:50
GnuPG on Termux for accessing USB smart card reader

Prerequisites

  • smart card reader supported by GnuPG

    I use [0.332][4], a mod of the [SCM332 V2][1] which is comparatively light and small. Previously, I was simply using the SCM332 V2 directly with an OTG adapter.

  • root access from Termux

#!/usr/bin/env bash
LINKS="https://petsymposium.org/2018/files/papers/issue4/popets-2018-0035.pdf,https://petsymposium.org/2018/files/papers/issue4/popets-2018-0033.pdf,https://petsymposium.org/2018/files/papers/issue4/popets-2018-0031.pdf,https://petsymposium.org/2018/files/papers/issue1/paper42-2018-1-source.pdf,https://petsymposium.org/2018/files/papers/issue3/popets-2018-0021.pdf,https://petsymposium.org/2018/files/papers/issue4/popets-2018-0029.pdf,https://petsymposium.org/2018/files/papers/issue3/popets-2018-0020.pdf,https://petsymposium.org/2018/files/papers/issue3/popets-2018-0026.pdf,https://petsymposium.org/2018/files/papers/issue4/popets-2018-0039.pdf,https://petsymposium.org/2018/files/papers/issue1/paper12-2018-1-source.pdf,https://petsymposium.org/2018/files/papers/issue3/popets-2018-0027.pdf,https://petsymposium.org/2018/files/papers/issue4/popets-2018-0037.pdf,https://petsymposium.org/2018/files/papers/issue3/popets-2018-0024.pdf,https://petsymposium.org/2018/files/papers/issue4/popets-2018-0
@benjamin-thomas
benjamin-thomas / my_pass.sh
Created January 20, 2018 11:31
WIP : bypass XFCE clipboard manager when using pass/passwordstore.org
#!/bin/bash
# Load the bash completion first
# my_pass.sh needs to be on the load path
# complete -F _pass mypass.sh
pgrep clipman
if [[ $? -ne 0 ]];then
# clipman not running...
#!/bin/bash
# watch your irssi fnotify file for new messages to notify you of...
# Copyright (C) 2012-2013 James Shubin
# Written by James Shubin <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
use strict;
use vars qw($VERSION %IRSSI);
#use Data::Dumper;
#local $Data::Dumper::Terse = 1;
use Irssi;
$VERSION = '0.0.4';
%IRSSI = (
name => 'fnotify',
authors => 'James Shubin',
@kousu
kousu / .procmailrc
Created December 17, 2017 19:43
procmail snippet for auto-binning / auto-filtering mailing lists
# mailing lists
#
# This automatically sorts mail from mailing lists into folders named after the list
# [email protected] will go into your IMAP Lists/misc folder
# [email protected] will go into Lists/fanciness
# (if you need more specific rules, you can tweak or add a rule for your specific lists *ahead* of this rule)
#
# Now, procmail doesn't(?) have capturing groups, closest it has a capturing \/,
# which grabs everything from itself *to the end* of the line* of the match
# (thanks https://serverfault.com/questions/660159/procmail-recipe-with-capturing-group/660571);