Skip to content

Instantly share code, notes, and snippets.

@jrussett
jrussett / text.md
Created March 26, 2020 23:10
macOS SSH auth agents a tmux

tmux windows should have the following environment variable to read from a forwarded (ssh -A) agent:

export SSH_AUTH_SOCK=/Users/${USER}/.ssh/ssh_auth_sock.local

For example: SSH_AUTH_SOCK=/Users/pivotal/.ssh/ssh_auth_sock.local

@jrussett
jrussett / example_concourse_pipeline_manifest.yml
Last active January 19, 2021 23:11
Example Concourse pipeline manifest
---
resource_types: []
resources: []
jobs:
- name: sample-job
plan:
- task: sample-task
config:
platform: linux
image_resource:
## Type Conversion
runtime, will panic if things go awry
whatever.(TYPE)
both whatever and type need to be an interface
compile time, mnust be compile-time verifiable
type(whatever)
@jrussett
jrussett / generate_qr_codes.md
Last active July 10, 2020 20:07
Easily generate QR codes and decode QR code images

QR Codes

Prerequisites

brew update
brew install qrencode zbar

Generating QR codes

@jrussett
jrussett / pan_globalprotect_notes.md
Last active March 30, 2023 12:55
Dealing with PaloAltoNetworks GlobalProtect VPN

Prevent Automatic daemon launching:

Modify the launchd agent for GlobalProtect:

sudo nvim /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist
  • Modify RunAtLoad and KeepAlive to <false/>
sudo nvim /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist
@jrussett
jrussett / skip_regexp.md
Created April 29, 2019 22:04
How to figure out the SKIP regex in ginkgo

Firstly, modify the ginkgo execution params to include:

-nodes=1 \ # no parallel
-seed=9 \  # always use same seed
-dryRun \  # really?
-v \       # verbose
--noColor \# remove ugly terminal color output 
--succinct # idk what this does but it makes it smaller
@jrussett
jrussett / terraform_nsxt_lbs.tf
Last active March 4, 2019 19:48
Example Terraform file for creating NSX-T Load Balancer to handle ingress traffic into a CF deployment. Warning: This file assumes that the other NSX-T resources required for a CF install, such as the T0/T1 routers, IP pools, etc.., have already been created. Without those primitives, terraform apply will not succeed.
#############
# Resources #
#############
# Active Health Monitors
resource "nsxt_lb_http_monitor" "lb_web_monitor" {
description = "The Active Health Monitor (healthcheck) for Web (HTTP(S)) traffic."
display_name = "${var.nsxt_lb_web_monitor_name}"
monitor_port = 8080
request_method = "GET"
request_url = "/health"
#!/usr/bin/env bash
# NOTE:
# "It's not a backup, and it's not a complete NSX-T configuration"
# This shell-script hits the NSX-T API to download the configuration
# of small subset of the NSX-T infrastructure changed by the
# NCP (NSX-T tile) agent.
#
@jrussett
jrussett / ubuntu_pkglist
Last active December 13, 2018 22:55
Packages that need extra setup
# install cmd
xargs -a packages.txt sudo apt-get install
# Packages that need extra/non-package manager setup
adobe-source-code-pro-fonts
[ -d /usr/share/fonts/opentype ] || sudo mkdir /usr/share/fonts/opentype
sudo git clone https://github.com/adobe-fonts/source-code-pro.git /usr/share/fonts/opentype/scp
sudo fc-cache -f -v
chruby && ruby-install
@jrussett
jrussett / test-cred-alert-cli.sh
Last active October 30, 2018 20:26
Testing the pivotal cred-alert-cli
#! /bin/bash
set -eux
tmpdir=$(mktemp -d)
pushd "$tmpdir" || return
git init