Skip to content

Instantly share code, notes, and snippets.

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

ryan ryanwoodsmall

🍞
🍞 bread 🍞
View GitHub Profile
@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}"
@ryanwoodsmall
ryanwoodsmall / fix-intel_wifi_aer-avell_g1513_fire_v3
Created June 30, 2023 04:37 — forked from Brainiarc7/ fix-intel_wifi_aer-avell_g1513_fire_v3
Temporary fix for AER's excessive `severity=Corrected` logging for Intel Wireless (Avell G1513 Fire V3) (Arch Linux)
silly gist hack, why do we need you? :(
@ryanwoodsmall
ryanwoodsmall / pass.md
Created February 7, 2023 15:35 — forked from abtrout/pass.md
Using password-store with git repository synching

Password-store keeps your passwords (or any other sensitive information) saved in GnuPG encrypted files organized in ~/.password-store. For more information about GPG, consult the GNU Privacy Handbook.

Getting started

To get started, install pass and generate a keypair.

$ brew install pass
$ gpg --gen-key
$ gpg --list-keys
@ryanwoodsmall
ryanwoodsmall / 1_Hello_libtls
Created June 15, 2022 17:01 — forked from kinichiro/1_Hello_libtls
Hello libtls - libressl libtls API sample program
Hello libtls - libressl libtls API sample program
/*
* https://dropbear.sh/code/modelf.c
* https://dropbear.sh/blog/elf-patching.html
*/
/*
BSD 3-Clause License
Copyright (c) 2022 dropbear