#---------------------------------------------------------------------
# Example configuration for a possible web application. See the
# full configuration options online.
#
# http://haproxy.1wt.eu/download/1.4/doc/configuration.txt
#
#---------------------------------------------------------------------
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
FROM openjdk:8-jdk as libsbmlsim | |
ENV LD_LIBRARY_PATH /usr/lib64 | |
RUN apt update && \ | |
apt -y upgrade && \ | |
apt install -y cmake g++ libbz2-dev swig wget && \ | |
wget -q http://downloads.sourceforge.net/project/sbml/libsbml/5.19.0/stable/Linux/64-bit/libSBML-5.19.0-Linux-x64.deb && \ | |
dpkg -i libSBML-5.19.0-Linux-x64.deb |
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
access_key = "<ACCESS KEY>" | |
secret_key = "<SECRET KEY>" |
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
{ | |
"variables": { | |
"aws_access_key": "", | |
"aws_secret_key": "" | |
}, | |
"builders": [ | |
{ | |
"type": "amazon-ebs", | |
"access_key": "{{user `aws_access_key`}}", | |
"secret_key": "{{user `aws_secret_key`}}", |
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
# InnoDB change log size | |
- innodb_fast_shutdownが2に設定されている場合は1に設定 | |
`mysql> SET GLOBAL innodb_fast_shutdown = 1;` | |
- シャットダウンし、正常終了することを確認 | |
- ログファイルを削除`/var/lib/mysql/ib_logfile*` | |
- MySQL/MariaDBを再起動 |
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
# python swift-proxy-check-with-request.py PROXY-IP | |
import requests | |
import json | |
import sys | |
import re | |
j = { "auth" : {\ | |
"passwordCredentials" : {\ | |
"username" : "<username>",\ |
- Authenticate to vCenter to get user credential.
# curl -k -X POST https://<FQDN or IP>/rest/com/vmware/cis/session -u <USERNAME>:<PASSWORD> | jq
{
"value": "SESSIONID"
}
- Save the session id to a variable
# ID=SESSIONID
How to install and run docker as general user
Install docker
$ sudo yum install docker
Add user to group dockerroot
$ sudo gpasswd -a $USER dockerroot
Install Crowi on CentOS with Elasticsearch and MongoDB
$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
$ sudo yum install -y epel-release
$ sudo yum group install "Development Tools"
$ curl --fail -sSL -o setup-nodejs https://rpm.nodesource.com/setup_6.x