Skip to content

Instantly share code, notes, and snippets.

View firedynasty's full-sized avatar

StanT_ firedynasty

View GitHub Profile
@firedynasty
firedynasty / loadingdirectories.md
Created May 28, 2026 22:27
loading directories

Directory Picker

Browser-based folder navigator with clipboard path integration. Uses the File System Access API to scan and browse directory trees, then copies full filesystem paths to clipboard.

Features

  • Open any folder and browse its subdirectory tree
  • Auto-reads clipboard on open to set the root path (copy the path before clicking Open)
  • Search across all directories
  • Breadcrumb navigation
@firedynasty
firedynasty / screenshot_then_picture.md
Last active May 27, 2026 22:52
screenshot then have picture pop up to copy notes

screenshot_float — Always-on-Top Screenshot Overlay for macOS

Take an interactive screenshot and float it as a click-through, always-on-top overlay pinned to the bottom-right corner. Useful for referencing something while you work.

How it works

  1. Cmd+4 triggers screenshot_float.sh — gives you the macOS crosshair to select a region
  2. Select a region — it's displayed as a borderless, transparent, floating window via PyObjC
  3. Press Escape instead — all existing floating screenshots are dismissed
  4. The window is fully click-through — it never steals focus or interferes with your work
@firedynasty
firedynasty / create_video.md
Created May 23, 2026 05:22
create video from images / text

Create Slideshow Videos from Images, Text, and Video Clips

A Python script + system integration that lets you select files in your file explorer, right-click, and generate a combined slideshow video. Each image is shown for a configurable duration, text files are rendered as white-on-black slides, and video clips are re-encoded and stitched in seamlessly.

What it does

  1. You select files (images, .txt/.md files, video clips) in Finder/Explorer
  2. Right-click and run the quick action
  3. It prompts you for "seconds per image"
  4. Outputs a single .mp4 combining everything in order
@firedynasty
firedynasty / cycling_files_like_high_end_text_editor.sh
Created March 10, 2025 21:22
Cycling through files in Terminal like a high end Text Editor
i1() {
if [ $# -eq 1 ]; then
# Find matching files
selected_file=$(find . -maxdepth 1 -type f -iname "*$1*" | head -1)
if [ -n "$selected_file" ]; then
if is_audio_file "$selected_file"; then
echo "Opening in VLC: $selected_file"
open -a 'VLC' "$selected_file"
else
@firedynasty
firedynasty / createMD.sh
Created December 2, 2024 22:24
create markdown syntax for images
#function when ran will combine all the images in a folder and post to a file called images.md
function createMD() {
if [[ $# -eq 0 ]]; then
echo "Do you want to create or update the Markdown file? \'images.md\' (y/n): "
read confirmation
# Check the user's input
if [[ "$confirmation" != "y" && "$confirmation" != "Y" ]]; then
echo "Operation canceled by the user."
return
function get() {
if [[ $# -eq 0 ]]; then
echo "No file name provided."
echo "documents/forclipboard"
else
file_path="/Users/username/documents/forclipboard/${1}.txt"
if [ -f "$file_path" ]; then
cat "$file_path" | pbcopy
echo "File content copied to clipboard."
else
@firedynasty
firedynasty / study.sh
Created April 8, 2023 20:24
using a bash function to better navigate your files, deep work
function study() {
if [[ $# -eq 0 ]]; then
if [ -e study.txt ]; then
#If there are no arguments, the function checks whether a file named "study.txt" exists in the current directory.
#If it exists, it writes the current working directory to a file named "study_dir.txt" on the user's desktop
#and displays the contents of "study.txt" with line numbers.
echo $PWD > /Users/username/desktop/macbook_pro_scripts/echo_files/study_dir.txt
cat -n study.txt
else
hello_var=$(cat /Users/username/desktop/macbook_pro_scripts/echo_files/study_dir.txt)
@firedynasty
firedynasty / index.html
Created February 25, 2023 20:51
template gallery
<html lang="en">
<head>
<title>SQL Inner Join</title>
</head>
<body>
<header class="header">
<p></p><div class="select">
<i class="material-icons">palette</i>
<select class="select__input" id="selTheme">
@firedynasty
firedynasty / file_mover_sorter.py
Created February 22, 2023 06:15
file mover with Python
import os
import shutil
import random
sourcepath = "/Users/name/screenshots"
destpath = "/Users/name/"
file_names = os.listdir(sourcepath)
file_dict = {