Skip to content

Instantly share code, notes, and snippets.

View solarkraft's full-sized avatar
🌟
Have a star!

Paul solarkraft

🌟
Have a star!
View GitHub Profile
@solarkraft
solarkraft / sh-L
Created February 23, 2023 14:04
Shell scripting is awesome
#!/usr/bin/env sh
addstuff=y; true && echo "a b$([ $addstuff = "y" ] && echo \" c\")"
# a b" c"
addstuff=y; stufftoadd=" c d"; true && echo a b$([ $addstuff = "y" ] && echo $stufftoadd)
# a bc d
@solarkraft
solarkraft / set-up-formatting.patch
Created October 3, 2025 21:26
Customize formatting on Vite React+TS project
From 09c136006b11872d7b9d713440b2566a5f4f36c3 Mon Sep 17 00:00:00 2001
From: solarkraft <>
Date: Fri, 3 Oct 2025 23:24:20 +0200
Subject: [PATCH] Set up formatting
---
.prettierignore | 3 +++
.prettierrc | 6 ++++++
.vscode/settings.json | 4 ++++
package.json | 4 +++-
@solarkraft
solarkraft / deepgram_live_demo_opus.html
Last active December 26, 2025 03:28
Simple demo of live audio transcription using the Deepgram Live Audio API (api.deepgram.com/v1/listen) via the Deepgram SDK
<!DOCTYPE html>
<html>
<head>
<title>Deepgram Live Demo</title>
<script src="https://cdn.jsdelivr.net/npm/@deepgram/sdk@v4.11.2"></script>
<style>
body {
font-family: sans-serif;
max-width: 60rem;
@solarkraft
solarkraft / config.ghostty
Created March 22, 2026 21:08
Sane ghostty config
window-padding-x = 16
window-padding-y = 8
font-thicken = true
font-thicken-strength = 255
theme = 3024 Night
term = xterm-256color