- AWS を既に利用している
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
# -*- coding: utf-8 -*- | |
import elasticsearch | |
import json | |
import os | |
import time | |
import datetime | |
import argparse | |
import sys | |
import codecs |
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
// | |
// phantomjs 2.1.1 にて確認済み | |
// $ phantomjs login_check.js username password | |
// | |
var system = require('system'); | |
var args = system.args; | |
var page = new WebPage(), testindex = 0, loadInProgress = false; | |
var url = 'http://127.0.0.1:3000/'; | |
var username = system.args[1]; |
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
#!/bin/bash | |
_AWS_PROFILE=${AWS_PROFILE} | |
_SOURCE_DIST_ID=${SOURCE_DIST_ID} | |
_UNIX_TIME=$(date +%s) | |
_ORIGIN_TAEGET=${1} | |
_ORIGIN_TAEGET_DOMAIN=${2} | |
_SOURCE_DIST_SETTING=$(aws --profile ${_AWS_PROFILE} cloudfront\ | |
get-distribution \ |
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
var system = require('system'); | |
var args = system.args; | |
var page = new WebPage(), testindex = 0, loadInProgress = false; | |
var url = 'http://127.0.0.1:4567/'; | |
var username = system.args[1]; | |
var password = system.args[2]; | |
page.onConsoleMessage = function(msg) { | |
console.log(msg); |
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
#!/usr/bin/env bash | |
_BACKLOG_URL="https://${貴方の Backlog チーム}.backlog.jp" | |
_BACKLOG_PROJECT_KEY="${プロジェクトキー}" | |
_BACKLOG_PARENTISSUE_KEY="${親課題キー}" | |
_BACKLOG_PARENTISSUE_COMMENT_ID="${お知らせするユーザー一覧が登録されたコメント ID}" | |
_BACKLOG_ASSIGNEE_NAME="担当者名" | |
# プライオリティ「中」 | |
_BACKLOG_PRIORITY_ID=3 | |
_CURL_OPTION="--connect-timeout 10 --max-time 20 -s" |
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
#!/usr/bin/env bash | |
_INSTANCE_ID="${YOUR_INSTANCE_ID}" | |
_CHECK_INTERVAL=60 | |
echo "処理を続行しますか? [Y/n]" | |
read ANSWER | |
case ${ANSWER} in | |
[yY]) echo "処理を続行します..." | |
;; |
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
#!/usr/bin/env bash | |
_INSTANCE_ID="${YOUR_INSTANCE_ID}" | |
_ROOT_DEVICE="/dev/sda1" | |
_CHECK_INTERVAL=60 | |
echo "処理を続行しますか? [Y/n]" | |
read ANSWER | |
case ${ANSWER} in | |
[yY]) echo "処理を続行します..." |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from timer import Timer | |
import csv | |
import json | |
import simplejson | |
import ujson | |
JSON_FILE='dummy_1000.json' |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from timer import Timer | |
import csv | |
import json | |
import simplejson | |
import ujson | |
JSON_FILE='dummy_1000.json' |