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
Summary: HA-Proxy is a TCP/HTTP reverse proxy for high availability environments | |
Name: haproxy | |
Version: 1.6.4 | |
Release: 1 | |
License: GPL | |
Group: System Environment/Daemons | |
URL: http://haproxy.1wt.eu/ | |
Source0: http://haproxy.1wt.eu/download/1.5/src/devel/%{name}-%{version}.tar.gz | |
BuildRoot: %{_tmppath}/%{name}-%{version}-root | |
BuildRequires: pcre-devel openssl-devel |
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
global | |
log 127.0.0.1 local2 | |
chroot /var/lib/haproxy | |
pidfile /var/run/haproxy.pid | |
maxconn 4096 | |
user haproxy | |
group haproxy | |
daemon | |
stats socket /var/lib/haproxy/stats |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<jmeterTestPlan version="1.2" properties="2.8" jmeter="2.13 r1665067"> | |
<hashTree> | |
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="hls-scenario" enabled="true"> | |
<stringProp name="TestPlan.comments"></stringProp> | |
<boolProp name="TestPlan.functional_mode">false</boolProp> | |
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp> | |
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="ユーザー定義変数" enabled="true"> | |
<collectionProp name="Arguments.arguments"> | |
<elementProp name="HOSTNAME" elementType="Argument"> |
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" |
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
--- | |
######################################## | |
## Ansible Playbook for installing Nginx | |
######################################## | |
- name: check registered the repository of nginx-release | |
shell: rpm -qa | grep nginx-release | |
register: result | |
ignore_errors: True |
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
upstream websocket { | |
server localhost:3000; | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
access_log /var/log/nginx/websocket.access.log main; |
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
{ | |
"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", |
OlderNewer