Skip to content

Instantly share code, notes, and snippets.

@kleo
kleo / gpg_git_signing.md
Created September 10, 2024 17:07 — forked from alopresto/gpg_git_signing.md
Steps to enable GPG signing of git commits.

If anyone is interested in setting up their system to automatically (or manually) sign their git commits with their GPG key, here are the steps:

  1. Generate and add your key to GitHub
  2. $ git config --global commit.gpgsign true ([OPTIONAL] every commit will now be signed)
  3. $ git config --global user.signingkey ABCDEF01 (where ABCDEF01 is the fingerprint of the key to use)
  4. $ git config --global alias.logs "log --show-signature" (now available as $ git logs)
  5. $ git config --global alias.cis "commit -S" (optional if global signing is false)
  6. $ echo "Some content" >> example.txt
  7. $ git add example.txt
  8. $ git cis -m "This commit is signed by a GPG key." (regular commit will work if global signing is enabled)
@kleo
kleo / readme.md
Last active July 29, 2024 16:47
enable and disable phantom process killer via adb
chmod 000: HTTP 500
chmod 001: HTTP 500
chmod 002: HTTP 500
chmod 003: HTTP 500
chmod 004: HTTP 500
chmod 005: HTTP 500
chmod 006: HTTP 500
chmod 007: HTTP 200
chmod 010: HTTP 500
chmod 011: HTTP 500

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