Skip to content

Instantly share code, notes, and snippets.

@murachi1208
murachi1208 / config.file
Last active July 31, 2017 06:15
CentOS7.3 環境(Vagrant)に SchemaSpy を導入してみるの巻 ref: http://qiita.com/murachi1208/items/6af69c622eeca11408b3
# type of database. Run with -dbhelp for details
schemaspy.t=mysql
# optional path to alternative jdbc drivers.
schemaspy.dp=/home/vagrant/dbspy/mysql-connector-java-5.1.43-bin.jar
# database properties: host, port number, name user, password
schemaspy.host=server
schemaspy.port=3306
schemaspy.db=db_name
schemaspy.u=database_user
schemaspy.p=database_password
@murachi1208
murachi1208 / file0.txt
Last active August 1, 2017 06:06
CentOS7.3 環境(Vagrant)に Mattermost を導入してみるの巻 ref: http://qiita.com/murachi1208/items/3bdd57dc6bce0f44de1f
$ sudo yum localinstall http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
$ sudo yum install mysql-community-server
@murachi1208
murachi1208 / file0.txt
Created July 25, 2017 01:14
Vagrant 1.9.7 で CentOS7.3 の bento 使ったらエラーになったよ(解決済み) ref: http://qiita.com/murachi1208/items/a4dd104b2f745a49aae6
C:\vagrant>vagrant box add https://app.vagrantup.com/bento/boxes/centos-7.3
==> box: Loading metadata for box 'https://app.vagrantup.com/bento/boxes/centos-7.3'
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.
1) parallels
2) virtualbox
3) vmware_desktop
@murachi1208
murachi1208 / crowi.sh
Created April 21, 2017 10:52
CentOS6.8 に Crowi をセットアップする。そしてはまった(解決済み)。 ref: http://qiita.com/murachi1208/items/19e5a2c9d4d082195af8
export PASSWORD_SEED=hoge
export MONGO_URI=mongodb://hoge:hoge@localhost/crowidb
node app.js
@murachi1208
murachi1208 / file0.txt
Created November 12, 2016 04:44
Slim 3 Framework で、DebugBar 使ってみたかったんだよね。その5 ref: http://qiita.com/murachi1208/items/e236bbcd3c8a5096b0e4
$ composer require kitchenu/slim-debugbar
@murachi1208
murachi1208 / 99-xdebug.ini
Last active November 12, 2016 02:32
Slim 3 Framework まだやってます xdebugでデバッグとかリモートデバッグとVisual Studio Code で楽々デバッグ。その4 ref: http://qiita.com/murachi1208/items/ff1d2d9f19456865183b
[XDebug]
zend_extension = /opt/remi/php70/root/usr/lib64/php/modules/xdebug.so
xdebug.coverage_enable=1
xdebug.default_enable=1
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/tmp"
xdebug.remote_handler = "dbgp"
xdebug.remote_port = 9001
xdebug.remote_autostart=1
xdebug.remote_enable=1
@murachi1208
murachi1208 / file1.php
Created September 15, 2016 14:58
Slim 3 Framework でログ出力したりQueryパラメータひろったり。その3 ref: http://qiita.com/murachi1208/items/f55de17cc0a27a8f2585
$this->logger->addDebug('log');
$this->logger->addInfo('log');
$this->logger->addWarning('log');
@murachi1208
murachi1208 / Mapper.php
Last active February 24, 2020 06:04
Slim 3 Framework でMySQLとテンプレつかってみる。その2 ref: https://qiita.com/murachi1208/items/bef385f76d055388179f
abstract class Mapper {
protected $db;
public function __construct($db) {
$this->db = $db;
}
}
@murachi1208
murachi1208 / file0.txt
Created August 26, 2016 09:57
Slim 3 Framework いまさらVagrant環境にインストールしてみる。その1 ref: http://qiita.com/murachi1208/items/5a07f3638d51bf6cd902
# yum install epel-release
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# yum install --enablerepo=remi,remi-php70 php php-devel php-mbstring php-pdo php-gd php-mysqlnd unzip
@murachi1208
murachi1208 / file0.txt
Created August 23, 2016 14:40
Vagrant 1.8.5 で default: Warning: Authentication failure. Retrying... と起動できない ref: http://qiita.com/murachi1208/items/4887d7df4ec1cb8d1476
-rw------- 1 vagrant vagrant 389 Aug 23 15:10 authorized_keys