Skip to content

Instantly share code, notes, and snippets.

View pr0way's full-sized avatar
🎯
Focusing

Tomasz Pocztowski pr0way

🎯
Focusing
View GitHub Profile
@pr0way
pr0way / README.md
Last active February 11, 2026 16:02
Smart device that looks like standalone playing dice.

⚠️ This project is currently in early development.

Vibe coded - use at your own risk.

🎲 Smart IoT Dice

Hardware Connections

XIAO Pin Connection Target Description

🚀 Debian 13 + KDE Plasma – Boot Optimization

Recipe to speed up your boot from 50s+ to ~26s | 9.4s improvement (26%)


📋 Before You Start

This guide assumes:

  • UEFI firmware (not legacy BIOS)
@pr0way
pr0way / backup.sh
Created May 9, 2025 18:27
Stupid Simple Backup Solution - one-time bash script to backup all your user data folders at once.
#!/usr/bin/env bash
# Double compression doesn't make sense, leave as it is
final_backup_file="backup.tar"
home_dir="/home/$(whoami)"
# Enter to the user directory
cd "$home_dir"
# Create temporary directory to group all archives
@pr0way
pr0way / README.md
Last active April 7, 2025 14:30
Voe.sx

Voe.sx bookmarklet

This method simplify extracting url to real video streaming services by copying them to clipboard. Designated for people who know what they want and have skills to do so.

What is Bookmarklet?

Once upon a time there was a way to execute custom JavaScript code in context of indicated site. It was called Bookmarket. Thanks to this feature you could do tedious work in a minute.

For example - you go to the page, fired up bookmarklet and grab link to your favourite movie directly to your clipboard. It's just a drop in the ocean of possibilities but it good shows the bigger picture.

@pr0way
pr0way / README.md
Last active August 17, 2023 22:31
Simple bash script to make mysql backup via docker

Attention

This wrapper use hardcoded data, you should avoid this. This doesn't meet best practices writing bash scripts but I leave this as it is because I use other methods to secure it.

My first recommendation is add separate mysql (read only) user for this purpose. It dramatically reduce possibly attack surface.

You can do this easily log in as root in your mysql instance and run:

Locally:
mysql -u root -p
@pr0way
pr0way / README.md
Last active July 22, 2022 16:35
Hama Radio DIR355BT management script

Simple Hama DIR355BT management script.

I run it from my NAS server as cron job every day to turn on my radio when I go into the kitchen and turn off when I go out to work.

Before use

Make this file executable:

chmod +x hama_dir355bt.sh

Use:

@pr0way
pr0way / HiddenAccount.ps1
Last active June 20, 2021 17:50
Script to create hidden user(s) to connect via remote desktop (local admin)
function Test-IsAdmin {
([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
}
if(!(Test-IsAdmin)){
Write-Warning "Try again, run with administrator privileges."
Exit
}
$Username = Read-Host -Prompt "Enter username"
@pr0way
pr0way / music_library.py
Created September 13, 2020 11:54
Simple script that make a file with list of files in directory and save them into file.
from os import path, scandir
print("Pass path to the directory: ")
mypath = path.join(input())
filename = path.basename(mypath).lower() + '-tracklist.txt'
with scandir(mypath) as it:
list_of_files = [entry.name for entry in it if entry.is_file()]
@pr0way
pr0way / README.md
Last active January 31, 2024 09:49
Simple init script to up & down wireguard
  1. Go to /etc/init.d directory
  2. Create file with name "wireguard" and content below.
  3. Make file executable chmod +x wireguard
  4. Add to rc-update: rc-update add wireguard default
  5. That's it
@pr0way
pr0way / Readme.md
Last active December 27, 2019 17:17
Simple removeDuplicate script

How to use?

Simple copy/paste code or download/extract and:

  1. Permit to execute chmod +x removeDumplicate.py

  2. Use: ./removeDuplicate.py <source-file> <target-file>

Parameters Required Description
`` Yes Your file which you want to modify