Skip to content

Instantly share code, notes, and snippets.

View semick-dev's full-sized avatar

Scott Beddall semick-dev

View GitHub Profile
@semick-dev
semick-dev / java-repro-ubuntu.md
Last active April 30, 2026 22:10
Repro Resource Manager on Ubuntu

azure-resourcemanager-compute on ubuntu 20.04

Get mvn

wget https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz
sudo tar -xzf apache-maven-3.8.8-bin.tar.gz -C /opt/
mv /opt/apache-maven-3.8.8 /opt/maven
export MAVEN_HOME=/opt/maven
export PATH=$MAVEN_HOME/bin:$PATH
@semick-dev
semick-dev / connect-to-devops-npm-feed.md
Last active April 30, 2026 22:09
Connect to NPM Azure DevOps Feed

How to add a devops feed to local configuration for an npm package

  • Within your package folder (folder containing package.json for your package), locate where the .npmrc for the package is located. Usually it's right alongside the package.json. Creating an .npmrc with the feed is covered in a step below.

    • For openapi-alps this is located under common/config/rush/.npmrc
  • Ensure your project .npmrc has a reference to the feed containing your packages.

    • To get detailed instructions from devops, go to the feed and click Connect to Feed (top right button), then click NPM, and change from Windows tab to Other. The Other tab is excellent to use for linux/mac connections.
  • Update your project .npmrc with the following

    • # "registry" is a url, don't make it multiline!
@semick-dev
semick-dev / github.md
Last active April 30, 2026 22:09
Github Cheatsheet

Git -- CLI, Hub CLI, Hub Site

UI Secrets

  • t or / to find a file by name
  • s to search
  • Use commenter:<blah> to find every issue that <blah> commented on.

Git CLI

@semick-dev
semick-dev / wsl2-dotnet-config.md
Last active April 30, 2026 22:09
Make multi-sdk dotnet available on a Ubuntu distro.

Getting WSL configured for multi-SDK .NET

This example was most recently worked through on Windows 11 on July 19th, 2023. It is significantly easier now than it used to be FOR CERTAIN!

Pre-reqs

  • Install the Windows subsystem for linux. To do this: Start -> Turn Windows Features On or Off then ensure that you have:
    • Windows Subsystem for Linux
    • Virtual Machine Platform
  • Install the Linux Kernel Update
@semick-dev
semick-dev / git-ssh.md
Last active April 30, 2026 22:09
How to use git SSH auth

Introduction to git SSH

Steps

  • Use a linux system.
  • Install git sudo apt-get install git
  • Installation of git should also install ssh and ssh-keygen
  • Generate an SSH key ssh-keygen -t ed25519 -C "your_email@example.com"
    • If on legacy system use ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
@semick-dev
semick-dev / remove-nline-prefix.py
Last active April 30, 2026 22:09
Using regex to clean up gcode output
# To run this script, no installation necessary, but python must be present on system.
# install python, then simply run `python remove-nline-prefix.py` to see it work.
# Replace sample_input as necessary.
# this is reflected in regex 101: https://regex101.com/r/Z7z2sE/1
# and example regex usage in this repo at /scrapyard/notepad++_regex_replace.gif
import re
@semick-dev
semick-dev / bash-reference.md
Last active April 30, 2026 22:09
Unix QuickRef

Bash QuickRef

Shell manipulation

Escaping the . in . including

If you want to be absolutely certain that your script is being dot-included, escape the dot.

# note the dot is escaped, and has a space to where the invoked script actually exists
@semick-dev
semick-dev / base64-image-encode.ps1
Last active April 30, 2026 22:09
`pwsh` base64 encode/decode scraps
$inputFile = "azure-sdk-qr-smaller.PNG"
$file = "re-rewritten.txt";
$test_out = "re-out.png"
# to base64
[System.Convert]::ToBase64String((Get-Content $inputFile -AsByteStream)) | Set-Content $file
# back to bytes
[Convert]::FromBase64String((Get-Content $file)) | Set-Content $test_out -AsByteStream
@semick-dev
semick-dev / assemble-last-angel.py
Last active April 30, 2026 22:09
Scrape SpaceBattles for Story Text
# requires beautifulsoup4
# requires requests
from bs4 import BeautifulSoup
import requests
post_info = [
("https://forums.spacebattles.com/threads/the-last-angel.244209/#post-9395180", "Chapter 1"),
("https://forums.spacebattles.com/threads/the-last-angel.244209/#post-9452290", "Chapter 2"),
("https://forums.spacebattles.com/threads/the-last-angel.244209/#post-9486254", "Chapter 3"),
@semick-dev
semick-dev / Install-NvChad.ps1
Last active November 13, 2025 23:51
Configure NvChad on installed nvim for Windows
<#
.SYNOPSIS
Destructively Update the nvchad configuration.
.DESCRIPTION
REQUIRES MINGW64 ON THE PATH! Reference <locker-root>/cache/c_cpp/windows-installation.md
1. Takes backup of ~/AppData/Local/nvim + ~/AppData/Local/nvim-data
2. Deletes ~/AppData/Local/nvim + ~/AppData/Local/nvim-data
3. Clone nvchad to ~/AppData/Local/nvim.