Skip to content

Instantly share code, notes, and snippets.

View kevholmes's full-sized avatar

Kevin Holmes kevholmes

View GitHub Profile
@kevholmes
kevholmes / curl_for_wi_pod.sh
Created February 2, 2023 20:44
get SA email for Workload Identity pod
#!/bin/sh
curl -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/email
@kevholmes
kevholmes / rpm-digital-signature.sh
Created February 10, 2017 19:23 — forked from fernandoaleman/rpm-digital-signature.sh
How to sign your custom RPM package with GPG key
# How to sign your custom RPM package with GPG key
# Step: 1
# Generate gpg key pair (public key and private key)
#
# You will be prompted with a series of questions about encryption.
# Simply select the default values presented. You will also be asked
# to create a Real Name, Email Address and Comment (comment optional).
#
# If you get the following response:
@kevholmes
kevholmes / run-multiple-redis-instances.md
Created March 11, 2016 20:17 — forked from jarvys/run-multiple-redis-instances.md
run multiple redis instances on the same server for centos
  • create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf
  • edit /etc/redis-xxx.conf, illustrated as below
...
@kevholmes
kevholmes / gist:7988625
Created December 16, 2013 15:13
Had someone request an init script for deluge on CentOS
#!/bin/bash
# chkconfig: 2345 90 90
# description: program_name
### BEGIN INIT INFO
# Provides: deluged
# Required-Start: network
# Required-Stop: network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Start the program