Skip to content

Instantly share code, notes, and snippets.

View fr34k8's full-sized avatar
🎯
Focusing

fr34k8

🎯
Focusing
View GitHub Profile
@fr34k8
fr34k8 / awesome-go-sorted-by-stars-2019-04-30.md
Created December 9, 2019 21:21 — forked from kvnxiao/awesome-go-sorted-by-stars-2019-12-30.md
awesome-go-sorted-by-stars-2019-04-30.md

Awesome Go

Build Status Awesome Slack Widget Netlify Status

patreon avelino financial support to Awesome Go

A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python.

Contributing

@fr34k8
fr34k8 / conv2vmx-ovf.py
Created August 27, 2019 09:40 — forked from eshizhan/conv2vmx-ovf.py
a script that can help import VMs into VMware ESXi from VirtualBox. tested vbox 4.2.18 and ESXi 5.1.
#!/usr/bin/env python
#
# usage:
# conv2vmx-ovf.py some-vm.ovf
#
# ref: http://www.cnblogs.com/eshizhan/p/3332020.html
#
import sys
fn = sys.argv[1]
@fr34k8
fr34k8 / tf-gcs-bootstrap.sh
Created July 25, 2019 09:39 — forked from bborysenko/tf-gcs-bootstrap.sh
Setting up Terraform GCS remote backend
#!/usr/bin/env bash
set -u
set -e
set -o pipefail
GCP_PROJECT="$(gcloud config list --format 'value(core.project)')"
GCP_SERVICES=(
"storage-api.googleapis.com"
@fr34k8
fr34k8 / ansible-role-test.sh
Created April 9, 2019 13:34 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
@fr34k8
fr34k8 / ansible-summary.md
Created April 9, 2019 12:59 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@fr34k8
fr34k8 / README.md
Created November 24, 2018 11:56 — forked from deviantony/README.md
Portainer HTTP API by example

Introduction

This document presents a simple way to manage your Docker resource by using Portainer as a gateway (HTTP queries against the Portainer API).

WARNING: This documentation is valid for Portainer >= 1.18.0.

NOTE: I'm using httpie to execute HTTP queries from the CLI.

Deploy a Portainer instance

@fr34k8
fr34k8 / cloud-deployment-pipeline-requirements.md
Created September 12, 2018 14:11 — forked from aabs/cloud-deployment-pipeline-requirements.md
A checklist of capabilities that a useful cloud migration model would exhibit

Creating a useful cloud migration model

This is a transformation of Adrian Colyer's Checklist to turn it into a working model for a cloud transformation. The assumption is that the original checklist can suffice for any services that are deployed on the build pipeline, but the question to answer here is about how the environment is provisioned, deployed, monitored and governed in such a way as to fit the architecture implicit in the service checklist.

Configuration and Secret Management

  • Config is supplied via environment variables.
  • Anything that doesn't vary between deploys should not be externalised.
  • Deployment orchestrator should supply config as it deploys a service
  • Secrets should never be supplied as config
  • Desired deployment state should be declaratively described in code in a VCS.
@fr34k8
fr34k8 / generator.py
Created August 13, 2018 12:03 — forked from lkraider/generator.py
Terraform AWS policy generator
#!/usr/bin/env python
"""Convert CSV policies into AWS JSON format."""
import json
import csv
POLICIES = 'terraform.csv'
CRUD_COL = 2
ACTION_COL = 3
@fr34k8
fr34k8 / spinnaker-aws-ubuntu.md
Created July 31, 2018 14:51 — forked from diegopacheco/spinnaker-aws-ubuntu.md
How to Install Spinnaker on Ubuntu 14.04 AWS?

AWS Setup

1. Create AWS role called Spinnaker with proper access.
2. run aws configure and set your keys/secret.

Install Git and NVM

sudo apt-get -y install git
git clone https://github.com/spinnaker/spinnaker.git
@fr34k8
fr34k8 / Security_Tools_for_AWS.MD
Created June 28, 2018 09:41 — forked from markofu/Security_Tools_for_AWS.MD
Security Tools for AWS

Security Tools for AWS

I often get asked which tools are good to use for securing your AWS infrastructure so I figured I'd write a short listof some useful Security Tools for the AWS Cloud Infrastructure.

This list is not intended be something completely exhaustive, more so provide a good launching pad for someone as they dig into AWS and want to make it secure from the start.

Open Source

This section focuses on tools and services provided by the community and released as open-source.