Skip to content

Instantly share code, notes, and snippets.

View jspenc72's full-sized avatar

Jspenc72 jspenc72

  • Redwood City, CA
View GitHub Profile
@jspenc72
jspenc72 / git-pushing-multiple.rst
Created December 7, 2018 01:16 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@jspenc72
jspenc72 / 12factorapp_checklist.md
Created September 17, 2018 15:30 — forked from JJediny/12factorapp_checklist.md
DRAFT checklist for developing or benchmarking an application against 12factor.net

The twelve-factor app Checklist

Also factors in the four principles of modern Release Engineering

  • Identifiability Being able to identify all of the source, tools, environment, and other components that make up a particular release.
  • Reproducibility The ability to integrate source, third party components, data, and deployment externals of a software system in order to guarantee operational stability.
  • Consistency The mission to provide a stable framework for development, deployment, audit, and accountability for software components.
  • Agility The ongoing research into what are the repercussions of modern software engineering practices on the productivity in the software cycle, i.e. continuous integration.
@jspenc72
jspenc72 / 15-acme-operations.tf
Created August 30, 2018 19:13 — forked from QuingKhaos/15-acme-operations.tf
Terraform initialization of AWS sub account
// Configure AWS provider
variable "acme_operations" {
default = "ACCOUNTID"
}
provider "aws" {
alias = "acme_operations"
profile = "acme_operations"
region = "${var.aws_default_region}"
shared_credentials_file = "./credentials"
@jspenc72
jspenc72 / Terraform-Blue-Green-AWS.md
Created August 29, 2018 22:55 — forked from sdesalas/Terraform-Blue-Green-AWS.md
Blue-Green AWS Auto Scaling Deployments with Terraform

A quick note on how I'm currently handling Blue/Green or A/B deployments with Terraform and AWS EC2 Auto Scaling.

In my particular use case, I want to be able to inspect an AMI deployment manually before disabling the previous deployment.

Hopefully someone finds this useful, and if you have and feedback please leave a comment or email me.

Overview

I build my AMI's using Packer and Ansible.

@jspenc72
jspenc72 / pull-request-template-sample.md
Last active August 28, 2018 21:57
Pull Request Template

Instructions

Be sure your feature branch is correctly named to reference the corresponding issue in JIRA. (e.g. BUS-275_my_new_feature)

Description

A few sentences describing the overall goals of the pull request's commits.

Impacted Areas in Application

List general components of the application that this PR will affect:

@jspenc72
jspenc72 / windows_cmd_cheat_sheet.md
Last active December 13, 2018 22:28
windows_cmd_cheat_sheet

Install Chocolatey

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Install git with chocolatey

choco install git.install
@jspenc72
jspenc72 / 0_article.md
Created June 28, 2018 20:44 — forked from hemebond/0_article.md
A SaltStack AWS Auto Scaling Solution

A SaltStack AWS Auto Scaling Solution

Overview

The AWS Auto Scaling Goup, configured with a customised Cloud-Init file, sends a notification to an SNS Topic, which in turn passes it onto an SQS queue that the Salt Master is subscribed to. A Reactor watches for the auto scaling events and pre-approves the new minion based on its Auto Scaling group name and instance ID.

Salt Master Configuration

@jspenc72
jspenc72 / nodejs-cheatsheet.js
Created March 13, 2018 02:39 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@jspenc72
jspenc72 / cities.json
Created July 20, 2017 03:13 — forked from Miserlou/cities.json
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
@jspenc72
jspenc72 / docker_cheat_sheet.md
Last active November 16, 2018 21:05
Docker Cheat Sheet

Docker Commands

To ssh into container:

docker exec -it <container id> /bin/bash

Remove all old images: