Skip to content

Instantly share code, notes, and snippets.

@igormp
igormp / RenewExpiredGPGkey.md
Created March 29, 2024 18:50 — forked from TheSherlockHomie/RenewExpiredGPGkey.md
Updating expired GPG keys and backing them up 🔑🔐💻

Updating expired GPG keys and their backup 🔑🔐💻

I use a GPG key to sign my git commits.

An error like this one might be a sign of an expired GPG key.

error: gpg failed to sign the data fatal: failed to write commit object
@igormp
igormp / m2proM2AdvancedCiderXtensions.txt
Created January 2, 2024 06:34
M2 Pro 10C AdvancedCiderXtensions
[2, 3, 4, 8, 9, 10, 16, 27, 32, 64, 81, 100, 128, 243, 256, 512, 729, 1000, 1024, 2048, 2187, 4096, 6561, 8192, 10000, 16384, 19683]
[0.00010403662089055348, 0.0019285714285714286, 0.012047058823529412, 0.0271856001274325, 0.243, 0.10344470880314471, 0.28660392541020885, 1.4949303155736149, 2.14872131147541, 2.479395435500194, 13.149109893236673, 8.744774996939329, 12.194197564244575, 16.517915821282106, 29.34683021755767, 22.95759204958048, 28.848377958398654, 54.08267840787193, 56.856861212602595, 151.27496474399155, 259.912128142689, 346.1884240157776, 406.0731149638972, 513.4355341270299, 556.9969204684636, 566.3726277771995, 474.1117162590251]
2023,Macbook Pro 14", Apple M2 Pro 10C, 32 GBs
@igormp
igormp / steam-hijack-save.md
Created November 11, 2023 19:12
Original idea for steam lancache hijacking

Sim, por padrão o pihole instala o lighttpd (da pra fazer nos outros servers eu acho mas n sei específicos).

No painel web em Local DNS você precisa apontar lancache.steamcontent.com pro ip do pihole (IPv4 e v6).

Depois por SSH adicionar essas linhas em /etc/lighttpd/external.conf

url.redirect = (
  "^/depot/(.*)" => "http://steampipe.akamaized.net/depot/$1"
)
@igormp
igormp / rustup-update.hook
Created April 15, 2018 05:27
Runs rustup update after each pacman -Syu
[Trigger]
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Updating rust components...
When = PostTransaction
Depends = rustup
# Be sure to replace $INSERTYOURUSERHERE the actual name of the current user whose toolchain should be updated

Keybase proof

I hereby claim:

  • I am igormp on github.
  • I am igormp (https://keybase.io/igormp) on keybase.
  • I have a public key whose fingerprint is 1FD3 7167 F696 A079 04B8 EA71 74AA 7509 D76A A6BF

To claim this, I am signing this object: