Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jbayer
jbayer / nslookup.txt
Created July 11, 2022 18:20
HCP Vault DNS Example
nslookup your-cluster-name-here.vault.your-project-id-here.aws.hashicorp.cloud
Server: 192.168.86.1
Address: 192.168.86.1#53
Non-authoritative answer:
Name: your-cluster-name-here.vault.your-project-id-here.aws.hashicorp.cloud
Address: 34.215.184.84
Name: your-cluster-name-here.vault.your-project-id-here.aws.hashicorp.cloud
Address: 54.185.0.185
Name: your-cluster-name-here.vault.your-project-id-here.aws.hashicorp.cloud

Keybase proof

I hereby claim:

  • I am jbayer on github.
  • I am jambay (https://keybase.io/jambay) on keybase.
  • I have a public key ASBNEqvKihkY657SPA0MAd-d9y6lUrXSkVw-i8_Zv2iAIQo

To claim this, I am signing this object:

@jbayer
jbayer / waypoint-k8s-do.yml
Created November 1, 2020 19:06
Waypoint 0.1.4 k8s yaml for Digital Ocean
---
apiVersion: v1
kind: Service
metadata:
name: waypoint
namespace: default
spec:
ports:
- port: 9701
@jbayer
jbayer / Good Group PM Bad Group PM By Ben Horowitz and David Weiden
Created May 28, 2014 04:01
Good Group PM Bad Group PM By Ben Horowitz and David Weiden
Good Group Product Manager /
Dead Group Product Manager
By Ben Horowitz and David Weiden
"Gentlemen, we're going to have a sales contest. First prize is a new car. Second prize is a knife set. Third prize is you're fired." - From the movie Glengary Glenross
"There are no bad group product managers, just group product managers that make bad decisions and then get fired." - Ben Horowitz
Group Product Manager is the most important non-executive position in a software company. In fact, it is more important and has higher impact on the company than many executive posts. A failed product can sink the company. A successful product can literally redefine the course of the business. Nobody is more responsible or more accountable for a product than the Group Product Manager. As a result, the job is characterized by massive success, massive failure, and little in between. Most GPMs are either promoted or end up leaving the company or being assigned to less hazardous duty within a short period of time.
@jbayer
jbayer / Server.xml
Created June 7, 2012 05:09
Disable the Tomcat shutdown port.
<Server port=”-1” command=”SHUTDOWN”>
@jbayer
jbayer / cf-cli-output.txt
Created August 10, 2016 14:51
cf push error when omitting app name
$ cf push -m 64M
FAILED
Manifest file is not found in the current directory, please provide either an app name or manifest
NAME:
push - Push a new app or sync changes to an existing app
USAGE:
Push a single app (with or without a manifest):
cf push APP_NAME [-b BUILDPACK_NAME] [-c COMMAND] [-d DOMAIN] [-f MANIFEST_PATH] [--docker-image DOCKER_IMAGE]
@jbayer
jbayer / gist:8670085
Created January 28, 2014 15:47
find either zip or tgz files
if [[ "$file" =~ \.(tgz|zip)$ ]]; then
echo "found and archive";
fi;
$ ls -al
total 8
drwxr-xr-x 4 jamesbayer wheel 136 Jan 26 09:00 .
drwxrwxrwt 24 root wheel 816 Jan 26 15:59 ..
-rw-r--r--@ 1 jamesbayer wheel 102 Jan 26 16:04 .buildpacks
-rw-r--r-- 1 jamesbayer wheel 0 Jan 26 09:00 .gitbuildpack
$ cat .buildpacks
https://github.com/jbayer/git-buildpack.git
https://github.com/cloudfoundry/heroku-buildpack-ruby.git
$ gcf env hello
@jbayer
jbayer / gist:8415149
Created January 14, 2014 08:42
example ratpack app
$ gcf p ratpack-james -p example-ratpack-gradle-groovy-app-fat.jar --no-route
Updating app ratpack-james in org jwatters-org / space staging as jbayer@gopivotal.com...
OK
Uploading ratpack-james...
OK
Starting app ratpack-james in org jwatters-org / space staging as jbayer@gopivotal.com...
OK
@jbayer
jbayer / startAndExitOnAnyChildExit.sh
Last active January 2, 2016 22:09
starts multiple processes and checks every second if each of them are alive, exiting the parent when any of the children exit
#!/bin/bash
function startChildProcesses
{
for cmd in "$@"; do {
$cmd & pid=$!
echo "Process \"$cmd\" started with pid $pid";
PID_LIST+=" $pid";
} done