name: git-worktrees description: > Parallel development using git worktrees. Use this skill whenever the user asks to work on a feature, bugfix, or task in isolation using a worktree, or when asked to set up parallel development, create a worktree, merge a worktree branch back, or clean up after worktree work. Also trigger when asked to work on something "in parallel", "on a separate branch without switching", or "without touching my current working tree". Trigger on mentions of "worktree", "parallel branch", "isolated branch work", or any
| // OMO configuration | |
| { | |
| "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/omo.schema.json", | |
| "[opencode]": { | |
| "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/omo.schema.json", | |
| "runtime_fallback": { | |
| "enabled": true, | |
| "max_fallback_attempts": 6, | |
| "cooldown_seconds": 60, | |
| "timeout_seconds": 30, |
This assumes that you're using standard auth strategies, you have set a cookie secret, and you're using a separate cookie for store and admin APIs, e.g.
authOptions: {
tokenMethod: ['cookie'],
cookieOptions: {
name: { shop: 'vendshop', admin: 'vendadmin' },
secret: 'somethingthatIwillnevertellyouandyouwillneverguessthisisntitipromisenoreally',| #!/bin/bash | |
| # Function to extract and decode certificate | |
| extract_cert() { | |
| echo "$1" | base64 -d 2>/dev/null | openssl x509 -noout -enddate 2>/dev/null | cut -d= -f2 | |
| } | |
| # Function to calculate days until expiry | |
| days_until_expiry() { | |
| local expiry_date="$1" |
This is no longer needed; OPNSense now has full CARP support in the wireguard plugin which works much better than these hacks ever did =] I'll leave it here as an example of a thing you can do and 'cause why delete it?
- Install
checkWireguardas/usr/local/opnsense/scripts/OPNsense/Wireguard/checkWireguard - Install
actions_wireguardCarp.confas/usr/local/opnsense/service/conf/actions.d/actions_wireguardCarp.conf - run
service configd restart
I can't take credit for much of the work here -- I adapted it from this blog post: https://tech.willhaben.at/mongodb-incremental-backups-dff4c8f54d58
My main contribution was to make it a little easier to use with docker as well as numerous little cleanup tasks. I also made it gzip the oplog backups and added support for SSL connections
Note that I havne't yet tested the point in time restore script; it likely needs work, particularly to make things work with the gzipped oplog files
| [alias] | |
| unadd = reset HEAD | |
| #co = checkout | |
| co = "!f(){ git checkout \"$@\" && git submodule update --init --recursive; }; f" | |
| cp = cherry-pick | |
| st = status | |
| stat = status | |
| br = branch | |
| info = "!sh -c '[ $# -ne 0 ] && git remote show $1 && exit 0 || [ $# = 0 ] && git remote show origin && exit 0' -" | |
| track = "!sh -c '[ $# = 2 ] && git branch --track \"$1\" \"$2\" && exit 0 || [ $# = 1 ] && git branch --track \"$1\" origin/\"$1\" && exit 0 || echo \"usage: git track <branch> [remote_branch]\\n\\nIf remote branch is not specified, the default is to use origin/<branch>\" && exit 1' -" |
| #!/bin/bash | |
| TMPFILE=$(mktemp) | |
| function cleanup { | |
| echo "Deleting $TMPFILE..." | |
| rm -rv "$TMPFILE" | |
| } | |
| trap cleanup EXIT | |
| function usage { |
This seems to have worked for me, but might not work for you!
Before you try this make sure you've updated everything so that the only things referencing your old CIDR range are the node objects. I did this using calico by creating new ippools. I don't know what issues you may hit -- I avoided most of them by BGP peering with my router and doing all interesting stuff there.
Special thanks to Kanadaj from the #self-hosted channel on the sentry discord who helped me with a lot of the servers I hadn't used before
This is customized in a number of ways, so you'll probably want/need to change things, but it's working for me and I just set it up from scratch again, so I thought I'd share.