Skip to content

Instantly share code, notes, and snippets.

View marcopaganini's full-sized avatar
💭
🚫 ⏲️ 4️⃣ 🐂 💩

Marco Paganini marcopaganini

💭
🚫 ⏲️ 4️⃣ 🐂 💩
View GitHub Profile
@marcopaganini
marcopaganini / ipv6-comcast.md
Created January 19, 2024 21:29
Quick debian guide for IPv6 on Comcast

IPv6 on Comcast

WAN (eth0) configuration using wide-dhcpv6

This component does a few important things:

  • Retrieves an IPv6 address (from comcast) for our external interfaces (Using IA).

  • Retrieves a prefix from comcast using Prefix Discovery (PD). By default, comcast will send a /64 prefix, which is only good for one host (we need more

@marcopaganini
marcopaganini / how-to-remove-git-crypt.md
Last active October 17, 2023 16:46
How to remove git-crypt from your repo (maintaining history).

How to remove git-crypt and maintain your history

I've been successfully using git-crypt to provide provide partial encryption to some of my repos. It's a great program and I'd definitely recommend it for your git repository encryption needs.

However, while installation is quite simple, I couldn't find good instructions on how to uninstall git-crypt and maintain history intact.

This guide provides simple instructions on how to accomplish that. In the end,

@marcopaganini
marcopaganini / symantec-vip-access-totp.md
Created September 30, 2023 23:08 — forked from jarbro/symantec-vip-access-totp.md
Generate Symantec VIP Access Token as TOTP

Generate Symantec VIP Access Token as OTP

Recently I came across a web service that required two-factor authentication using the Symantec VIP Access App. I already manage all of my OTP tokens in a different app (If you are on iOS I highly recommend using OTP Auth by Roland Moers.) and did not want to have to use yet another app to generate the TOTP.

There is a way to generate a Symantec VIP Access compatible token very easily if you have access to an environment which can run Python PIP. I happen to have Ubuntu Windows Subsystem Linux running on my machine. (If you are running Windows 10 and don't have this you should really check it out.) Let's get started...

hello

Instructions

Here we install python3-pip and qrencode so we can generate our secret, I

@marcopaganini
marcopaganini / zfsroot.md
Created September 1, 2023 20:15
Debian (bookworm) ZFS on root.
@marcopaganini
marcopaganini / como_perder_tempo_e_dinheiro.md
Last active February 5, 2023 04:23
Como perder tempo e dinheiro

Como perder tempo e dinheiro

Esse é um guia rápido para aqueles interessados em uma carreira na área de programação, que ensina como perder bastante tempo e ganhar pouco ou nenhum dinheiro. Se aplicado corretamente, também resultará em dificuldades ao tentar conseguir emprego.

Apresente-se e comunique-se da pior forma possível

Escolha o pior username, email ou avatar que conseguir encontrar. "Hacker names" (ainda melhor se forem de séries de TV) ou com tons agressivos rendem bons resultados. Como avatar, use figuras infantis ou sugestivas. Bônus pra quem escrever o nome usando apenas caracteres unicode obscuros, ou qualquer outro username impronunciável. Ao se comunicar, não procure ouvir e sempre fale antes. Evite ler, pois isso irá melhorar o seu português! Quanto mais erros crassos de português, melhor. Abrevie tudo, especialmente quando não houver necessidade. Ao pedir ajuda, não explique o problema e assuma que os outros conseguem ler a sua mente. Se possível, desista da ajuda imediatamente *depoi

@marcopaganini
marcopaganini / lottery.md
Created January 12, 2023 20:26
# You won the lottery, now what?

You won the lottery, now what?

Congratulations! You just won millions of dollars in the lottery! That's great.

Now you're fucked.

No really.

You are.

@marcopaganini
marcopaganini / .tmux.conf
Created July 4, 2021 03:47
My tmux.conf file supporting truecolor terminals and many other hacks.
# tmux configuration file.
# Save as $HOME/.tmux.conf
# Marco Paganini <paganini@paganini.net>
#
# Useful command:
# tmux new -D -A -s session_name
#
# This will create a new session if the specified session does not
# exist. If it does, it will detach that session and attach to it.
# Useful configuration for your ~/.inputrc.
# Just drop this file into your home directory.
# Author: paganini@paganini.net (http://github.com/marcopaganini)
# vi mode FTW. Use <ESC> to enter.
set editing-mode vi
# Show mode in prompt when in command mode.
set show-mode-in-prompt on
set vi-ins-mode-string ""
@marcopaganini
marcopaganini / gitreset.md
Created September 13, 2020 02:24
Git reset and squash only upstreams

Nota: explicação longa a frente...

O problema não é usar o mesmo branch. O problema é que você não está resetando o branch antes (pra ficar igual ao upstream/master) antes de começar um novo desafio.

Vamos a um exemplo prático: imagine que você faça o clone do osprogramadores/op-desafios (upstream), e que existam apenas dois commits lá:

002 Desafio de outro alguém
001 Desafio de alguém

Keybase proof

I hereby claim:

  • I am marcopaganini on github.
  • I am paganini (https://keybase.io/paganini) on keybase.
  • I have a public key whose fingerprint is 437E 0C7E E028 A481 FE4E 2210 AA32 3DF2 B40C D0A9

To claim this, I am signing this object: