Skip to content

Instantly share code, notes, and snippets.

View siegblink's full-sized avatar
🎨
Coding and playing

Siegfred Balona siegblink

🎨
Coding and playing
View GitHub Profile
@siegblink
siegblink / default.md
Created July 9, 2025 06:26 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@siegblink
siegblink / tailwind-css-v4.mdc
Created March 7, 2025 01:51 — forked from danhollick/tailwind-css-v4.mdc
Cursor rules file for Tailwind CSS v4.0
# Tailwind CSS v4.0
## Core Changes
- **CSS-first configuration**: Configuration is now done in CSS instead of JavaScript
- Use `@theme` directive in CSS instead of `tailwind.config.js`
- Example:
```css
@import "tailwindcss";
@siegblink
siegblink / git_stash_fzf.sh
Created August 13, 2024 07:02
Useful script combining git stash commands, fzf, and bat
# Helper function to list git stashes and show selected stash details using fzf and bat.
select-stash() {
local action="$1"
local stash_list
stash_list=$(git stash list | fzf --border --preview 'echo {} | cut -d: -f1 | xargs -I % sh -c "git stash show -p % | batcat --style=plain --color=always"')
if [ -n "$stash_list" ]; then
local stash_id
stash_id=$(echo "$stash_list" | cut -d: -f1)
$action "$stash_id"
@siegblink
siegblink / dom3d.js
Created April 4, 2024 05:39 — forked from OrionReed/dom3d.js
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯

Bash Scripting


Shebang

#!/usr/bin/env bash
@siegblink
siegblink / bash_strict_mode.md
Created March 29, 2023 09:48 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@siegblink
siegblink / README-badges.md
Created September 28, 2020 05:35 — forked from tterb/README-badges.md
A collection of README badges

Badges

License

MIT License GPLv3 License AGPL License

Version

Version GitHub Release

@siegblink
siegblink / composing-software.md
Created February 15, 2020 17:43 — forked from Geoff-Ford/composing-software.md
Eric Elliott's Composing Software Series
@siegblink
siegblink / master-javascript-interview.md
Created June 6, 2019 22:19 — forked from Geoff-Ford/master-javascript-interview.md
Eric Elliott's Master the JavaScript Interview Series