I hereby claim:
- I am roustem on github.
- I am roustem (https://keybase.io/roustem) on keybase.
- I have a public key ASAydHUtI9pDZiM5XGGifDoFY_ZPnoLcdTyIn4KCoRiMtAo
To claim this, I am signing this object:
package main | |
import "fmt" | |
func test() interface{} { | |
return 123 | |
} | |
func main() { | |
// no panic |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
_ "expvar" | |
"io" | |
"log" | |
"net/http" | |
"strings" | |
) |
// Run on https://start.1password.com to get sjcl | |
function timeSJCL_SHA256(iterations, value) { | |
let timerName = "SJCL SHA-256 (" + value.length + " bytes, " + iterations + " iterations)"; | |
console.time(timerName); | |
for (let i = 0; i < iterations; i++) { | |
sjcl.hash.sha256.hash(value); | |
} | |
console.timeEnd(timerName); |
"B5AppSubnet1": { | |
"Type": "AWS::EC2::Subnet", | |
"Properties": { | |
"CidrBlock": { "Fn::Select" : ["0", { "Fn::FindInMap" : [ "SubnetCidr", { "Ref" : "Env" }, "b5app"] }] }, | |
"AvailabilityZone": { "Fn::Select" : [ "0", { "Fn::GetAZs" : "" } ]}, | |
"VpcId": { "Ref": "Vpc" }, | |
"Tags": [ | |
{ "Key" : "Application", "Value" : "B5" }, | |
{ "Key" : "env", "Value": { "Ref" : "Env" } }, | |
{ "Key" : "Name", "Value": { "Fn::Join" : ["-", [ {"Ref" : "Env"}, "b5", "b5app-subnet1"]] } } |
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}" |
# | |
# Terraform code changes | |
# | |
# variable "instance_type" { | |
# type = "string" | |
# - default = "t2.medium" | |
# + default = "t2.large" | |
# } | |
data "aws_ami" "bastion_ami" { | |
most_recent = true | |
filter { | |
name = "architecture" | |
values = ["x86_64"] | |
} | |
filter { | |
name = "name" | |
values = ["bastion-*"] |
#!/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 |
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