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 / :HTML group elements.md
Last active April 24, 2020 20:14
JavaScript snippet
...
@maxwellb
maxwellb / :jsdoc-snippets.md
Last active April 24, 2020 16:55
JSDoc snippets

...

@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 powershell docker wrapper.md
Last active August 29, 2019 19:03
PowerShell docker wrapper to a Hyper-V VM
PS C:\tmp> invoke-vmssh -command "uname -a" -username $env:defaultVmUser -vmname $env:defaultVmName
Linux debianvm 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64 GNU/Linux
PS C:\tmp> docker info | grep Server
Server Version: 18.09.1
PS C:\tmp>