Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kleo on github.
  • I am kleobercero (https://keybase.io/kleobercero) on keybase.
  • I have a public key whose fingerprint is E782 C03A 50C5 F2D3 5DFD F487 E48E F288 AE6D B685

To claim this, I am signing this object:

<?php
echo gzinflate( base64_decode( <base64> ));
?>
@kleo
kleo / a4tech-op-720-device-id.txt
Created May 19, 2023 06:50
A4Tech OP-720 Device ID
# A4Tech OP-720 Device ID
Bus 001 Device 039: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
@kleo
kleo / gist:7ab80336b805f7ac1b9cbeda2f6c486a
Created January 10, 2023 08:48
Docker get a list of created networks' IP addresses (IP range of subnets) https://stackoverflow.com/a/60105387/10025507
docker network inspect $(docker network ls | awk '$3 == "bridge" { print $1}') | jq -r '.[] | .Name + " " + .IPAM.Config[0].Subnet' -
// fix systemd-boot menu
// on bios update removed boot entries
// boot archlinux install usb
# cryptsetup luksOpen /dev/nvme1n1p2 foo
# mount /dev/mapper/foo /mnt -o subvol=@
# mount /dev/nvme1n1p1 /mnt/boot
# arch-chroot /mnt
# bootctl install
@kleo
kleo / brother-dcpt310.txt
Last active August 13, 2023 14:09
Brother DCP-T310 printer install on Arch Linux notes
# Brother DCP-T310 printer install on Arch Linux notes
# install cups
yay -S cups
sudo systemctl enable cups.service
sudo systemctl start cups.service
sudo systemctl enable cups.socket
sudo systemctl start cups.socket
@kleo
kleo / btrfs-guide.md
Created May 23, 2022 17:37 — forked from MaxXor/btrfs-guide.md
Btrfs guide to set up an LUKS-encrypted btrfs raid volume with included maintenance & recovery guide

Encrypted Btrfs storage setup and maintenance guide

Initial setup with LUKS/dm-crypt

This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.

Create keyfile:

dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey
@kleo
kleo / gist:d966c52e782862fad88f012c8cd3cb68
Created March 24, 2022 17:00
Strip metadata example.pdf and re-linearise
# https://exiftool.org/forum/index.php?topic=3943.msg54704#msg54704
exiftool -all= -overwrite_original example.pdf
mv example.pdf temp.pdf
qpdf --linearize temp.pdf example.pdf

generate keys for github actions rsync

on remote host

ssh-keygen -t rsa -b 4096 -N "" -f github-actions

cat github-actions.pub >> ~/.ssh/authorized_keys

on github repository