openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar
openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar
package main | |
import ( | |
"sync/atomic" | |
"testing" | |
) | |
var id uint64 | |
const chanLength = 100 |
stages: | |
- pack | |
### Pack ###################################################################### | |
docker: | |
stage: pack | |
environment: production | |
image: docker:18 | |
script: |
[ -z "$PS1" ] && return | |
# | |
alias ea='vi ~/.bash_aliases; . ~/.bash_aliases' | |
alias reload='source ~/.bashrc' | |
alias ll='ls -al' | |
alias l='ls -l' | |
function cd { |
openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar
openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar
Most recently tested on macOS Sierra (10.12.6)
curl https://bootstrap.pypa.io/get-pip.py -o ~/Downloads/get-pip.py
--user
flag; python ~/Downloads/get-pip.py --user
. pip will be installed to ~/Library/Python/2.7/bin/pip~/Library/Python/2.7/bin
is in your $PATH
. For bash
users, edit the PATH=
line in ~/.bashrc
to append the local Python path; ie. PATH=$PATH:~/Library/Python/2.7/bin
. Apply the changes, source ~/.bashrc
.--user
when installing modules; ie. pip install <package_name> --user
#!/bin/sh | |
## | |
# Install autoconf, automake and libtool smoothly on Mac OS X. | |
# Newer versions of these libraries are available and may work better on OS X | |
# | |
# This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html | |
# | |
export build=~/devtools # or wherever you'd like to build |
data "aws_ami" "bastion_ami" { | |
most_recent = true | |
filter { | |
name = "architecture" | |
values = ["x86_64"] | |
} | |
filter { | |
name = "name" | |
values = ["bastion-*"] |
# | |
# Terraform code changes | |
# | |
# variable "instance_type" { | |
# type = "string" | |
# - default = "t2.medium" | |
# + default = "t2.large" | |
# } | |
resource "aws_subnet" "b5app" { | |
count = "${length(var.subnet_cidr["b5app"])}" | |
vpc_id = "${aws_vpc.b5.id}" | |
cidr_block = "${element(var.subnet_cidr["b5app"],count.index)}" | |
availability_zone = "${var.az[count.index]}" | |
tags { | |
Application = "B5" | |
env = "${var.env}" | |
type = "${var.type}" |