A widget for Obsidian bringing together tasks from the entire vault of priority above medium.
The 3 buttons allow to switch their grouping:
- by file
- by priority
| - password: "postgres", | |
| - hostname: "localhost", | |
| + password: "", | |
| + socket_dir: System.get_env("PGHOST") || "/tmp", |
| return { | |
| { | |
| "LazyVim/LazyVim", | |
| keys = { | |
| -- terminal in the current window (new terminal buffer) | |
| { | |
| "<leader>to", | |
| function() | |
| vim.cmd("terminal") | |
| end, |
| -- ~/.config/nvim/lua/plugins/elixir-igniter-rename.lua | |
| local function project_root() | |
| local ok, Util = pcall(require, "lazyvim.util") | |
| if ok and Util.root and Util.root.get then | |
| return Util.root.get() | |
| end | |
| local git = vim.fn.systemlist("git rev-parse --show-toplevel")[1] | |
| return (git and git ~= "") and git or vim.loop.cwd() | |
| end |
| # config/dev.exs | |
| import Config | |
| config :phoenix, :stacktrace_depth, 60 | |
| config :logger, level: :info | |
| config :logger, :console, | |
| format: {PrettyConsoleFormatter, :format}, |
| # Shrink Tuxedo / and add isolated NixOS (UEFI boot-menu dual boot) | |
| 0 Backup & snapshot (Live USB) | |
| -------------------------------- | |
| sudo cryptsetup luksOpen /dev/nvme0n1p3 cryptroot | |
| sudo vgchange -ay | |
| sudo lvcreate -s -n root-pre-shrink -L 10G /dev/system/root | |
| sudo lvs | |
| 1 Shrink Tuxedo root to 250 G |
| #!/usr/bin/env bash | |
| # transcribe_chunks.sh — splits audio, uploads each chunk separately | |
| # usage: transcribe_chunks.sh "input audio file" | |
| # Requires OPENAI_API_KEY in environment. | |
| set -euo pipefail | |
| usage() { | |
| echo "Usage: $(basename "$0") \"input audio file\"" | |
| echo "Requires OPENAI_API_KEY environment variable to be set." |
Bash script to convert all ChatGPT conversations from .json to .csv, for example to import into Notion as a database.
jq| use_flake './flake.nix' |
| v() { | |
| # runs nvim in a nix-shell with nodejs_20 | |
| # sets NPM_GLOBAL_DIR so no sudo is needed to install global npm packages | |
| NODE_STR="nodejs_20" | |
| NPM_GLOBAL_DIR="/home/$USER/.npm-global/$NODE_STR" | |
| mkdir -p $NPM_GLOBAL_DIR | |
| echo "running lvim $1" | |
| echo "within nix-shell -p $NODE_STR" | |
| PATH=$NPM_GLOBAL_DIR/bin:$PATH NPM_CONFIG_PREFIX=$NPM_GLOBAL_DIR nix-shell -p $NODE_STR --run "lvim $1" | |
| } |