Skip to content

Instantly share code, notes, and snippets.

View ericreeves's full-sized avatar

Eric Reeves ericreeves

  • HashiCorp
  • Houston, TX
  • 01:29 (UTC -05:00)
  • X @ericreeves
View GitHub Profile
Fri Apr 15 14:47:50 UTC 2016
# Wrapper module for _ssl, providing some additional facilities
# implemented in Python. Written by Bill Janssen.
"""This module provides some more Pythonic support for SSL.
Object types:
SSLSocket -- subtype of socket.socket which does SSL over the socket
Exceptions:

Keybase proof

I hereby claim:

  • I am ericreeves on github.
  • I am ericreeves (https://keybase.io/ericreeves) on keybase.
  • I have a public key ASADcxUC__xchLQ2nBpazeD7aBIeUWHqgAktrR6hxE7Z7go

To claim this, I am signing this object:

@ericreeves
ericreeves / boxstarter-admin.txt
Last active March 28, 2022 17:51
Windows Bootstrap
#
#-------------------------------------------------------------------------------
#------------------------- Eric's BoxStarter Magic -----------------------------
#-------------------------------------------------------------------------------
#
# Borrowed from piles of other BoxStarter scripts, assembled the way I like it.
#
#
#-------------------------------------------------------------------------------
@ericreeves
ericreeves / AddingModulesToPMR.md
Created June 27, 2022 22:45
Adding Modules to Terraform Cloud's Private Module Registry from an Unsupported VCS

Adding Modules to TFE's Private Module Registry

The following procedure can be used to add Terraform modules to TFE's Private Module Registry when they are in a VCS system that is not supported by TFE. Note that we are using the Registry Modules endpoint of the TFE API. ​ The procedure for adding a module without a backing VCS registry has 5 main steps:

  1. Clone the repository containing the module.
  2. Create the module.
  3. Create a module version.
  4. Package the module into a compressed tar (tar.gz) file.
  5. Upload the tar to the module version's upload URL. ​
@ericreeves
ericreeves / Makefile
Last active September 22, 2022 15:50
docker-compose Makefile
THIS_FILE := $(lastword $(MAKEFILE_LIST))
help:
@make -pRrq -f $(THIS_FILE) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
build:
docker-compose -f docker-compose.yml build $(c)
up:
docker-compose -f docker-compose.yml up -d $(c)
start:
docker-compose -f docker-compose.yml start $(c)
down:
@ericreeves
ericreeves / docker-compose.yml
Last active October 17, 2022 00:45
astro-docker
version: '3.7'
x-base:
&base
restart: unless-stopped
networks:
- airflow_docker_net
logging:
driver: json-file
options:
@ericreeves
ericreeves / monitoring.conf
Last active November 15, 2022 01:07
tmux Monitoring Panes Example
send-keys 'echo Top Left' C-m
split-window -h
send-keys 'echo Top Right' C-m
select-pane -t 0
split-window -v
send-keys 'echo Bottom Left' C-m
select-pane -t 2
split-window -v
send-keys 'echo Bottom Right' C-m
@ericreeves
ericreeves / active_border.ahk
Last active April 26, 2024 02:58
AHK Script for Active Window Border in Windows 11 22H2
;
; Inspiration / Code Jacked from the following resources:
; https://www.reddit.com/r/windowsporn/comments/x6299x/a_small_effect_on_window_switching/
; https://superuser.com/questions/1190658/fine-tune-this-red-border-around-active-window-ahk-script/1191059#1191059?newreg=d3acdcdab8714e76a5efeca9996e792f
; https://www.autohotkey.com/boards/viewtopic.php?f=6&t=110505
; https://discord.com/channels/898554690126630914/898556726108901386/1053662963585781760 # Komorebi Discord
;
#NoEnv
#SingleInstance, Force
#export VAULT_TOKEN="<root>"
export NS="TEST-NAMESPACE"
echo "--- Creating namespace"
vault namespace create $NS
echo "--- Enable approle auth within namespace"
vault auth enable -namespace=$NS approle
# create policy
echo "--- Writing ns-admin policy"
echo '# Read TEST-NAMESPACE Namespace