Skip to content

Instantly share code, notes, and snippets.

View p-arndt's full-sized avatar
💻
Ihren Status festlegen

P. Arndt p-arndt

💻
Ihren Status festlegen
View GitHub Profile
@p-arndt
p-arndt / uv-cursor-rule.mdc
Created February 14, 2026 13:34
uv cursor rule
---
globs:
alwaysApply: true
---
# Tooling (`uv` · `ty` · `ruff`)
**Dependency management (use `uv` only):**
```bash
@p-arndt
p-arndt / linux-daily-commands.md
Created June 8, 2025 20:35
Linux daily commands

🐧 Linux Daily-Usage Bash Cheatsheet

📁 Files & Navigation

ls             # List files
ls -la         # Long list incl. hidden files
cd <dir>       # Change directory
pwd            # Show current directory
mkdir <dir>    # Create new directory
rm  # Delete file
@p-arndt
p-arndt / copilot-instructions.md
Last active July 20, 2025 12:15
Svelte 5 GitHub Copilot instructions

Copilot Instructions for Svelte 5 Projects

General Coding Practices

  • Write idiomatic Svelte 5 code, using modern best practices.
  • Prefer concise, readable, and maintainable code.
  • Always use TypeScript for new components and utilities.
  • Add clear type annotations for all props and variables.
  • Write components as function modules (not class-based).
@p-arndt
p-arndt / bun_install_tailwindcss.ps1
Last active June 22, 2024 16:11
Install TailwindCSS with SvelteKit (Bun)
#!/usr/bin/env pwsh
# Install necessary deps
bun install tailwindcss postcss autoprefixer --save-dev
# Init tailwind
bunx tailwindcss init -p
# Replace or add 'content' line in tailwind.config.js
$tailwindConfig = "tailwind.config.js"
@p-arndt
p-arndt / npm_install_tailwindcss.sh
Last active June 22, 2024 16:08
Install TailwindCSS in SvelteKit (NPM)
#!/bin/bash
# Install necessary deps
npm install -D tailwindcss postcss autoprefixer
# Init tailwind
npx tailwindcss init -p
# Use sed to check if the content line exists and replace it or add it if it doesn't
sed -i '/^\s*content:/c\ content: ["./src/**/*.{html,js,svelte,ts}"],' tailwind.config.js || sed -i '/^export default {/a\ content: ["./src/**/*.{html,js,svelte,ts}"],' tailwind.config.js