This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.amitaymolko.network; | |
import java.util.HashMap; | |
/** | |
* Created by amitaymolko on 2/16/16. | |
*/ | |
public class HttpRequest { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var NodeRSA = require('node-rsa'); | |
var CryptoJS = require('crypto-js'); | |
const crypto = require('crypto') | |
let generateKeyPair = (password) => { | |
let key = new NodeRSA(); | |
key.generateKeyPair() | |
let publicKey = Buffer.from(key.exportKey('public')).toString('base64') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HA1: | |
06:49:12 | |
Jun 28 06:49:12 5ff0d8408113 haproxy[127]: backend www-backend-test-git has no server available! | |
06:49:12 | |
Jun 28 06:49:12 5ff0d8408113 haproxy[127]: backend www-backend-test-git has no server available! | |
06:49:12 | |
Jun 28 06:49:12 5ff0d8408113 haproxy[127]: backend www-backend-test-git has no server available! | |
06:49:13 | |
Jun 28 06:49:13 5ff0d8408113 haproxy[127]: www-backend-test-git/test-git2 changed its IP from to 172.18.1.197 by awsdns/default. | |
06:49:13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const NodeRSA = require('node-rsa'); | |
const crypto = require('crypto') | |
let generateKeyPair = (password) => { | |
let key = new NodeRSA(); | |
key.generateKeyPair() | |
let publicKey = Buffer.from(key.exportKey('public')).toString('base64') | |
let privateKey = Buffer.from(key.exportKey('private')).toString('base64') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "null_resource" "aws-node-iam" { | |
provisioner "local-exec" { | |
command = "aws eks --region ${var.region} update-kubeconfig --name ${var.cluster_name} && kubectl annotate sa aws-node -n kube-system eks.amazonaws.com/role-arn=${aws_iam_role.cni-role.arn}" | |
} | |
provisioner "local-exec" { | |
when = "destroy" | |
command = "aws eks --region ${var.region} update-kubeconfig --name ${var.cluster_name} && kubectl annotate sa aws-node -n kube-system eks.amazonaws.com/role-arn-" | |
} | |