Skip to content

Instantly share code, notes, and snippets.

View vunguyentuan's full-sized avatar

Vu Nguyen vunguyentuan

  • 2359 Media
  • Singapore
View GitHub Profile
@edtsech
edtsech / keybindings.json
Created July 3, 2019 20:02
VSCode: Exit Vim Insert Mode on File Save
[
{
"key": "cmd+s",
"command": "macros.saveAndExitVimInsertMode"
}
]
@devops-1
devops-1 / 00_nginx.config
Created May 31, 2017 23:00
00_nginx.config
container_commands:
01-nginx:
command: /opt/elasticbeanstalk/hooks/configdeploy/enact/35_nginx.sh
files:
"/home/ec2-user/nginx.conf":
mode: "000644"
owner: root
group: root
content : |
@BenMorganIO
BenMorganIO / 00_nginx_https_rw.config
Created November 14, 2016 02:00
I can't believe this is what it takes to do SSL redirection on AWS EB...
files:
"/tmp/45_nginx_https_rw.sh":
owner: root
group: root
mode: "000644"
content: |
#! /bin/bash
CONFIGURED=`grep -c "return 301 https" /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf`