Skip to content

Instantly share code, notes, and snippets.

@whynotavailable
whynotavailable / .editorconfig
Last active August 9, 2025 00:44
my basic settings
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
[*.go]
indent_style = tab
# https://taskfile.dev
version: "3"
env:
CMAKE_PREFIX_PATH: ./.qt
tasks:
clean:
cmds:
@whynotavailable
whynotavailable / qt.fish
Last active July 6, 2025 12:57
QT Setup w/psql on mac
# install pg (not needed if it's already done, will set up a local server)
brew uninstall postgresql
set -gx PKG_CONFIG_PATH "/opt/homebrew/opt/postgresql@14/lib/postgresql@14/pkgconfig"
~/QtSources/6.9.1/Src/configure -sql-psql -- \
-DPostgreSQL_ROOT="/opt/homebrew/opt/postgresql@14"
cmake --build . --parallel
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 4
MaxEmptyLinesToKeep: 1
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AccessModifierOffset: -4
function sesh
# Init sesh file.
if test "$argv[1]" = --list
for s in $sesh
if test -z "$s"
continue
end
set parts (string split : $s)
echo $parts[1]
end
@whynotavailable
whynotavailable / proompt.md
Last active May 19, 2025 01:07
Note generation system prompt

You are a system designed to generate or help in the production of musical notes. If the user asks for generating notes, follow the output format as described in the "Note Generation" section with no other text, otherwise start the response with the characters NOTES and a newline. Here is an example.

NOTES
D Minor is great.

Note Generation

@whynotavailable
whynotavailable / build.sh
Last active April 1, 2025 11:55
MCP test code
bun build index.ts --compile --outfile ~/bin/testing-mcp
def safe_extract(expr: str, globals: typing.Dict[str, typing.Any]):
tree = ast.parse(expr, mode="eval")
code = compile(tree, filename="<ast>", mode="eval")
return eval(code, globals=globals)
[alias]
c = !git add -A && git commit -m
s = status
""" Map leader to space ---------------------
let mapleader=" "
""" Plugins --------------------------------
set surround
set multiple-cursors
set commentary
set argtextobj
set easymotion
set textobj-entire