- Updated on May 29 to accommodate etcd container not having
/bin/shavailable anymore.
curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
| # remove_unused_gitlab_labels.py | |
| import requests | |
| from requests.auth import HTTPBasicAuth | |
| import uuid | |
| import json | |
| # *False* if Jira / GitLab is using self-signed certificates, otherwhise *True* | |
| VERIFY_SSL_CERTIFICATE = True | |
| ## GitLab specifics |
| #!/bin/bash | |
| # Imports DoD root certificates into Linux CA store | |
| # Version 0.4.2 updated 20250425 by AfroThundr | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| # For issues or updated versions of this script, browse to the following URL: | |
| # https://gist.github.com/AfroThundr3007730/ba99753dda66fc4abaf30fb5c0e5d012 | |
| # Dependencies: curl gawk openssl unzip wget |
| #!/bin/sh | |
| # Darkify Slack on Mac OS or Linux. | |
| # curl https://gist.githubusercontent.com/ryanpcmcquen/8a7ddc72460eca0dc1f2dc389674dde1/raw/darkify_slack.sh | sh | |
| if [ "`uname -s`" = "Darwin" ]; then | |
| SLACK_INTEROP_JS="/Applications/Slack.app/Contents/Resources/app.asar.unpacked/dist/ssb-interop.bundle.js" | |
| else | |
| SLACK_INTEROP_JS="/usr/lib/slack/resources/app.asar.unpacked/dist/ssb-interop.bundle.js" | |
| fi |
| kubectl get nodes --sort-by=".status.conditions[?(@.reason == 'KubeletReady' )].lastTransitionTime" |
| a4b.amazonaws.com | |
| access-analyzer.amazonaws.com | |
| account.amazonaws.com | |
| acm-pca.amazonaws.com | |
| acm.amazonaws.com | |
| airflow-env.amazonaws.com | |
| airflow.amazonaws.com | |
| alexa-appkit.amazon.com | |
| alexa-connectedhome.amazon.com | |
| amazonmq.amazonaws.com |
| #!/bin/bash | |
| ## This EC2 instance will need to be in the 'jenkins-ci-server' IAM Role | |
| # get latest updates | |
| sudo yum update -y | |
| # add Jenkins repo | |
| sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo | |
| # import key from Jenkins CI | |
| sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key |
| #!/bin/bash | |
| # lock script to prevent parallel running | |
| scriptname=$(basename "$0") | |
| pidfile="/tmp/${scriptname}-lock.pid" | |
| exec 200>"$pidfile" | |
| flock -n 200 || exit 1 | |
| pid=$$ | |
| echo $pid 1>&200 |
| #!/bin/bash | |
| name=$RANDOM | |
| url='http://localhost:9093/api/v1/alerts' | |
| echo "firing up alert $name" | |
| # change url o | |
| curl -XPOST $url -d "[{ | |
| \"status\": \"firing\", |
| "gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory" CentOS's and Fedora +22 workaround | |
| Install `redhat-rpm-config` | |
| $ sudo dnf install redhat-rpm-config |