So here's my latest set up
Every site I have is a profile on Termius like
> hoodmaps .com
I click it and immediately I'm in my server and I get dropped in a tmux session that's always tied to the corresponding site I wanna log in to
To make this work I have this startup snippet in each site's Termius profile:
> cd /srv/http/hoodmaps.com && tm
(so /srv/http is where my sites are and then hoodmaps .com is the example site here, and "&& tm" is the important part here)
Then in my ~/.bashrc file I added this (written by Claude Code) which defines the "tm" function, again all it does it just put me in the right tmux session based on the folder I'm in
The result is I can switch without interruption from my laptop to phone in Termius with auto reconnecting sessions and usually I just have Claude Code open in each session to work
Before I had to mess around with 1) not having smooth switching from laptop to phone, I'd have to use Claude Code's /resume for it, annoying, 2) having multiple sessions for same sites, gets messy and confusing fast, now it FORCES me into one session per site, this just works so well, I'm so fast, and each of my sites is just an open tab in Termius, I've never worked so structured and clean!
Here is the code, maybe it helps somebody:
# tmux session per folder. `tm` (no args) attaches to / creates a session
# named after the current dir's basename. `tm name` overrides the name.
# Works whether already inside tmux (uses switch-client) or outside it.
tm() {
command -v tmux >/dev/null 2>&1 || { echo "tmux not installed"; return 1; }
local name="${1:-$(basename "$PWD")}"
# tmux session names can't contain '.' or ':' — replace with '-'
name="${name//./-}"
name="${name//:/-}"
if [ -n "$TMUX" ]; then
tmux has-session -t "$name" 2>/dev/null || tmux new-session -d -s "$name" -c "$PWD"
tmux switch-client -t "$name"
else
tmux attach -t "$name" 2>/dev/null || tmux new -s "$name" -c "$PWD"
fi
}
# Auto-attach on interactive login: picks a session named after wherever
# you land. Plain `ssh server` lands in $HOME → session "root". Use
# `ssh server -t "cd /srv/sm.levels.io && bash -l"` to land in a site
# folder → session "sm-levels-io". Skips inside tmux and non-interactive
# shells so scp/rsync/scripted ssh keep working.
if command -v tmux >/dev/null 2>&1 && [ -z "$TMUX" ] && [[ $- == *i* ]]; then
tm
fi
Working on a new version of Svelte Form Builder
What’s new:
• Generates Svelte Remote Function code
• New layout with fields, editor, preview
• Works with Valibot, Zod, and ArkType
Preview: https://t.co/59ok1KRFuF
Still in alpha - early stage, feedback welcome!
📢 Alright, so I'm going to release this!
It'll be a CLI-based screen/cam recorder for macOS. It's going to be a week or two until it's fully ready.
But until then, sign up on the waitlist and I'll let you know when it's available!
https://t.co/cDarMvDPQ6
LEAKED: The ULTIMATE AI coding prompt collection…
7000+ lines of PURE GOLD from v0, Cursor, Lovable, Replit Agent, Windsurf & more...
These aren't just prompts...
They're the SECRET SAUCE that transforms any LLM into PROMPT ENGINEERS - almost one-shotting entire builds.
Upload these into your AI models and watch them code like senior developers instead of confused interns.
To STEAL these prompts:
Like + RT+ Comment "Gold" & I'll send over the drive.
PS: The AI coding wars just got transparent. This is where most prompt gurus get their prompts.
This Cursor Extension is awesome
Accurate tweaking of UI was always a struggle,
But @stagewise_io allows you to bring full context to Cursor, just point and command:
1. Directly choose specific elements in browser
2. Send to Cursor with full context
And it's open source
AI is crazy
Text → 3D printed object in mins
here’s how:
• Created concept & design with AI Studio
• Converted to GLB file with Trellis
• Translated it to STL format
• Printed it with 3D printer
Google AI Studio is free
I just made a FULL GUIDE on ChatGPT to help you finish hours of work in seconds.
Usually, I'd charge $100 for this, but today I'm giving it away for FREE
Like + comment "Send" and I will DM it to you.
For the next 24 hours, it's FREE. ⏰ (Must follow to receive DM)