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
{ | |
"name": "hello-apex", | |
"description": "hello-apex: sample programs", | |
"memory": 128, | |
"timeout": 5, | |
"nameTemplate": "prod-{{.Project.Name}}_{{.Function.Name}}" | |
} |
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
{ | |
"name": "hello-apex", | |
"description": "hello-apex: sample programs", | |
"memory": 128, | |
"timeout": 5, | |
"nameTemplate": "stage-{{.Project.Name}}_{{.Function.Name}}" | |
} |
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
{ | |
"name": "hello-apex", | |
"description": "hello-apex: sample programs", | |
"memory": 128, | |
"timeout": 5, | |
"nameTemplate": "dev-{{.Project.Name}}_{{.Function.Name}}" | |
} |
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
<html> | |
<head> | |
<title>hello node.js!</title> | |
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script src="https://your.domain.or.ip/socket.io/socket.io.js"></script> | |
<script> | |
$(document).ready(function(){ | |
var socket = io.connect('https://your.domain.or.ip'); | |
socket.on('connect', function() { | |
console.log("connect [sessid = " + socket.id + "]"); |
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
<html> | |
<head> | |
<title>hello node.js!</title> | |
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script src="/socket.io/socket.io.js"></script> | |
<script> | |
$(document).ready(function(){ | |
var socket = io.connect(location.host); | |
socket.on('connect', function() { |
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
// sockcet.io sample code | |
var socketIO = require('socket.io'); | |
var io = socketIO.listen(3000); | |
// event that clietns connect | |
io.sockets.on('connection', function(socket) { | |
console.log("connection"); | |
// event when recieving messages |
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
--- nginx-websocket-proxy.conf.bk 2016-09-19 16:25:00.918484594 +0900 | |
+++ nginx-websocket-proxy.conf 2016-09-19 16:52:51.863111735 +0900 | |
@@ -3,9 +3,13 @@ | |
} | |
server { | |
- listen 80; | |
+ listen 443; | |
server_name localhost; |
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
{ | |
"name": "socket.io-sample-code", | |
"version": "1.0.0", | |
"description": "Sample code for Socket.IO", | |
"main": "app.js", | |
"repository": { | |
"type": "git", | |
"url": "https://gist.github.com/uorat/" | |
}, | |
"author": "uorat", |
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/sh | |
set -eu | |
readonly DB_HOST="your-cluster.local" | |
readonly DB_SHORTHOST=$(echo ${DB_HOST} | sed -e "s/\..*//") | |
readonly DB_USER="sbtest" | |
readonly DB_PASS="sbtest" | |
readonly THREADS=$1 | |
readonly SYSBENCH_TEST="--test=oltp --oltp-test-mode=complex " |
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
class ZabbixConfig: | |
ZABBIX_API_URL = "http://your-zabbix.local/zabbix/api_jsonrpc.php" | |
HEADERS = { | |
"Content-Type": "application/json" | |
} | |
USER = "Admin" | |
PASSWORD = "zabbix" |