- You must NEVER co-author a commit
- Whenever dealing with Gitlab, always prefer using the MCP instead of the CLI
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
| /** | |
| * Gmail Filter Sync — filters-as-code with upsert semantics. | |
| * | |
| * The FILTERS array below is the single source of truth for your Gmail | |
| * filters. Running syncFilters() makes your account converge to it: | |
| * | |
| * - creates filters that are defined here but missing in Gmail | |
| * - deletes filters that exist in Gmail but are no longer defined here | |
| * - leaves matching filters untouched | |
| * - auto-creates any labels (including nested "Parent/Child" paths) |
| #!/usr/bin/env bash | |
| # Wrapper around `claude` that swaps Anthropic's backend for MiniMax-M3. | |
| # All extra arguments are forwarded to the real `claude` CLI. | |
| # Docs: https://platform.minimax.io/docs/token-plan/claude-code | |
| set -euo pipefail | |
| KEY_FILE="${HOME}/.minimax_key" | |
| BASE_URL="${MINIMAX_BASE_URL:-https://api.minimax.io/anthropic}" |
| { | |
| "name": "NuPhy Air75 V2", | |
| "vendorProductId": 435499590, | |
| "macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | |
| "layers": [ | |
| [ | |
| "KC_ESC", | |
| "KC_F1", | |
| "KC_F2", | |
| "KC_F3", |
| # If you don't remember the exact path/name, search the log for deleted files | |
| git log --diff-filter=D --summary | grep delete | |
| # Find the file you want to get from the ouput, and use the path | |
| # Find the commits that involved that path | |
| git log --all -- some/path/to/deleted.file | |
| # Bring the file back to life to the current repo (sha commit of parent of commit that deleted) | |
| g co shaofthecommitthatdeletedthefile^ -- some/path/to/deleted.file |
| # Windows XSrv config | |
| export $(dbus-launch) | |
| export LIBGL_ALWAYS_INDIRECT=1 | |
| export WSL_VERSION=$(wsl.exe -l -v | grep -a '[*]' | sed 's/[^0-9]*//g') | |
| export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2) | |
| export DISPLAY=$WSL_HOST:0 |
| # Windows XSrv config | |
| export $(dbus-launch) | |
| export LIBGL_ALWAYS_INDIRECT=1 | |
| export WSL_VERSION=$(wsl.exe -l -v | grep -a '[*]' | sed 's/[^0-9]*//g') | |
| export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2) | |
| export DISPLAY=$WSL_HOST:0 |
This is a educational purposed implementation of the Onion Router specification for encrypted/annonymous conversation between two parties.
Do not use this in production (as it is simplifying a lot of stuff, despite I know you will ignore this)
If you use IntelliJ, you can just paste the implementation into a new scratch and run it.
Let me know in the comments if you have anything that could be improved (without adding too much complexity to it)
This is a educational purposed implementation of the Diffie Hellman key exchange for encrypted conversation between two parties.
Do not use this in production (as it is simplifying a lot of stuff, despite I know you will ignore this)
If you use IntelliJ, you can just paste the implementation into a new scratch and run it.
| package dev.okano.kotlin.coroutines.mains | |
| data class Header(val name: String, val value: String) | |
| data class HeaderBuilderDsl(val context: Request) { | |
| companion object { | |
| fun withContext(context: Request): HeaderBuilderDsl { | |
| return HeaderBuilderDsl(context) | |
| } | |
| } |