Skip to content

Instantly share code, notes, and snippets.

View nballenger's full-sized avatar

Nick Ballenger nballenger

  • Seneca, SC
View GitHub Profile
@nballenger
nballenger / Dockerfile.client_cluster
Created March 7, 2023 21:46
Attaching multiple compose clusters to a pre-existing Docker network
# Should be in ./client_cluster/Dockerfile
FROM python:3.9-bullseye
ADD ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
#!/bin/bash
mkdir click_cmd_as_fn
cd click_cmd_as_fn
pipenv install click
touch my_click_cmd.py module_calling_the_click_cmd.py
chmod 755 my_click_cmd.py module_calling_the_click_cmd.py
@nballenger
nballenger / DeveloperFullAccess.json
Created March 4, 2021 17:05
AWS IAM policy for developers within a separate Organization account
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"application-autoscaling:*",
"rds:*",
"codestar:*",
@nballenger
nballenger / .ssh-slash-config
Created January 30, 2020 20:29
private-git-in-container-build
Host github.com
Hostname github.com
User git
IdentityFile ~/.ssh/inside-docker-container

Keybase proof

I hereby claim:

  • I am nballenger on github.
  • I am nballenger (https://keybase.io/nballenger) on keybase.
  • I have a public key ASBawhI15-UDjjZAZEzaNjolNJBhb71AIygJjKmPJggDKgo

To claim this, I am signing this object:

@nballenger
nballenger / busted_getitem.md
Created October 19, 2018 02:33
What about reducing over getitem doesn't work?
$ python3 -q
>>> data_obj = { 
...     'alpha': { 
...         'bravo': [
...             {'charlie': 1}, 
...             {'delta': 2},
...         ]
...     }
... }