Skip to content

Instantly share code, notes, and snippets.

@maxwellb
maxwellb / #_# README.md
Created August 23, 2023 20:51
do the thing

mmkay

@maxwellb
maxwellb / # Gitea API for Migration
Created November 23, 2022 18:32
API calls to Gitea to migrate repos from GitHub, Gitlab, etc.
..
@maxwellb
maxwellb / # Azure Pipelines - Sync Repos with Upstream
Created November 22, 2022 06:58
Update my repos in GitHub to remain in sync with the upstream projects
..
@maxwellb
maxwellb / # Blogger Bits #
Last active November 24, 2020 16:46
Blogger Bits
...
@maxwellb
maxwellb / :jsdoc-snippets.md
Last active April 24, 2020 16:55
JSDoc snippets

...

@maxwellb
maxwellb / :HTML group elements.md
Last active April 24, 2020 20:14
JavaScript snippet
...
@maxwellb
maxwellb / .bashrc
Created October 29, 2019 02:37
bashrc snippet - ssh-agent.service
# User mode service for ssh-agent -- set the environment variables
SSH_AGENT_PID=$(systemctl --user show ssh-agent.service | grep ^MainPID= | cut -d= -f2)
if [ "0" = "${SSH_AGENT_PID}" ]; then
systemctl --user restart ssh-agent.service
SSH_AGENT_PID=$(systemctl --user show ssh-agent.service | grep ^MainPID= | cut -d= -f2)
fi
export SSH_AGENT_PID
export SSH_AUTH_SOCK="/run/user/$(id -u)/openssh_agent"
@maxwellb
maxwellb / code-insiders.desktop
Last active October 16, 2019 22:43
Visual Studio Code - Insiders -- Download and Update scripts for Debian
# Copyright (c) 2019 Maxwell Bloch, MIT license
[Desktop Entry]
Type=Application
Name=Code - Insiders
Version=1.1
GenericName=IDE
Icon=code-insiders
Exec=/usr/bin/code-insiders %F
Terminal=false
StartupWMClass=Code - Insiders
@maxwellb
maxwellb / 0 Python venv wrapper.md
Last active August 29, 2019 18:42
Universal Python venv wrapper
$ ln -s /opt/work/my-env/../../../usr/local/bin/within-venv.sh /opt/within-my-venv && ln -s /opt/within-my-venv /usr/local/bin/mytool
$ mytool     # runs in /opt/work/my-venv