Skip to content

Instantly share code, notes, and snippets.

View OllionDavidCunliffe's full-sized avatar

David Cunliffe OllionDavidCunliffe

  • Ollion, Inc
  • Tampa, FL
View GitHub Profile
@nivleshc
nivleshc / Ansible-create-AWS-environment.yml
Created March 12, 2019 11:45
This Ansible playbook deploys an AWS environment, which consists of a VPC, a public and private subnet, a jumphost in the public subnet and a server in the private subnet
---
- hosts: localhost
connection: local
gather_facts: yes
vars:
- vpc_region: us-east-1
- my_useast1_key: my_northvirginia_keypair
tasks:
- name: create VPC for Ansible
@KalebNyquist
KalebNyquist / airtable_helper.py
Last active August 17, 2023 10:24
Simple Download/Upload of Airtable Data into/from Python using Airtable API
import requests
import json
import pandas as pd
def airtable_download(table, params_dict={}, api_key=None, base_id=None, record_id=None):
"""Makes a request to Airtable for all records from a single table.
Returns data in dictionary format.
Keyword Arguments:
@Mishco
Mishco / content.md
Last active June 14, 2024 02:24
Setup HashiCorp Vault on docker

Setup HashiCorp Vault on docker

Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing. Vault is primarily used in production environments to manage secrets. Vault is a complex system that has many different pieces. There is a clear separation of components that are inside or outside of the security barrier. Only the storage backend and the HTTP API are outside, all other components are inside the barrier.

Vault_architecture

Figure 1: Architecture of Vault and Spring App (Click to enlarge)

The storage backend is untrusted and is used to durably store encrypted data. When the Vault server is started, it must be provided with a storage backend so that data is available across restarts. The HTTP API similarly must be started by the Vault server on start so that clients can interact with it.

@utkonos
utkonos / edit_ubuntu_autoinstall.py
Last active May 21, 2024 13:18
Simple Python Script to Edit an Ubuntu ISO to Add Automated Server Install Capability
import io
import pathlib
import pycdlib
ubuntu = pathlib.Path('ubuntu-22.04.1-live-server-amd64.iso')
new_iso_path = pathlib.Path('ubuntu-22.04.1-live-server-amd64-auto.iso')
iso = pycdlib.PyCdlib()
iso.open(ubuntu)