Skip to content

Instantly share code, notes, and snippets.

View tupacalypse187's full-sized avatar

Chad Yantorno tupacalypse187

  • Sunnyvale, California
View GitHub Profile
@zapstar
zapstar / openssl_2way_auth.sh
Last active March 20, 2024 21:07
Steps to create CA, server and client keys + certificates for SSL 2-way authentication
# Move to root directory...
cd /
mkdir keys
cd keys
# Generate a self signed certificate for the CA along with a key.
mkdir -p ca/private
chmod 700 ca/private
# NOTE: I'm using -nodes, this means that once anybody gets
# their hands on this particular key, they can become this CA.
@tristanfisher
tristanfisher / Ansible-Vault how-to.md
Last active June 11, 2024 13:23
A short tutorial on how to use Vault in your Ansible workflow. Ansible-vault allows you to more safely store sensitive information in a source code repository or on disk.

Working with ansible-vault


I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.

What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.

Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.

@tomekwojcik
tomekwojcik / wtfpasswdapi.md
Created December 24, 2011 15:20
Why The Fuck Should I Use An API For "What The Fuck Should I Use For Password"?

Why The Fuck Should I Use An API For "What The Fuck Should I Use For Password"?

What The Fuck Should I Use For Password? wouldn't be much of a Web 2.0 app if it didn't provide an API. Using this API you can get a pseudo-random string in JSON or plaintext form.

Query format

http://whatthefuckshouldiuseforpassword.com/*format*?*query_string*

Formats