Skip to content

Instantly share code, notes, and snippets.

@ac427
ac427 / sec.sh
Last active August 17, 2023 16:37 — forked from AriaFallah/sec.sh
MacOS security CLI wrapper
#!/usr/bin/env bash
# https://www.aria.ai/blog/posts/storing-secrets-with-keychain.html
#$ security create-keychain
#which will prompt us for the keychain name and password:
#$ security create-keychain
# keychain to create: secrets.keychain
# password for new keychain:
@ac427
ac427 / check-binds.sh
Created July 25, 2022 18:28 — forked from howardjohn/check-binds.sh
This script checks for the binds configured for applications in an Istio mesh, and determines which ports need custom configuration (both in the current Istio version, and potential future changes)
#!/usr/bin/env bash
# This script determines how applications in the mesh and exposed by a Service bind.
# Dependencies on host: kubectl, istioctl, jq.
# Dependencies on mesh: distroless is not supported, ipv6 untested. This script supports only Istio 1.8.1+.
# This will `exec` into the proxy, but only run ss, so it should be suitable to run in a live cluster.
#
# In Istio 1.9, localhost and wildcard binds are supported out of the box. A bind to POD_IP can be enabled
# with a custom Sidecar.
# In future versions of Istio, we may change this to support wildcard and POD_IP binds out of the box, and
@ac427
ac427 / example.ipynb
Created April 18, 2020 17:35 — forked from pelson/example.ipynb
Example of authenticating a GitHub app using jwt in Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
" Seth Kriticos' vimrc file
" Last update: 2010-03-19
" Note - This configuration is for cterm mode (color terminal)
" Never got around liking the GUI version
" (problematic command line integration)
" For GUI use, the highlight commands should be adjusted
" Editor behaviour
set nocompatible
set autoread
@ac427
ac427 / secret.rb
Created December 20, 2017 19:17 — forked from sethvargo/secret.rb
Example Chef extension to extract secrets from HashiCorp's Vault
# Please see the following blog post for more information:
#
# https://www.hashicorp.com/blog/using-hashicorp-vault-with-chef.html
#
resource_name :vault_secret
property :path, String, name_property: true
property :destination, String
@ac427
ac427 / update fork
Last active November 13, 2017 15:14 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date
### 1. Clone your fork:
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
### 2. Add remote from original repository in your forked repository:
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream OR git fetch --all
@ac427
ac427 / gist:cbc450208b1a6e62c23c724e6eed4949
Created October 18, 2017 18:42 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream