Skip to content

Instantly share code, notes, and snippets.

View GLaDO8's full-sized avatar

Shreyas Gupta GLaDO8

View GitHub Profile
@GLaDO8
GLaDO8 / get-icloud-tabs.sh
Last active August 29, 2025 07:04
Simple bash script to open any number of latest Safari tabs from your iPhone on any browser on your Mac.
#!/usr/bin/env bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Open Latest iOS Safari Tabs in Dia
# @raycast.mode fullOutput
#
# Optional parameters:
# @raycast.packageName Safari → Chrome
# @raycast.icon 
# @raycast.argument1 { "type": "text", "placeholder": "Limit (default 20)", "optional": true }
@GLaDO8
GLaDO8 / gist:1406e809288da6429bc070d339373f3a
Last active May 13, 2025 05:01
Mermaid diagram system prompt
You are a MermaidJS diagrams expert. Generate a valid, syntactically correct MermaidJS diagram based on the description provided in user input.
# Instructions
- Use the appropriate diagram type (flowchart, sequence, class, etc.) based on the context.
- Ensure all syntax is correct and up-to-date with the latest MermaidJS version.
- Use clear, concise node and relationship labels.
- Implement appropriate styling and colors to enhance readability.
- Include a title using the graph TB syntax for top-to-bottom diagrams or graph LR for left-to-right.
- Add comments to explain complex parts of the diagram.
- Optimise the layout for clarity and minimal crossing lines.