Skip to content

Instantly share code, notes, and snippets.

@aschiavon91
aschiavon91 / nvidia-suspend-fix.md
Created August 12, 2025 19:02
Pop!_OS 24.04 nvidia suspend fix

Install 575 driver version

sudo apt install nvidia-driver-575-open

Configure Nvidia power management

echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp" | sudo tee /etc/modprobe.d/nvidia-power-management.conf
@aschiavon91
aschiavon91 / popos+win11_secureboot.md
Last active August 13, 2025 20:26
Dual‑Boot Pop!_OS 24.04 + Windows 11 with SecureBoot
  • Enable SecureBoot with default options.
  • Wait for Windows installation normally.
  • After windows setup finishes, enter in BIOS and complettly disable secure boot.
  • cleanup all SecureBoot keys from BIOS, disable plataform key injection and then disable SecureBoot, be sure all keys are delete before continue.
  • Install PopOS normally.
  • After PopOS setup finishes, ensure that the boot order in bios is setted to firstly boot to the disk used to install PopOS not to the system partition.
  • Boot into PopOS and install/reinstall shim-signed, mokutil and sbctl.
  • check sbctl status, u should see something like:
    # sbctl status
@aschiavon91
aschiavon91 / script.py
Last active October 12, 2024 14:08
extract questions and answers in python
#!pip install markdownify
#!pip install beautifulsoup4
from os import listdir, remove, makedirs, path
from bs4 import BeautifulSoup
import shutil
from markdownify import MarkdownConverter
from datetime import datetime
HTML_PATH = "./htmls"
@aschiavon91
aschiavon91 / livetheride
Last active August 30, 2023 14:28
stncltr
KWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+IjUpZD4qWDQjL2xPNCJyYE1EJzBkJTBQcWI1MUg3SE80InJgTTQidExvKWQ+
@aschiavon91
aschiavon91 / search-jdlg.sh
Created June 29, 2023 19:06
[shell] jadlog search last update
# Get last jadlog update in shell
# put in your ~/.bashrc or ~/.zshrc
# usage: jadlog <tracking_number>
# ex: jadlog 00000000000000
jadlog() {
local URL=https://www.jadlog.com.br/siteInstitucional/tracking_dev.jad?cte=$1
curl -s $URL \
| htmlq '#j_idt2_data > tr:last-child > td > span' -t \
| tr '\n' ' ' \
@aschiavon91
aschiavon91 / free_email_provider_domains.txt
Created September 10, 2022 00:21 — forked from okutbay/free_email_provider_domains.txt
Most complete list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created. I also use this list in my free link shortener service https://www.cut.lu and some day i want to release an API for rela…
This file has been truncated, but you can view the full file.
0-00.usa.cc
0-180.com
0-30-24.com
0-420.com
0-900.com
0-aa.com
0-mail.com
0-z.xyz
0.pl
00.pe
@aschiavon91
aschiavon91 / run.exs
Last active March 11, 2022 19:03
Elixir random game number generator
defmodule MegaGen do
@min_choice 1
@max_choice 60
@valid_choices @min_choice..@max_choice
@total_choices 6
defguard game_complete(total_choices, acc) when map_size(acc.map) == total_choices
def min_choice, do: @min_choice
def max_choice, do: @max_choice
@aschiavon91
aschiavon91 / README.md
Created February 18, 2022 14:27
Delete priv keys from git history

Install BFG

cd /usr/local/bin
wget https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar -O bfg-latest.jar
echo -e "java -jar /usr/local/bin/bfg-latest.jar \$@" | sudo tee /usr/local/bin/bfg

Delete Keys

bfg --delete-files key_priv.pem .git
@aschiavon91
aschiavon91 / tilix cfg
Created February 15, 2022 13:05
tilix hyperlink files to open in vscode
regex: ([a-zA-Z0-9\/\_\-\.\]+\.?[a-zA-Z0-9]+)\:([0-9]+)
command: code -g $1:$2
@aschiavon91
aschiavon91 / rot.ex
Created July 22, 2021 13:05
ROT in elixir
defmodule RotationalCipher do
@doc """
Given a plaintext and amount to shift by, return a rotated string.
Example:
iex> RotationalCipher.rotate("Attack at dawn", 13)
"Nggnpx ng qnja"
"""
@lower_start ?a
@lower_end ?z