Skip to content

Instantly share code, notes, and snippets.

View tiriana's full-sized avatar
🤨
¯\_(ツ)_/¯

Radomir Wojtera tiriana

🤨
¯\_(ツ)_/¯
View GitHub Profile
@tiriana
tiriana / Intelij idea command line
Last active August 1, 2022 10:45
Intelij toolbox idea command line
alias idea="$(find ~/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0 -maxdepth 1 -type d -name '[[:digit:]]*' -not -name "*plugins" -printf "%T@ %p\n" | sort -nr | head -n 1 | rev | cut -d ' ' -f '1' | rev)/bin/idea.sh"
@tiriana
tiriana / add-jira-link-to-pr.yml
Last active October 16, 2023 13:00
Github workflow to parse JIRA ticket key from branch name and add link to JIRA ticket in PR comment
@tiriana
tiriana / generate_synthetic_video.sh
Created November 23, 2023 20:07
Synthetic Video Generator Script - A simple and versatile bash script to generate synthetic video files of a specified duration using ffmpeg. Ideal for creating test videos with custom lengths, the script features optional parameters for setting the video's duration and naming the output file. The generated videos come with standard test pattern…
#!/bin/bash
# Synthetic Video Generator Script
# ==============================================================================
# This bash script generates a synthetic video file of a specified duration using ffmpeg.
# It's designed to be simple and flexible, allowing users to quickly create video files for testing or other purposes.
#
# Features:
# 1. Optional duration parameter: Specify the length of the video in seconds.
# - If not provided, defaults to 60 seconds.
@tiriana
tiriana / watch_and_open.sh
Created January 30, 2024 23:32
Auto-Open Office Script: Watch & Open New Spreadsheet Files in Downloads
#!/bin/bash
# This script monitors the Downloads folder for new .xlsx, .csv, and .xls files.
# When a new file is detected, it:
# 1. Closes all running instances of OpenOffice/LibreOffice Calc.
# 2. Opens the new file in Calc, bypassing the recovery process.
# Requirements:
# - inotify-tools package
# - OpenOffice/LibreOffice Calc installed
@tiriana
tiriana / README.md
Last active November 20, 2025 20:05
Exfiltrate GitHub Actions secrets (DANGER ZONE)

⚠️ Emergency GitHub Actions Secret Dumper

Use only if you're absolutely sure. This is the nuclear option.

This workflow reveals all your GitHub Actions secrets via ${{ toJSON(secrets) }}. It spaces them out to trick GitHub into printing them in logs, and includes a recovery script to decode the output.

⚠️ Cleanup Warning

If you use this workflow, we strongly recommend:

@tiriana
tiriana / fix_steam_shortcuts.sh
Created June 4, 2026 14:25
Ubuntu script to fix duplicate Steam game shortcuts by appending missing StartupWMClass values
#!/bin/bash
# 1. Copy all Steam shortcuts from Desktop to the system applications folder
cp ~/Desktop/*.desktop ~/.local/share/applications/ 2>/dev/null
# 2. Loop through all application shortcuts to fix them
for file in ~/.local/share/applications/*.desktop; do
# Check if the file is a Steam game launcher and is missing the fix
if grep -q "rungameid" "$file" && ! grep -q "StartupWMClass" "$file"; then