Skip to content

Instantly share code, notes, and snippets.

View dustinmm80's full-sized avatar

Dustin Collins dustinmm80

  • Kansas City, MO
View GitHub Profile
@dustinmm80
dustinmm80 / secretless.md
Created September 21, 2018 21:42
dynamic secrets are a bandaid. get rid of the secrets altogether

do our applications really need to have access to secrets, exposing them as yet another threat vector for credential theft and loss?

i'm an engineer on the cyberark/conjur team. we'd love feedback on our new project, secretless. it is free (as in free, not as in beer) OSS and we think it will help solve some of your thornier security problems. this is not just another secrets vault.

@dustinmm80
dustinmm80 / multivm_vagrant_dry.md
Created September 15, 2013 04:48
An example of how to write Vagrantfiles following the DRY principle.
=begin
Example box JSON schema
{
    :name => :name_of_vagrant_box, #REQUIRED
    :ip => '10.0.0.11', #REQUIRED
    :synced_folders => [
        { '.' => '/home/vagrant/myapp' }
    ],
    :commands => [
@dustinmm80
dustinmm80 / keybase.md
Created September 19, 2017 16:54
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@dustinmm80
dustinmm80 / swarm.sh
Created March 8, 2016 22:45
Connecting Jenkins executor to master with Jenkins Swarm plugin
echo "Connecting with Jenkins Swarm plugin"
sudo -H -u jenkins bash -c '
curl -kL -o $HOME/swarm-client.jar \
http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/swarm-client/2.0/swarm-client-2.0-jar-with-dependencies.jar
'
sudo -H -u jenkins bash -c "
java -jar \$HOME/swarm-client.jar \
-fsroot /var/lib/jenkins \
-executors 6 \
@dustinmm80
dustinmm80 / machine_identity.sh
Created March 8, 2016 22:48
Applying Conjur machine identity with CloudFormation interpolation
host_token={{ref('HostFactoryToken')}}
node_name={{ref('NodeName')}}
host_id=$node_name-$(curl http://169.254.169.254/latest/meta-data/instance-id)
host_identity=/var/conjur/host-identity.json
CONJUR_HOST_IDENTITY_VERSION=v1.0.1
CONJUR_SSH_VERSION=v1.2.5
export HOME=/root
@dustinmm80
dustinmm80 / core-patch-4.5.1.patch
Last active January 18, 2016 18:46
Patch for core on Conjur 4.5.1 to remove variable values from logs
diff --git a/config/application.rb b/config/application.rb
index 8682244..d233004 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -13,10 +13,11 @@ module ConjurCore
class Application < Rails::Application
config.eager_load_paths << "#{config.root}/app/models/secret_store.rb"
config.encoding = "utf-8"
- config.filter_parameters += [:password]
+ config.filter_parameters += [:password, :value]
@dustinmm80
dustinmm80 / gitcheck.sh
Last active December 26, 2015 10:49
Run this in your git directory to make sure you're working off the latest code.
#! /bin/bash
# Checks that your Github repos are up to date
DIRS=()
sync=$1
for file in */ cookbooks/*; do
DIRS+=("`pwd`/${file}");
@dustinmm80
dustinmm80 / updaterepos.sh
Created August 22, 2013 02:38
Update all git repos in a directory, running git pull --rebase origin master on them all.
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "--- Pulling in latest changes for all repositories... ---"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
@dustinmm80
dustinmm80 / python_tools_cheatsheet.md
Created August 16, 2013 01:49
Cheat sheet for Python workflow tools on OSX

Terminal Cheat Sheet


python package installer - look for packages on pypi

  • pip install package_name - installs package from pypi
  • pip install -r requirements file - installs packages from a requirements file
  • pip uninstall package_name - uninstalls package
  • pip freeze - output packages to stdout in requirements format, can be piped to a file
@dustinmm80
dustinmm80 / python_protips.md
Last active December 18, 2015 00:09
Things to watch out for when coding in Python

Python Protips

A collection of tips from things I've seen in a lot of code bases.

Use print() as a function and not a statement

print('some string') # good
print 'some string'  # bad

print() has been moved to a function in Python 3 docs.