Skip to content

Instantly share code, notes, and snippets.

View BeardOverflow's full-sized avatar

José Ángel Pastrana BeardOverflow

View GitHub Profile
@BeardOverflow
BeardOverflow / tpm-boot.sh
Last active March 26, 2026 13:41
Manual handling for the automatic disk decryption on boot using TPM device and clevis
#!/bin/su root
# https://uapi-group.org/specifications/specs/linux_tpm_pcr_registry/
# apt install --update clevis-initramfs clevis-tpm2 clevis-luks jq
# On first time:
# ./tpm-boot.sh setup
# ./tpm-boot.sh enable
# On kernel updates:
@BeardOverflow
BeardOverflow / netbeans.conf
Last active June 5, 2024 07:15
My NetBeans 21 configuration file: OpenJDK 21, Global Theme (Dark Metal), Editor Theme (Norway Today), Editor Font (Hack 18), Menu Font Size (14), Tab Placement (Right), Explorer Placement (Float right), Navigator Placement (Float right), Output Placement (Float bottom), Notification Placement (Float bottom), Search Result Placement (Float botttom)
#
# This file is located at:
#
# ${HOME}/.netbeans/21/etc/netbeans.conf
#
# --> My NetBeans configuration file <--
#
# - Tested on NetBeans 21 with Java 21
# - Windows maximized at startup
# - Global theme: Dark Metal
#!/usr/bin/python3 -u
# -*- coding: utf-8 -*-
# Author: José Ángel Pastrana Padilla
# Email: japp0005@red.ujaen.es
import base64, json, requests, string, sys, random, time
from python_anticaptcha import AnticaptchaClient, ImageToTextTask
from io import BytesIO
# https://telepizza-raffle-web.s3-eu-west-1.amazonaws.com/data.json
@BeardOverflow
BeardOverflow / dominos.py
Last active June 30, 2019 11:29
Getting promo codes for Domino's pizza
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: José Ángel Pastrana Padilla
# Email: japp0005@red.ujaen.es
# More info: https://www.chollometro.com/ofertas/pizza-gratis-a-recoger-en-dominos-174528
import collections
import json
import random
@BeardOverflow
BeardOverflow / pizzas.py
Last active June 26, 2019 18:31
Getting promo codes for telepizza
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: José Ángel Pastrana Padilla
# Email: japp0005@red.ujaen.es
import json
import requests
import string
import sys
import random