Skip to content

Instantly share code, notes, and snippets.

View scottrigby's full-sized avatar
🤓

Scott Rigby scottrigby

🤓
View GitHub Profile
@carolynvs
carolynvs / .gitconfig
Last active October 19, 2022 14:44
git wip - Show what branches you have been working on lately
[alias]
wip = for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads
@tegioz
tegioz / helm-import.go
Last active August 19, 2020 19:25
Script to import repositories in Helm Hub not present in Artifact Hub
package main
import (
"context"
"flag"
"fmt"
"io/ioutil"
"net/http"
"strings"
@jonsamp
jonsamp / dark-slack.sh
Created January 26, 2019 04:08
Script to see the dark side of slack
#!/bin/bash
sudo bash -c 'cat << 'EOF' >> /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
document.addEventListener("DOMContentLoaded", function() {
$.ajax({
url: "https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css",
success: function(css) {
let overrides = \`
code { background-color: #535353; color: #85c5ff; } /* Change color: to whatever font color you want */
.c-mrkdwn__pre, .c-mrkdwn__quote { background: #535353 !important; background-color: #535353 !important; }
\`
@scottrigby
scottrigby / Dockerfile
Last active August 22, 2018 00:07
bitnami-drupal-composer-persistence
FROM bitnami/drupal:8
COPY custom-app-entrypoint.sh /
ENTRYPOINT ["/custom-app-entrypoint.sh"]
CMD ["/run.sh"]
@scottrigby
scottrigby / Dockerfile
Created August 11, 2018 19:12
Example Composer deps for Bitnami Drupal image
FROM bitnami/drupal:8
# Allow user codebase to include a custom composer merge file.
# See https://github.com/wikimedia/composer-merge-plugin.
COPY merge-composer.json /opt/bitnami
RUN apt-get update && apt-get install -y jq
RUN cd /opt/bitnami/drupal \
&& tmp=$(mktemp) \
&& cat composer.json | jq '.extra."merge-plugin".include |= .+ ["../merge-composer.json"]' > "$tmp" \
&& mv "$tmp" composer.json \
@scottrigby
scottrigby / rbac-config.sh
Last active November 8, 2018 17:13
RBAC for Tiller script
#!/bin/sh
# See https://github.com/kubernetes/helm/blob/master/docs/rbac.md#tiller-and-role-based-access-control
echo 'apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
@scottrigby
scottrigby / raw_joke.sh
Last active January 20, 2018 04:36
Raw gist joke
#!/bin/bash
echo 'Why did the guy get fired from the orange juice factory?'; read ANSWER;
echo "He couldn’t concentrate! 🍊😂😭. But '${ANSWER}' is funny too."
@mattfarina
mattfarina / reqs.md
Last active October 10, 2017 17:11

Hosted Chart Repository Requirements

Background

Kubernetes Helm has the ability to work with remotely hosted Charts. While charts can be seen in the community provided charts, the charts themselves can be privately or separately hosted for an organization or individual.

There are currently 3 major ways to host your own chart repository:

  • Helm provides a means to generate a chart repository that can be hosted on a web server, object storage, or via a similar setup.
  • App Registry provides a system, similar to the handling of Docker images, to store charts. In this setup one can push or pull charts in a similar way to container images. There is a spec and Quay, the image hosting service, has implemented it. For Helm to interact with this API a plugin is required.
@scottrigby
scottrigby / k8s_charts_bump_dependency_version.sh
Last active September 3, 2017 18:31
kubernetes/charts dependency update script
#!/bin/bash
# @file
# See HELP().
# This script is useful until functionality is adopted into Helm.
#
# Follow @link https://github.com/kubernetes/helm/issues/1947 the issue. @endlink
# Define SCRIPT var for help and validation output.
SCRIPT=`basename ${BASH_SOURCE[0]}`