Skip to content

Instantly share code, notes, and snippets.

View joerocklin's full-sized avatar

Joe Rocklin joerocklin

View GitHub Profile
@joerocklin
joerocklin / chat.md
Created March 7, 2023 13:20
ChatGPT - UPS Bootcamp

Imagine a world where UPS needs to implement a bootcamp program similar to the US Navy Seals in order to select new drivers. Describe the process of a recruit going through selection. You decide if they make the cut to wear the illustrious brown uniform.

In this hypothetical world, UPS has decided to implement a rigorous bootcamp program for selecting new drivers, similar to the US Navy Seals. The goal is to ensure that only the best candidates make it through the selection process and earn the right to wear the illustrious brown uniform.

The selection process for the UPS driver bootcamp program is as follows:

  1. Application and Screening: Prospective candidates submit an application online, which includes basic information such as their name, contact information, and work experience. The application also includes a series of questions designed to assess the candidate's aptitude and fitness for the program.

  2. Physical Fitness Test: Candidates who pass the initial screening are then invited to take a ph

@joerocklin
joerocklin / s3bucket-example-indented.yaml
Last active October 24, 2018 17:14
aws service operator s3 CFN templates
apiVersion: service-operator.aws/v1alpha1
kind: CloudFormationTemplate
metadata:
name: s3bucket
namespace: aws-service-operator
data:
key: s3bucket.yaml
template: |
AWSTemplateFormatVersion: 2010-09-09
Description: 'AWS Operator - Amazon S3 Bucket'
@joerocklin
joerocklin / gopath-setup.ps1
Last active January 11, 2016 21:04
Setup the current working directory as your GOPATH
# Set the GOPATH directory for this user
Write-Output "Setting $pwd as GOPATH user environment variable"
[Environment]::SetEnvironmentVariable("GOPATH",$pwd,"User")
$Env:GOPATH = $pwd
# Update the user's PATH to include the bin directory underneath GOPATH
$goBinPath = Join-Path $pwd 'bin'
if ($([Environment]::GetEnvironmentVariable("Path","User")).ToLower().Contains($($goBinPath).ToLower()) -eq $false ) {
Write-Output "Adding $goBinPath to User Path"
[Environment]::SetEnvironmentVariable("Path","$goBinPath;$Env:Path","User")
@joerocklin
joerocklin / safe_reset_haproxy.sh
Created January 6, 2015 21:35
safe haproxy reload
#!/bin/bash
# This checks which ports haproxy currently is listening on, temporarily drops SYN packets
# to prevent new connections, reloads haproxy, then allows SYNs again.
#
# Based on info from here:
# * https://github.com/aws/opsworks-cookbooks/pull/40
# * http://www.mail-archive.com/haproxy@formilux.org/msg06885.html
#set -x
@joerocklin
joerocklin / keybase.md
Created March 16, 2014 18:02
Keybase Verification

Keybase proof

I hereby claim:

  • I am joerocklin on github.
  • I am joerocklin (https://keybase.io/joerocklin) on keybase.
  • I have a public key whose fingerprint is B1D2 344E A7F8 8F09 EB23 F896 789A CCDC B783 B3CB

To claim this, I am signing this object: