Skip to content

Instantly share code, notes, and snippets.

:octocat:
Config as Code? Kong Figaw's Code!

Nicolaj Græsholt figaw

:octocat:
Config as Code? Kong Figaw's Code!
Block or report user

Report or block figaw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@figaw
figaw / SLACK-API-EXAMPLE.MD
Created Sep 30, 2019
An example of using the Slack Api
View SLACK-API-EXAMPLE.MD

Slack API Example: How to get a list of channels.

Create a new app

  1. Go to https://api.slack.com/
  2. Click "Start Building"
  3. Create a new app

Figure out needed permissions

@figaw
figaw / charter.sh
Created Sep 25, 2019
QoL script for templating a number of "values-*.yaml" files for Helm. #Kubernetes #k8s #Helm
View charter.sh
#!/bin/bash
CHARTNAME=oauth2-proxy #used in flatten()
## USAGE
# 000. replace the CHARTNAME above
# 00. `cd` to the `chartname`-folder (the one containing the `Charts.yaml`-file)
# 0. Append the .gitignore
# --- .gitignore ---
# # script
# charter.sh
# # m-folders and values-
View circle-packing-anonymous.json
This file has been truncated, but you can view the full file.
{
"name": "flare",
"children": [
{
"name": "QueueRemote",
"children": [
{
"name": "Stormy Metsky",
"size": 4,
View appalayah-anonymized-circle.json
{
"name": "flare",
"children": [
{
"name": "./QueueRemote",
"children": [
{
"name": "Stormy Metsky",
"size": 4,
"color": "#E873B2"
View contrib-colors-teams.json
{
"name": "flare",
"children": [
{
"name": "./compat",
"children": [
{
"name": "Anton Serbulov",
"size": 1,
"color": "#FEED4E"
View contrib-colors.json
{
"name": "flare",
"children": [
{
"name": "./block-sha1",
"children": [
]
},
{
@figaw
figaw / contribs-wo-contrib-contribcomp-po
Created Jan 16, 2019
from contribs-wo-t-builtin-docs
View contribs-wo-contrib-contribcomp-po
{
"name": "flare",
"children": [
{
"name": "./block-sha1",
"children": [
]
},
{
View contribs-wo-t-builtin-docs
{
"name": "flare",
"children": [
{
"name": "./block-sha1",
"children": [
]
},
{
View gist:2bb6cb80e7abf23ae24b12e42665a164
{
"name": "flare",
"children": [
{
"name": "./Documentation",
"children": [
{
"name": "Johannes Schindelin",
"size": 20
},
@figaw
figaw / service-account.yaml
Created Feb 1, 2018
service-account-for-kubernetes-dashboard
View service-account.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kubernetes-dashboard
labels:
k8s-app: kubernetes-dashboard
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
You can’t perform that action at this time.