This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: mypod | |
spec: | |
containers: | |
- name: mycontainer | |
image: myimage | |
resources: | |
limits: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: deny-todos | |
name: Denies TODOs or FIXME | |
description: 'Denies TODOs or FIXME in commits' | |
entry: run.sh | |
language: script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
region = "us-west-2" | |
profile = "md-sandbox" | |
} | |
resource "aws_s3_bucket" "dont_create_me_in_same_script_obvi" { | |
bucket = "terraform-provisioning-cache" | |
acl = "private" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Kratos do | |
defmodule Behaviour do | |
@moduledoc """ | |
Defines function signature for secrets adapters | |
""" | |
@callback who_am_i(String.t()) :: {:ok, map()} | {:error, :unauthenticated} | |
end | |
@behaviour Kratos.Behaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "3" | |
networks: | |
local-dev: | |
driver: bridge | |
--- | |
version: "3" | |
services: | |
shell: | |
image: busybox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# This uses the silver searcher (ag) | |
TMP_FILE=$(mktemp) | |
# find :ok tuples w/ no error match | |
ag "^\s{0,}\{:ok.*\s=" --ignore 'test' -G '.ex$' . > ${TMP_FILE} | |
# find :ok left side matches w/ no error handling | |
ag "^\s{0,}:ok.*=" --ignore 'test' -G '.ex$' . >> ${TMP_FILE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# annoy emoji-name your message here | |
annoy() { | |
emoji=$1 | |
msg="${@:2}" | |
figlet -f banner $msg | sed -e"s/#/:$emoji:/g" | sed -e's/ /:blank:/g' | pbcopy | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME TITLE | |
abusiveexperiencereport.googleapis.com Abusive Experience Report API | |
acceleratedmobilepageurl.googleapis.com Accelerated Mobile Pages (AMP) URL API | |
accessapproval.googleapis.com Access Approval API | |
accesscontextmanager.googleapis.com Access Context Manager API | |
actions.googleapis.com Actions API | |
adexchangebuyer-json.googleapis.com Ad Exchange Buyer API | |
adexchangebuyer.googleapis.com Ad Exchange Buyer API II | |
adexchangeseller.googleapis.com Ad Exchange Seller API | |
adexperiencereport.googleapis.com Ad Experience Report API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> ./module <== | |
==> ./module/main.tf <== | |
variable "msg" {} | |
resource "null_resource" "goodbye" { | |
provisioner "local-exec" { | |
command = "echo ${var.msg}" | |
} | |
} | |
==> ./main.tf <== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "action_dispatch" | |
require "json" | |
# RIP your CPU if you have a lot of traffic. Check out the parallel gem w/ multiple processes to speed this up. | |
list_of_url_paths_visited = File.readlines("list_of_url_paths_visited.txt", chomp: true) | |
# YMMV | |
# the 2nd or 3rd column will be the path w/ awk | |
rake_routes_paths = `rake routes | awk '{if ($2 ~ /\\//) {print $2} else if ($3 ~ /\\//) {print $3}}'`.split("\n") | |
NewerOlder