Skip to content

Instantly share code, notes, and snippets.

View swade1987's full-sized avatar

Steve Wade swade1987

View GitHub Profile
package logging
import (
"io/ioutil"
"os"
"github.com/lovoo/goka/logger"
log "github.com/sirupsen/logrus"
"github.com/urbn/gourbnkit/v2/urbnlog"
@swade1987
swade1987 / cheatsheet-elasticsearch.md
Created September 21, 2021 15:14 — forked from ruanbekker/cheatsheet-elasticsearch.md
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@swade1987
swade1987 / ssh_key.tf
Created March 12, 2021 16:49 — forked from irvingpop/ssh_key.tf
Terraform external data source example - dynamic SSH key generation
# ssh key generator data source expects the below 3 inputs, and produces 3 outputs for use:
# "${data.external.ssh_key_generator.result.public_key}" (contents)
# "${data.external.ssh_key_generator.result.private_key}" (contents)
# "${data.external.ssh_key_generator.result.private_key_file}" (path)
data "external" "ssh_key_generator" {
program = ["bash", "${path.root}/../ssh_key_generator.sh"]
query = {
customer_name = "${var.customer_name}"
customer_group = "${var.customer_group}"
@swade1987
swade1987 / 1-setup.md
Created March 19, 2020 11:29 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or Krypt.co.

@swade1987
swade1987 / signed-pgp-github.md
Created December 13, 2019 14:11 — forked from TheCureliestWalk/signed-gpg-github.md
How to create GPG Signed key with Keybase on Github

Sign PGP Key on Github with Keybase

mrkdwn-pass

Set everything up

  • Linux Computer (Windows or MacOS is compatible but you need to install GIT manually)
  • You need to install Keybase, login or sign up one if you don't have.
  • Your basic skill with Git and Github:

You need to know that Linux are have a default software: gpg for sign the GPG key. but we are going to use Keybase instead.

@swade1987
swade1987 / monzo-alertmanager-receiver.yaml
Created February 5, 2019 22:25 — forked from milesbxf/monzo-alertmanager-config.yaml
Monzo's Alertmanager Slack templates
receivers:
###################################################
## Slack Receivers
- name: slack-code-owners
slack_configs:
- channel: '#{{- template "slack.monzo.code_owner_channel" . -}}'
send_resolved: true
title: '{{ template "slack.monzo.title" . }}'
icon_emoji: '{{ template "slack.monzo.icon_emoji" . }}'
color: '{{ template "slack.monzo.color" . }}'