Skip to content

Instantly share code, notes, and snippets.

View selfagency's full-sized avatar
👾
beep boop

daniel sieradski selfagency

👾
beep boop
View GitHub Profile
@selfagency
selfagency / config.toml
Created May 18, 2026 19:02
Atuin Config
## Base directory for Atuin data files (databases, keys, session, etc.)
## All data file paths default to being relative to this directory.
## linux/mac: ~/.local/share/atuin (or XDG_DATA_HOME/atuin)
## windows: %USERPROFILE%/.local/share/atuin
# data_dir = "~/.local/share/atuin"
## where to store your database, default is your system data directory
## linux/mac: ~/.local/share/atuin/history.db
## windows: %USERPROFILE%/.local/share/atuin/history.db
# db_path = "~/.history.db"
@selfagency
selfagency / starship.toml
Created May 18, 2026 18:47
Starship config
command_timeout = 3000
scan_timeout = 3000
[aws]
symbol = " "
[buf]
symbol = " "
[bun]
@selfagency
selfagency / nodebin.zsh
Created May 16, 2026 22:36
Automatically add the current repo and subpackages' `node_modules/.bin` to your `$PATH`
# source this file in your ~/.zshrc
autoload -Uz add-zsh-hook
typeset -ga _git_nm_bins_current=()
_git_nm_path_remove_exact() {
local needle="$1"
local -a filtered=()
local p
@selfagency
selfagency / critically-important.instructions.md
Created February 20, 2026 15:20
Copilot Instructions for Effective Agentic Development
description Core development guidance. Read and follow without exception.
applyTo **

Development Guidance

These instructions are your operating contract. Every rule applies to every session, every project, every response. Deviation from these instructions is a failure. If you are uncertain about a rule, re-read this file. Do not improvise around these instructions -- follow them exactly.

You are an expert software engineer. Prioritize correctness, security, accessibility, and maintainability. Verify documentation before implementing. Never hallucinate APIs.

@selfagency
selfagency / git-config.sh
Created August 10, 2023 20:53
wsl -> windows git
# This can be due to security features built into newer Git versions, which prevent WSL paths from being accessed by Git.
#There is a workaround, though: disabling the check for a specific directory or all:
git config --global --add safe.directory '%(prefix)///wsl.localhost/
git config --global --add safe.directory '*'
# After applying this you should be able to add the repo to Tower.
@selfagency
selfagency / ExecuteCommandOnRemoteServers.ps1
Created July 7, 2023 17:12
schedule remote windows tasks
# Set the command to execute on remote servers
$command = "YourCommandHere"
# Set the list of remote servers
$servers = "server1", "server2", "server3"
# Set the schedule for the task (every day at 8:00 AM)
$schedule = "0 8 * * *"
# Set the username and password for authentication on remote servers

openpgp4fpr:83dc1fc2373f0e2797f2c7812f4a8869e66811fd

@selfagency
selfagency / pre-push.sh
Created May 17, 2022 18:52
Git hook to protect branch
#!/bin/bash
protected_branch='master'
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
if [ $protected_branch = $current_branch ]
then
read -p "You're about to push master, is that what you intended? [y|n] " -n 1 -r < /dev/tty
echo
if echo $REPLY | grep -E '^[Yy]$' > /dev/null
@selfagency
selfagency / jl2j.sh
Last active February 23, 2022 21:25
Super-duper-simple JSON log to JSON converter
#!/bin/bash
####################################################
# Super-duper-simple JSON log to JSON converter #
# #
# Install: #
# $ curl $RAW_GIST_URL -o jl2j #
# $ chmod +x jl2j #
# $ sudo mv jl2j /usr/local/bin #
# #
@selfagency
selfagency / package.json
Last active August 1, 2025 15:52
use google secret manager with strapi or any node application
{
"name": "strapi",
"private": true,
"version": "0.1.0",
"description": "A Strapi application",
"scripts": {
"develop": "strapi develop",
"start": "eval $(node src/secrets.js); strapi start",
"build": "strapi build",
"gcp-build": "strapi build",