Skip to content

Instantly share code, notes, and snippets.

View noqcks's full-sized avatar
🏠
Working from home

Benji Visser noqcks

🏠
Working from home
View GitHub Profile
@noqcks
noqcks / jenkins-plugins.md
Last active January 2, 2024 15:46
How to get a complete plugin list from jenkins (with version)

I need a way to get a list of plugins so that I can use them with docker jenkins in the format <plugin>: <version>

1. get the jenkins cli.

The jenkins CLI will allow us to interact with our jenkins server from the command line. We can get it with a simple curl call.

curl 'localhost:8080/jnlpJars/jenkins-cli.jar' > jenkins-cli.jar
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v7.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v7.0": {
"MyWebApp/1.0.0": {
"dependencies": {
@noqcks
noqcks / gist:87a683727f472b58cf8822e95cbca4ad
Created September 9, 2023 19:50
projects.assets.json
{
"version": 3,
"targets": {
"net7.0": {
"Microsoft.AspNetCore.Authentication.Abstractions/2.2.0": {
"type": "package",
"dependencies": {
"Microsoft.AspNetCore.Http.Abstractions": "2.2.0",
"Microsoft.Extensions.Logging.Abstractions": "2.2.0",
"Microsoft.Extensions.Options": "2.2.0"
@noqcks
noqcks / sbom.json
Created July 21, 2023 04:54
sbom.json
This file has been truncated, but you can view the full file.
{
"$schema": "http://cyclonedx.org/schema/bom-1.4.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.4",
"serialNumber": "urn:uuid:36ded7b4-8fa9-4caf-8b47-507c0acd6751",
"version": 1,
"metadata": {
"timestamp": "2023-07-20T21:53:19-07:00",
"tools": [
{
@noqcks
noqcks / o.json
Created March 11, 2023 18:14
syft v0.74.0 - python:3.4
This file has been truncated, but you can view the full file.
{
"artifacts": [
{
"id": "55b15606ad877995",
"name": "adduser",
"version": "3.115",
"type": "deb",
"foundBy": "dpkgdb-cataloger",
"locations": [
{
@noqcks
noqcks / o.json
Created March 11, 2023 18:12
syft v0.74.1 - python:3.4
This file has been truncated, but you can view the full file.
{
"artifacts": [
{
"id": "55b15606ad877995",
"name": "adduser",
"version": "3.115",
"type": "deb",
"foundBy": "dpkgdb-cataloger",
"locations": [
{
#!/bin/sh
sudo apt-get -y install awscli
export AWS_DEFAULT_REGION=$( curl -s http://169.254.169.254/latest/meta-data/placement/region )
EFS_ID=$( aws ssm get-parameter --name dev_efs_id --output text --query 'Parameter.Value' )
ACCESS_POINT_DATA=$( aws ssm get-parameter --name dev_efs_data_ap --output text --query 'Parameter.Value' )
EFS_MOUNT_AZ=$( aws ssm get-parameter --name dev_efs_az --output text --query 'Parameter.Value' )
IP_ALLOC_ID=$( aws ssm get-parameter --name dev_ip_allocation_id --output text --query 'Parameter.Value' )
SSH_PUBLIC_KEY=$( aws ssm get-parameter --name dev_ssh_key --output text --query 'Parameter.Value' )
@noqcks
noqcks / README.md
Created May 26, 2022 13:25
Add growl notifications when a long running command fails or succeeds
  1. Add this to your .rc file
preexec () {
   (( $#_elapsed > 1000 )) && set -A _elapsed $_elapsed[-1000,-1]
   typeset -ig _start=SECONDS
}

# Notify about long running commands
function precmd() {
{"test":"cool"}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: airflow-scheduler
namespace: airflow
---
# Allows Airflow to grab config maps (airflow.cfg)
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1