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 / 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
@yordanoweb
yordanoweb / rtkit-daemon.less.verbose.md
Last active April 25, 2025 21:18
Avoid rtkit-daemon verbosity to system logs

Avoid rtkit-daemon verbosity to system logs

Sometimes, when using Linux, any of them (Mint, Ubuntu, Arch), happens that "journalctl -f" show a lot of messages like:

Apr 25 17:54:50 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Failed to open file “/proc/839993/status”: No such file or directory
Apr 25 17:54:56 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
Apr 25 17:54:58 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
Apr 25 17:55:02 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
Apr 25 17:55:03 hp-laptop rtkit-daemon[132845]: Warning: PolicyKit call failed: Process not found
@yordanoweb
yordanoweb / ps_get_win_reboot_reasons.md
Last active March 13, 2025 18:49
Get latest Windows reboot reasons

List latest Windows reboots and its causes

$rebootEvents = Get-WinEvent -FilterHashtable @{
    LogName = 'System'
    ID = 1074, 6008
} -MaxEvents 10 | Sort-Object TimeCreated -Descending

$rebootEvents | ForEach-Object {
 $event = $_
@yordanoweb
yordanoweb / current_dir_size.md
Created February 14, 2025 13:30
Current dir size in PowerShell

Current directory size in PowerShell

$size = (Get-ChildItem -Path . -Recurse -File | Measure-Object -Property Length -Sum).Sum
Write-Output "Directory size: $([math]::Round($size / 1MB, 2)) MB"

If you want everything in one line: