Skip to content

Instantly share code, notes, and snippets.

View lucymhdavies's full-sized avatar
🍓
Strawb System

Lucy Davinhart || Strawb System lucymhdavies

🍓
Strawb System
View GitHub Profile
@lucymhdavies
lucymhdavies / dabblet.css
Created January 1, 2012 19:36
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;

Keybase proof

I hereby claim:

  • I am lucymhdavies on github.
  • I am lmhd (https://keybase.io/lmhd) on keybase.
  • I have a public key whose fingerprint is 9DAC 53FB 18AB 8C5D F0E2 AA5B 330C B62A E334 C5E2

To claim this, I am signing this object:

package cmd
import (
"github.com/docker/go-connections/nat"
"github.com/skybet/cali"
)
func init() {
@lucymhdavies
lucymhdavies / README.md
Created January 25, 2018 23:12
Experimenting with marcusolsson/tui-go as a search/list combobox
FROM ubuntu:18.04
MAINTAINER muebau
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /
VOLUME ["/config"]
VOLUME ["/output"]
VOLUME ["/world"]
@lucymhdavies
lucymhdavies / signdance.go
Created January 26, 2019 20:28 — forked from Deleplace/signdance.go
Source code for a sample Google Cloud Function
# Copyright 2019 Google LLC
# SPDX-License-Identifier: Apache-2.0
package p
import (
"fmt"
"image"
"image/color"
"image/draw"
"image/gif"
@lucymhdavies
lucymhdavies / nope.sh
Last active February 21, 2020 15:52
For when your computer just doesn't want to listen to you anymore...
#!/bin/bash
# Usage:
# source <(curl -L https://straw.be/nope.sh)
for c in $(\compgen -A function -abck); do \eval "\alias $c='\echo NOPE #'"; done
@lucymhdavies
lucymhdavies / status.sh
Created January 2, 2021 14:01
Set Discord Status via API
#!/bin/bash
DISCORD_TOKEN="REDACTED"
for i in $(seq 69 -1 0); do
curl 'https://discord.com/api/v8/users/@me/settings' \
-X 'PATCH' \
-H "authorization: ${DISCORD_TOKEN}" \
-H 'content-type: application/json' \
@lucymhdavies
lucymhdavies / pki.tf
Last active May 10, 2021 20:59
Vault PKI Terraform
# Terraforming the example from here:
# https://learn.hashicorp.com/tutorials/vault/pki-engine
#
# Root CA
#
resource "vault_mount" "pki_root" {
path = "pki/root"
@lucymhdavies
lucymhdavies / README.md
Last active July 7, 2021 12:01
Dynamic Terraform for Vault PKI Roles

Terraform plan to create this example looks like:

  # vault_pki_secret_backend_role.pki_roles["pki/inter/davnet.lmhd.me.yaml"] will be created
  + resource "vault_pki_secret_backend_role" "pki_roles" {
      + allow_any_name                     = false
      + allow_bare_domains                 = false
      + allow_glob_domains                 = false
      + allow_ip_sans                      = true
      + allow_localhost                    = false