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 / 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
Created October 29, 2025 15:09
NoDogSplash SystemD Service

NoDogSplash SystemD Service

[Unit]
Description=<b>Nodogsplash Captive Portal Service</b>
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:

@yordanoweb
yordanoweb / tradingview_ta.md
Last active January 13, 2025 20:00
TradingView TA with Python

TradingView TA with Python module

Install

pip install tradingview_ta

The code

SSH to VPS from GitHub actions

SSH Key: Generate an SSH key pair if you don't have one:

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Copy the public key to your VPS:

@yordanoweb
yordanoweb / identity_monad.md
Last active January 13, 2025 19:48
Identity monad implemented in Go

Identity Monad in Go

package main

import (
	"fmt"
	"reflect"
)