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
| #!/usr/bin/env bash | |
| echo '[INFO] Start Update And Install MySQL5.7'; | |
| sudo yum update -y; | |
| sudo rpm -ivh https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm; | |
| sudo yum-config-manager --disable mysql80-community; | |
| sudo yum-config-manager --enable mysql57-community |
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
| #!/usr/bin/env python3 | |
| # | |
| # epub-zipping.py | |
| # =============== | |
| # | |
| # This create epub file from directory files. | |
| # | |
| # Description | |
| # ---------------- | |
| # |
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
| # | |
| # Directory List: | |
| # | |
| # /srv/www <- base | |
| # /srv/www/webpage <- root directory | |
| # /srv/www/pages/40x.html <- 40x error page | |
| # /srv/www/pages/50x.html <- 50x server error page | |
| # | |
| server { |
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
| [mysqld] | |
| datadir=/var/lib/mysql | |
| socket=/var/lib/mysql/mysql.sock | |
| server-id = master-01 | |
| # Replication Master Server (default) | |
| # binary logging is required for replication | |
| log-bin = mysql-bin |
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
| #!/usr/bin/env bash | |
| # see: https://qiita.com/a_yasui/items/40ec1c30afc9f90acd0e | |
| PHP_VERSION=7.2.13 | |
| INSTALL_DIR=/opt/phpenv | |
| MYSQL_YUM_REPOSITORY_RPM=https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm | |
| MY_CNF=https://gist.githubusercontent.com/a-yasui/9b3a185f2920e5f1bfd0dbba10aa2261/raw/6a5ec116dc6295aeeda1ca3599fe11da687e1bb3/my.cnf | |
| # 必要なものをインストール |
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
| #!/usr/bin/env bash | |
| # スクリプトの設置ディレクトリに移動して、そのディレクトリパスを取得する | |
| # :-$0 とする事で他のshellでも動くようになる | |
| PWD="$( cd "$( dirname "${BASH_SOURCE:-$0}" )" && pwd )" |
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 | |
| /** | |
| * php ./convert.php -f <json file> | |
| */ | |
| /** | |
| * Class Block | |
| */ | |
| class Block | |
| { | |
| /** |
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
| class ViewController: NSViewController | |
| { | |
| func load(){ | |
| let attributeText = NSMutableAttributedString(string: "テスト") | |
| let field = NSTextField(frame: NSRect(x: 0, y: 0, width: 30, height: 30)) | |
| let attr = [ | |
| NSLinkAttributeName: "https://google.com/", | |
| ] as [String : Any] | |
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
| #!/usr/bin/env python | |
| import logging | |
| from logging import getLogger, StreamHandler, DEBUG | |
| logging.basicConfig( | |
| level=logging.INFO, | |
| format="%(asctime)s (%(threadName)-10s) %(levelname)s %(message)s") | |
| logger = getLogger(__name__) | |
| handler = StreamHandler() |
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/sh | |
| ps uax | awk 'BEGIN{FS=" ";OFS="\t";}{print $1,$2,$3,$4,$5,$6/1024 " MB",$7,$8,$9,$10,$11;}' |