Skip to content

Instantly share code, notes, and snippets.

View cfryanr's full-sized avatar

Ryan Richard cfryanr

View GitHub Profile
# Generated by Powerlevel10k configuration wizard on 2020-09-12 at 21:53 PDT.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 49789.
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, dark,
# 12h time, angled separators, sharp heads, flat tails, 2 lines, disconnected, no frame,
# compact, many icons, concise, transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
authors:
rr: Ryan Richard; richardry
ak: Andrew Keesler; akeesler
mk: Monis Khan; mok
ap: Aram Price; pricear
mm: Matt Moyer; moyerm
mc: Margo Crawford; margaretc
email:
domain: vmware.com
global: true
[core]
# pager = delta
[interactive]
# diffFilter = delta --color-only
[delta]
side-by-side = true
#syntax-theme = Dracula
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export PATH=$HOME/go/bin:$PATH
# On linux also add the path to brew and a place to put chromedriver...
if [[ "$OSTYPE" != "darwin"* ]]; then

Laptop Setup Tips

Moving from an older laptop? Bring these files over.

  • In Safari, "File -> Export -> Bookmarks"
  • Make a copy of ~/.zsh_history
  • Make a copy of github public and private keys from ~/.ssh or wherever you kept them
  • Check your Downloads folder for anything worth keeping

Helpful Brew Casks

@cfryanr
cfryanr / policy.yml
Created March 17, 2020 23:16
Sketch of enhancing Istio authn policy to allow configuration of the istio-ecosystem/authservice
apiVersion: "authentication.istio.io/v1alpha1"
kind: "Policy"
metadata:
name: "authcode-sample-app-authn-policy"
spec:
targets:
- name: authcode-sample-app
principalBinding: USE_ORIGIN
origins:
- jwt:
@cfryanr
cfryanr / policy.yml
Last active March 17, 2020 23:17
Sketch of enhancing Istio authn policy to allow configuration of any ext_authz filter
apiVersion: "authentication.istio.io/v1alpha1"
kind: "Policy"
metadata:
name: "authcode-sample-app-authn-policy"
spec:
targets:
- name: authcode-sample-app
principalBinding: USE_ORIGIN
origins:
- jwt:
@cfryanr
cfryanr / heap.rb
Created March 2, 2017 17:46
A very rough draft of a ruby heap analyzer
# This is just a sketch of some useful tools for analyzing ruby
# heap dump files while investigating memory leaks. Maybe I'll
# clean this up and make a gem out of it some day.
require 'json'
require 'pp'
require 'set'
def for_each_line(method)
File.open('/tmp/heap.json', 'r') do |f|