Skip to content

Instantly share code, notes, and snippets.

set tabstop=2
set shiftwidth=2
set number
set cursorline
set relativenumber
set foldmethod=manual
set termguicolors
set splitbelow
set splitright
set clipboard=unnamed " use OS clipboard
// AWS SDK를 이용한다.
const AWS = require('aws-sdk');
const sns = new AWS.SNS();
const codepipeline = new AWS.CodePipeline();
// Lambda 함수가 실행되면 아래 함수에 파라미터가 채워져서 호출된다.
exports.handler = (event, context, callback) => {
// event 변수의 값을 확인해보기 위한 로깅
console.log('EVENT--------');
console.log(event);
[
{
"MetricName": "People",
"Dimensions": [{ "Name": "Gender", "Value": "All" }],
"Timestamp": "2018-08-15T14:00:00.000+09:00",
"Value": 20,
"Unit": "Count"
},
{
"MetricName": "People",
@deopard
deopard / nginx
Created June 22, 2018 13:51
nginx service script
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemin
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /opt/nginx/conf/nginx.conf
# pidfile: /opt/nginx/logs/nginx.pid