Skip to content

Instantly share code, notes, and snippets.

View yordanoweb's full-sized avatar
💭
I may be slow to respond.

Yordano Pascual Rivera yordanoweb

💭
I may be slow to respond.
  • Freelancer
  • Las Tunas, Cuba
View GitHub Profile
@yordanoweb
yordanoweb / handle_supabase_roles.md
Created March 11, 2026 12:31
Handle Supabase Roles

Handle Supabase Roles

Add admin role to user

UPDATE auth.users
SET raw_app_meta_data = raw_app_meta_data || '{"role": "admin"}'::jsonb
WHERE email = 'user@mail.com';
@yordanoweb
yordanoweb / fix_dm_verity_error.md
Created March 3, 2026 15:54
Fix DM Verity Error

Fix DM Verity Error

Not for all phones, but some Redmi.

Requirements

  • Linux (Debian, Ubuntu, ArchLinux, etc...).
  • The package android-tools or Linux distribution equivalent.

Steps

@yordanoweb
yordanoweb / capture_screen_region_ffmpeg.md
Created February 3, 2026 16:59
Capture a Screen Region with ffmpeg

Capture a Screen Region with ffmpeg

Install the package slop for calculating the rectangle.

sudo apt install slop

Store in variables the region selected with mouse

@yordanoweb
yordanoweb / copy_dd_sdcard_usb.md
Created January 23, 2026 13:30
Copy with dd to SDCARD/USB

Copying Large Images (>8GB) to SD Card

This updated guide uses the pi-shrink script from GitHub instead of qemu-img for shrinking the .img. Pi-shrink intelligently compacts Raspberry Pi OS images by zeroing free space and resizing partitions/filesystems. Warning: These operations erase all data on the SD card (/dev/mmcblk0). Verify the device with lsblk first.

Prerequisites

  • Backup SD card data.
  • Download pi-shrink: git clone https://github.com/Drewsif/PiShrink.git or grab pi-shrink.sh.
  • Make executable: chmod +x PiShrink/pi-shrink.sh.
  • Have .img file ready.
@yordanoweb
yordanoweb / fix-warp-xdg-open-redir.md
Created January 21, 2026 14:57
FIX Warp Terminal redirection to browser after xdg-open call

FIX Warp Terminal Redirection to Browser After xdg-open Call

Warp Terminal Login Loop Fix (Linux / xdg-open)

Problem

When logging into Warp Terminal on Linux:

  • Username/password succeeds
  • Browser opens for authentication
  • Final redirect tries to execute via xdg-open
@yordanoweb
yordanoweb / text-to-speech-open-webui.md
Created January 6, 2026 16:44
Add text to speech to Open WebUI
@yordanoweb
yordanoweb / nodogsplash.conf.md
Created October 29, 2025 22:04
NoDogSplash.conf

NoDogSplash.conf

This is the minimal config. All other options are not required to exist at the config file

# Interface of the Raspberry OS used to serve DHCP
GatewayInterface wlan0

GatewayName NoDogSplash
@yordanoweb
yordanoweb / nodogsplash-systemd.md
Last active January 13, 2026 12:10
NoDogSplash SystemD Service

NoDogSplash SystemD Service

[Unit]
Description=Nodogsplash Captive Portal Service
Documentation=https://github.com/nodogsplash/nodogsplash
After=network.target networking.service
Requires=network.target

[Service]
@yordanoweb
yordanoweb / secure_2_var_ps.md
Created October 13, 2025 20:02
Secure password to variable in PowerShell

Enter secure password to variable in PowerShell

$plainText = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($(Read-Host -AsSecureString)))
@yordanoweb
yordanoweb / remmina-passwords.md
Created August 25, 2025 10:37
Retrieve Remmina Passwords

Retrieve Remmina Passwords

By some reason, all my remmina client configurations have a "password" attribute equal to "." (a single dot). Searching and reading I found someone suggesting secret-tool search. I tried but only returned one password. But realized that the secret-tool has an "--all" option. Then tried this and got all remmina clients information including their passwords:

secret-tool search --all key password