Skip to content

Instantly share code, notes, and snippets.

View ryanwoodsmall's full-sized avatar
🍞
🍞 bread 🍞 sandwich 🍞

ryan ryanwoodsmall

🍞
🍞 bread 🍞 sandwich 🍞
View GitHub Profile
@ryanwoodsmall
ryanwoodsmall / mpy-f469.md
Created June 28, 2025 11:50 — forked from stepansnigirev/mpy-f469.md
Micropython build for STM32F469-Discovery board

Micropython overview

Micropython works on a variety of different boards, but originally it was written to work on STM32 microcontrollers. Their PYBOARD is based on STM32.

At the moment micropython is ported to several STM32 developer boards, ESP32, linux, MacOS and even webassembly.

I started porting micropython to STM32F469-Discovery board - I want to

HashiCorp Vault Associate (exam notes)

Exam objectives

Exam Objectives
1 Compare authentication methods
  1a Describe authentication methods
  1b Choose an authentication method based on use case
  1c Differentiate human vs. system auth methods
@ryanwoodsmall
ryanwoodsmall / win10greybackground.reg
Last active November 10, 2024 02:24
win10greybackground.reg
Windows Registry Editor Version 5.00
; https://www.elevenforum.com/t/add-or-remove-learn-about-this-picture-desktop-icon-in-windows-11.7137/
; https://serverfault.com/questions/268423/changing-desktop-solid-color-via-registry
; https://leitchronicle.wordpress.com/2009/11/07/remote-desktop-with-clear-type-on-windows-xp/
; get rid of "change/about/etc. this picture" icon/windows spotlight desktop
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{2cc5ca98-6485-489a-920e-b3e88a6ccce3}]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
@ryanwoodsmall
ryanwoodsmall / linux-5.15.x-starfive-visionfive2-docker.config
Last active November 27, 2023 05:35
linux-5.15.x-starfive-visionfive2-docker.config
#
# Automatically generated file; DO NOT EDIT.
# Linux/riscv 5.15.0 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="riscv64-linux-musl-gcc (GCC) 9.4.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90400
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23301
@ryanwoodsmall
ryanwoodsmall / .tmux.conf
Created October 18, 2023 17:07
.tmux.conf
# this keeps getting turned off
set -s set-clipboard on
# tmux+vim in some configurations behaves *extremely* stupidly/slowly when changing modes
# 0 works too but may cause issues with multi-key sequences (arrrow keys, etc.)
set -sg escape-time 10
@ryanwoodsmall
ryanwoodsmall / jenkins_abort_job_by_name_and_build_number.groovy
Created September 21, 2023 17:07
jenkins_abort_job_by_name_and_build_number.groovy
Jenkins.instance
.getItemByFullName("JobName")
.getBuildByNumber(JobNumber)
.finish(hudson.model.Result.ABORTED,
new java.io.IOException("Aborting build")
);
@ryanwoodsmall
ryanwoodsmall / inetd.go
Created August 31, 2023 03:57 — forked from stephane-martin/inetd.go
Make a net.Listener to listen on stdin for inetd enables services
package main
import (
"errors"
"net"
"os"
"sync"
)
type StdinListener struct {
@ryanwoodsmall
ryanwoodsmall / jenkins-abort-running-clearqueue.groovy
Created August 4, 2023 08:55
jenkins-abort-running-clearqueue.groovy
/*
* https://docs.cloudbees.com/docs/cloudbees-ci-kb/latest/client-and-managed-controllers/how-can-i-purge-or-clean-the-build-queue
*/
Jenkins.instance.queue.clear()
/*
* https://stackoverflow.com/questions/12305244/cancel-queued-builds-and-aborting-executing-builds-using-groovy-for-jenkins
*/
import java.util.ArrayList
import hudson.model.*;
@ryanwoodsmall
ryanwoodsmall / ssh-agent-helper.bash
Last active August 17, 2023 06:02
ssh-agent-helper.bash
#!/usr/bin/env bash
# ssh
export GIT_SSH_COMMAND="ssh -4"
sshagentenv="/tmp/ssh-agent-${USER}.sh"
touch "${sshagentenv}"
. "${sshagentenv}"
if ! $(ps -U "${USER}" | grep -q 'ssh-agent') ; then
eval `ssh-agent -s`
for e in SSH_AGENT_PID SSH_AUTH_SOCK ; do
sed -i "/^export ${e}=.*/d" "${sshagentenv}"