This file contains hidden or 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
| FROM alpine | |
| RUN apk add --no-cache ca-certificates | |
| RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 |
This file contains hidden or 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
| autocmd InsertLeave * | |
| \ if &paste | set nopaste mouse=a | echo 'nopaste' | endif | | |
| \ if &l:diff | diffupdate | endif | |
| let &t_SI .= "\<Esc>[?2004h" | |
| let &t_EI .= "\<Esc>[?2004l" | |
| inoremap <special> <expr> <Esc>[200~ XTermPasteBegin() | |
| function! XTermPasteBegin() |
This file contains hidden or 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
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import hashlib | |
| import json | |
| import os | |
| import xlrd | |
| from codecs import open | |
| from logging import getLogger, StreamHandler, DEBUG |
This file contains hidden or 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
| image: node:latest | |
| before_script: | |
| - npm install -g cordova | |
| - apt-get update | |
| - apt-get install -y software-properties-common | |
| - add-apt-repository ppa:openjdk-r/ppa | |
| - echo deb http://http.debian.net/debian jessie-backports main >> /etc/apt/sources.list | |
| - apt-get update && apt-get install -y openjdk-8-jdk | |
| - wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
| - tar -xvf android-sdk_r24.2-linux.tgz |
This file contains hidden or 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
| # AWS SDK | |
| require 'aws-sdk' | |
| Aws::EC2::Resource | |
| # Load DSL and set up stages | |
| require "capistrano/setup" | |
| # Include default deployment tasks | |
| require "capistrano/deploy" | |
| require 'capistrano/safe_deploy_to' |
This file contains hidden or 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
| FROM ruby:2.3.1-slim | |
| MAINTAINER Yusuke Abe <abe@mamorio.jp> | |
| ENV ENTRYKIT_VERSION 0.4.0 | |
| RUN sed -i "s/httpredir.debian.org/`curl -s -D - http://httpredir.debian.org/demo/debian/ | awk '/^Link:/ { print $2 }' | sed -e 's@<http://\(.*\)/debian/>;@\1@g'`/" /etc/apt/sources.list | |
| RUN apt-get clean && apt-get update \ | |
| && apt-get install -y --no-install-recommends apt-utils \ | |
| file \ | |
| git \ | |
| nodejs \ |
This file contains hidden or 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
| { | |
| "AWSTemplateFormatVersion" : "2010-09-09", | |
| "Description" : "Create AWS CloudFormation Customize Virtual Private Cloud", | |
| "Parameters" : { | |
| "VpcName": { | |
| "Description" : "Please input VPC name.", | |
| "Type": "String", | |
| "Default" : "mamorio-vpc", | |
| "AllowedPattern" : "[-a-zA-Z0-9]*", | |
| "ConstraintDescription" : "" |
This file contains hidden or 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
| if (event.Records[0].EventSource == "aws:sns") | |
| { | |
| if(event.Records[0].Sns.Subject == "Amazon S3 Notification") | |
| { // overwrite S3 event object from payload | |
| event=JSON.parse(event.Records[0].Sns.Message); | |
| } | |
| } | |
| console.log('Loading event'); |
This file contains hidden or 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
| #coding:utf-8 | |
| #!/usr/bin/env python | |
| import socket | |
| import time | |
| def tcp_send(ip, port, msg): | |
| BUFFER_SIZE = 4096 | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| s.connect((ip, int(port))) | |
| while True: |