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
require 'mysql2' | |
require 'parallel' | |
start = Time.now | |
puts "#{start} start" | |
# (1...10000).each do |i| | |
Parallel.each(1..10000) do |i| | |
client = Mysql2::Client.new(host: ENV['DB_HOST'], | |
username: ENV['DB_USER'], |
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
function showStatus(){ | |
var mySheet = SpreadsheetApp.getActiveSheet(); | |
var myCell = mySheet.getActiveCell(); | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var ss_url = ss.getUrl(); | |
if(myCell.getColumn()==4){ | |
var message = myCell.getValue() + ss_url; | |
slackPost(message); | |
} | |
} |
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
#!/bin/bash | |
set -eu | |
usage() | |
{ | |
cat <<EOF | |
$(basename ${0}) is deploy tool on CodeDeploy | |
Usage: |
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
diff --git a/package.json b/package.json | |
index 6bdb1e4..a22416b 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -22,18 +22,24 @@ | |
"babel-preset-es2015": "^6.14.0", | |
"babel-preset-react": "^6.11.1", | |
"babel-preset-stage-2": "^6.16.0", | |
+ "babel-register": "^6.16.3", | |
+ "chai": "^3.5.0", |
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
package main | |
import ( | |
"encoding/json" | |
"io" | |
"log" | |
"math/rand" | |
"net/http" | |
"os" | |
"strings" |
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
javascript:(function() {var t = document.getElementById('pull_request_title');if(t){t.value +='[x/xリリース] <内容>';} var e = document.getElementById('pull_request_body');if (e) {e.value += '<チケットのURL>\n## 現象\n\n## 原因\n\n## 修正内容\n\n## データパッチの有無\n\n'}})(); |
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
/** | |
[~ ]$ php -r "var_dump(openssl_encrypt('1.1.152d4544adcf10056c34559101f2c0af.0', 'aes-256-cbc', '0lwAogPqXGpkDMGj', 0, 'XWFYfWFOvZ7FGLyA'));" | |
string(64) "iyA6+tUYQYgjLQHTD1rTLg4VJXd3uPx9XJR3xPC439N936flzRuIWrHzGU1K2mA6" | |
*/ | |
var crypto = require('crypto'); | |
var _key = '0lwAogPqXGpkDMGj'; | |
var _iv = 'XWFYfWFOvZ7FGLyA'; | |
var _data = '1.1.152d4544adcf10056c34559101f2c0af.0'; |
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
var mediaIds = []; // ツイート内容とアップした画像を紐付けるためのID | |
async.series([ | |
function (next) { | |
// 画像を取得する | |
var attachImages = getImageBinary(); | |
if (_.isEmpty(attachImages)) { | |
return next(); | |
} | |
async.each(attachImages, function (image, done) { | |
twitterService.uploadMedia(token, {media: image}, function (err, mediaIdString) { |
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
var gulp = require('gulp-help')(require('gulp')); | |
var argv = require('minimist')(process.argv.slice(2)); | |
gulp.task('minify-js', 'JavaScriptをMinifyします', function() { | |
var jsMinify = argv.jsMinify === 'true' ? true :false; | |
if(jsMinify){ | |
console.log('JavaScriptをMinifyするね'); | |
} else { | |
console.log('JavaScriptをMinifyしないよ'); | |
} |
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
systemLog: | |
destination: file | |
path: "/var/log/mongodb/arbiter.log" | |
logAppend: true | |
storage: | |
journal: | |
enabled: false | |
smallFiles: true | |
dbPath: "/data/arb" | |
processManagement: |
NewerOlder