Skip to content

Instantly share code, notes, and snippets.

View SteveEasley's full-sized avatar

Steve Easley SteveEasley

  • Fandom
View GitHub Profile
@SteveEasley
SteveEasley / gist:66e228e4b7159fe3c6d8522868010fff
Last active February 20, 2020 16:53
Example of patching an existing Kubernetes Ingress with a new rule
This is an example of how to do a JSON Patch (RFC 6902) on an existing Kubernetes Ingress.
I could not get it to work with the Strategic Merge patch method using yaml. It would just
replace all the existing rules.
$ kubectl patch ingress some-ingress --type json -p "$(cat test-patch.json)"
# test-patch.json
[{
"op": "add",
"path": "/spec/rules/-",
@SteveEasley
SteveEasley / build_cross_gcc
Last active October 15, 2017 12:43 — forked from preshing/build_cross_gcc
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
apt-get update && apt-get install -y wget g++ make gawk texinfo xz-utils vim
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
#define BUFF r1
#define BUFF_POS r2.b0
#define STB_IN r31.t16
#define CLK_IN r31.t5
#define DATA_IN r31.t2
START:
LBCO r0, C4, 4, 4
CLR r0, r0, 4
SBCO r0, C4, 4, 4
M www/js/trackContact.src.js
M www/js/rating_slider.src.js
M www/js/rating_slider.minLocal.js
M www/js/global/lightbox.src.js
M www/js/global/gsdw.src.js
M www/js/global/gsdw.minLocal.js
M www/js/ema/scavenger.js
M www/js/multifile.js
M www/js/thumbrater.src.js
M www/js/image_viewer.js
@SteveEasley
SteveEasley / redis-server
Created April 24, 2013 12:22
Centos 6 Redis Start Script
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid