This is a set of instructions to setup a Django Nginx Gunicorn MySQL/Postgres stack on a single Amazon EC2 instance.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ test cdktf init | |
Welcome to CDK for Terraform! | |
By default, cdktf allows you to manage the state of your stacks using Terraform Cloud for free. | |
cdktf will request an API token for app.terraform.io using your browser. | |
If login is successful, cdktf will store the token in plain text in | |
the following file for use by subsequent Terraform commands: | |
/home/jvg/.terraform.d/credentials.tfrc.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { CredentialProviderChain } = require('aws-sdk'); | |
const AWS = require('aws-sdk'); | |
const accountProvider = require('./account-provider'); | |
let getEnv = function(accountId) { | |
// TODO: insert logic to get your desired profile name | |
return profileName; | |
}; | |
let getProvider = async (accountId, mode) => { |
I hereby claim:
- I am d8aninja on github.
- I am d8aninja (https://keybase.io/d8aninja) on keybase.
- I have a public key ASCOx0EniQ4qHN_xB36i5EN86o80ZKD6zGvKc5cYXjUe8wo
To claim this, I am signing this object:
I hereby claim:
- I am d8aninja on github.
- I am d8aninja (https://keybase.io/d8aninja) on keybase.
- I have a public key whose fingerprint is 656D D55A 168A BEF9 E8B3 CD18 1999 6634 146D 97AD
To claim this, I am signing this object:
- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import subprocess | |
import argparse | |
import os | |
import sys | |
def yesno(message_type, default = 'y'): | |
if message_type == 'DELETE_FILES_IN_FOLDER': | |
question = 'The folder is not empty. Do you want to delete the files in it?' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "" | |
echo "==========================================================================" | |
echo "= Pentest Attack Machine Setup =" | |
echo "= Based on the setup from The Hacker Playbook =" | |
echo "==========================================================================" | |
echo "" | |
# Prepare tools folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am d8aninja on github. | |
* I am d8aninja (https://keybase.io/d8aninja) on keybase. | |
* I have a public key ASCunXz9Wt3kbmFP58t92JjuPpfHaJOR6aS99pJg8KMwrQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: http://www.census.gov/geo/www/ansi/countylookup.html | |
var countyToFIPS = { | |
'Alabama': { | |
'Autauga County': '01001', | |
'Baldwin County': '01003', | |
'Barbour County': '01005', | |
'Bibb County': '01007', | |
'Blount County': '01009', | |
'Bullock County': '01011', |
NewerOlder