jq is useful to slice, filter, map and transform structured json data.
brew install jq
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your **location** block(s): | |
# | |
# include cors_support; | |
# | |
# As of Nginx 1.7.5, add_header supports an "always" parameter which |
addEventListener('fetch', event => { | |
event.respondWith(purgeCache(event.request)) | |
}) | |
async function purgeCache(request) { | |
const url = new URL(request.url) |
#!/bin/bash | |
# USAGE: ./create-aws-console-user.sh $GROUPNAME $USERNAME $PASSWORD | |
# http://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html#id_users_create_cliwpsapi | |
# Create administrator group | |
aws iam create-group --group-name $1 |
brew install mutt
brew install terminal-notifier
terminal-notifiergem install imap_notifier
imap_notifierbrew install urlview
brew install w3m
(links
would be OK too)* CLI that tracks, analyzes, prioritizes, and warns of infrastructure drift (https://driftctl.com/) | |
* k8syaml - for online define of your manifests (https://k8syaml.com/) | |
* ytt - yaml templating tool (https://get-ytt.io/) | |
* kapp - control kubernetes resource changes during deploys (https://carvel.dev/kapp/) | |
* k9s - great console to manage your k8s (https://github.com/derailed/k9s) |
cat <<EOF | kind create cluster --config=- | |
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
nodes: | |
- role: control-plane | |
kubeadmConfigPatches: | |
- | | |
kind: InitConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: |
@binkmail.com | |
@bobmail.info | |
@chammy.info | |
@devnullmail.com | |
@letthemeatspam.com | |
@mailinater.com | |
@mailinator.net | |
@mailinator2.com | |
@notmailinator.com | |
@reallymymail.com |
// Package lfshook is hook for sirupsen/logrus that used for writing the logs to local files. | |
package lfshook | |
import ( | |
"fmt" | |
"github.com/sirupsen/logrus" | |
"io" | |
"log" | |
"os" | |
"path/filepath" |