Skip to content

Instantly share code, notes, and snippets.

View thegreyd's full-sized avatar
:shipit:
Working from home

Siddharth Sharma thegreyd

:shipit:
Working from home
  • Red Hat @openshift
  • Toronto, Canada
  • 13:00 - 4h behind
View GitHub Profile
@thegreyd
thegreyd / review-release-config
Created April 17, 2023 15:57 — forked from joepvd/review-release-config
Review release configuration
#!/usr/bin/env python
import requests
from ruamel import yaml
import sys
versions = ["4.10", "4.11", "4.12", "4.13", "4.14"]
def get_data():
@joepvd
joepvd / review-release-config
Last active November 21, 2024 09:36
Review release configuration
#!/usr/bin/env python
import requests
from ruamel import yaml
import sys
versions = ["4.12", "4.13", "4.14", "4.15", "4.16", "4.17", "4.18", "4.19"]
yml = yaml.YAML(typ='safe', pure=True)
@briceburg
briceburg / print-jenkins-secret-file-contents.groovy
Created June 8, 2021 16:08
Print content of secret files from the Jenkins Credentials Store
import com.cloudbees.plugins.credentials.*;
import com.cloudbees.plugins.credentials.domains.Domain;
import org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl;
//
// modify fileName to match the filename of the secret(s) you want to print.
// (ID would probably be more helpful... yay stack overflow copy pasta)
// alternatively comment out the filter [line 15] to dump all secret files.
//
def fileName = "secrets.env"
@threeiem
threeiem / keychron-k2-function-keys-fedora33.md
Last active February 3, 2025 04:41
Keychron K2 Function and Multimedia Keys (Fedora)

Keychron K2 or C1 Funtion and Multimedia Keys (Fedora)

Keyboard Mode Switch

On the left hand side of the keyboard there are two switches. Slide the switch closest to the USB port to "Win/Android". The writing can be very difficult to read because of the small letters. The "Win/Android" position on the switch is closest to the USB port.

Keyboard Mode for Function and Multimedia Keys

## OpenShift4 pull-secret:
1. Download your pull-secret from [console.redhat.com](https://console.redhat.com/openshift/install/aws/installer-provisioned)
- click on “Download Pull Secret”. Save it somewhere, e.g. ~/some-dir/pull-secret
2. Add the apps.ci auth to pull-secret! _internal OpenShift developers only_
- Obtain an API token by visiting https://oauth-openshift.apps.ci.l2s4.p1.openshiftapps.com/oauth/token/request
copy the oc login cmd and paste in terminal to login to the ci cluster, then run this:
- `$ oc registry login --to ~/some-dir/pull-secret`
This will append the auth from registry.ci.openshift.org to your cloud.openshift.com pull-secret but it will also
make the pull-secret multi-line.
@ravron
ravron / README.md
Last active May 5, 2025 15:25
Options to prevent accidental Yubikey OTP triggering

Tired of spamming Yubikey one-time password (OTP) codes into Slack? Here are two options to help prevent that. You can do either or both. Both require ykman, the Yubikey CLI configuration manager. Get it with Homebrew:

brew install ykman

If you…

@rossant
rossant / latest_pandoc.sh
Created March 28, 2016 14:14
Install latest .deb pandoc, using the GitHub release page -- useful on CI systems
URL="https://github.com/jgm/pandoc/releases/latest"
PANDOCPAGE="$(wget $URL -q -O -)"
DEBURL="$(echo $PANDOCPAGE | grep -oP '"([^"]+.deb)"')"
DEBURL="${DEBURL:1:-1}"
URL="http://github.com/$DEBURL"
wget $URL -O pandoc.deb
sudo dpkg -i pandoc.deb
@thisismitch
thisismitch / corridors_of_code.rb
Created November 18, 2015 05:36
Sonic Pi Songs
# Chrono Trigger Soundtrack - Corridors of Time
# plug this into http://sonic-pi.net/
# still needs synth pads
# global config
use_bpm 112
def play_legato_note(note_value, duration)
release_duration = duration
@iocanel
iocanel / jenkins-setup-credentials.groovy
Created September 1, 2015 09:12
Setup Jenkins Credentials
import jenkins.model.*
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.plugins.credentials.impl.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import hudson.plugins.sshslaves.*;
domain = Domain.global()
store = Jenkins.instance.getExtensionList('com.cloudbees.plugins.credentials.SystemCredentialsProvider')[0].getStore()
@itay-grudev
itay-grudev / rvm.fish
Last active December 12, 2024 16:00
Using RVM with Fish Shell in just 6 lines of code
# ~/.config/fish/functions/rvm.fish
function rvm --description "Ruby Version Manager"
exec bash --login -c "rvm $argv; exec fish" ^&1
end