Skip to content

Instantly share code, notes, and snippets.

View caffeinetiger's full-sized avatar

Tony Benavides caffeinetiger

  • Chromatic Ai Swarm
  • Earth
View GitHub Profile

Fix The GPG keys listed for the "MySQL 5.7 Community Server" repository are already installed but they are not correct for this package.

This is relevant to Amazon Linux 2018.03

From the references basically:

1. Download the valid GPG Key:

wget https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
mv ./RPM-GPG-KEY-mysql-2022 /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022

Jenkins Role-based Authorization Strategy issue with Matrix Authorization Plugin 3.0+

There is a known issue (as of 4/5/2022) with using the Role-based Authorization Strategy Jenkins plugin with the depedent Matrix Authorization plugin 3.0+

To fix the issue you have to add a record for every "No type prefix" error you see with users assigned to a role. Added the following to fix the "functionality":

USER:some-user

There will be two entry and the red error text will still display but the plugins should function properly otherwise.

@caffeinetiger
caffeinetiger / README.md
Last active August 28, 2024 08:28
References: - [How to Clean or Reset build numbers in Jenkins job ? ](https://linuxhelp4u.blogspot.com/2018/03/how-to-clean-or-reset-build-numbers-in.html)

How to reset Jenkins build numbers

Steps

  1. Log into Jenkins server
  2. Navigate to Manage Jenkins
  3. Select Script Console
  4. Copy and adapt snippet from fig.1
  5. Select Run
  6. Check job and build numbers/history should be deleted/gone
@caffeinetiger
caffeinetiger / run_tests.sh
Last active April 18, 2022 16:55
For use in a Jenkins freestyle job in an Execute shell Build Action. Will run tests in a docker conatainer, check if there is a failed test and exit, and produce a .trx results file for Jenkins. Something to note is that the .trx file has to be cho
#!/bin/bash
set -e
TEST_OUTPUT=`docker run --rm -v $WORKSPACE:/src/ mcr.microsoft.com/dotnet/sdk:3.1 bash -c "cd /src/; dotnet test --logger 'trx;logfilename=testResults.trx';"`
sudo chown -R jenkins:jenkins .
FAIL_STR="Failed:"

Configure Powerline and default terminal for Visual Studio Code

Setting default terminal

  1. Open Visual Studio Code
  2. Press CTRL + SHIFT + P to open the Command Palette
  3. Search for “Terminal: Select Default Profile”
  4. Select your preferred shell. In my case I selected “WLinux (WSL)”

Configuring Powerline fonts for integrated terminal

@caffeinetiger
caffeinetiger / install_server_version_teleport.sh
Created August 14, 2025 19:49
Script to update teleport client to match server for macOS users
#! /bin/bash
# Script requires curl and jq to execute properly
# Set teleport server
TELEPORT_SERVER="teleport.example.com"
# Get teleport server version
TELEPORT_VERSION=$(curl -s https://$TELEPORT_SERVER/webapi/find | jq -r '.server_version')
echo "$TELEPORT_SERVER teleport server version: $TELEPORT_VERSION"