Set up VGW on AWS with OpenSwan

You will need 2 VPCs. The Internet VPC will have the Internet Gateway and the OpenSwan EC2 instance. The Project VPC will have your application or Kubernetes cluster.

Internet VPC

  • Private Subnet: - Route Table with to NAT
  • Public Subnet: - Route Table with to IGW, to OpenSwan Instance
  • NAT Gateway in the public subnet with an IP of
View csv.go
package main
import (
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2012-2016 Matt Martz
# All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
View components_note.vue
<div class="box">
<div class="content">
<div class="editable">
<input type="text" class="input" v-model="imessage" @keyup="$emit('edit', index, imessage)">
<nav class="level is-mobile">
<div class="level-left">
View DefaultKeyBinding.Dict
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more closely
match default behavior on Windows systems. This particular mapping assumes
that you have also switched the Control and Command keys already.
This key mapping is more appropriate after switching Ctrl for Command in this menu:
Apple->System Preferences->Keyboard & Mouse->Keyboard->Modifier Keys...->
Change Control Key to Command
Change Command key to Control
This applies to OS X 10.5 and possibly other versions.
View html.json
// Place your snippets for HTML here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
View keybindings.json
// Place your key bindings in this file to overwrite the defaults
{ "key": "ctrl+home", "command": "cursorTop",
"when": "editorTextFocus" },
{ "key": "ctrl+end", "command": "cursorBottom",
"when": "editorTextFocus" }
View Microsoft.PowerShell_profile.ps1
# Store this document in the following location:
# C:\Users\username\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
# You'll have to enabled remote execution first (run as admin): Set-ExecutionPolicy RemoteSigned
# Gist:
# This profile makes it easy to set your GOPATH and modify your PATH environment
# variables easily when switching between Visual Studio workspaces.
# Add the gotools to the path.
$env:Path += "C:\Users\"+$env:username+"\Documents\gotools\bin;"
View webserver.go
package main
import (
func main() {
http.HandleFunc("/", index)
http.ListenAndServe(":8080", nil)
# Download Go (use any of the latest versions)
curl -O
# Extract Go
tar -xvf go*.tar.gz
# Install Go
sudo mv go /usr/local
# Create a workspace folder