Ruby でファイルの拡張子ではなく、中身からそのファイルが何なのかを判別したい
- ruby-mime-types
- ファイルの拡張子から判別するのでだめだ
- minad-mimemagic
- 拡張子と中身から判別するっぽい
- GitHub にリポジトリがなく、最終リリース日が2009年
- mime-typer
- file と awk を使う
- file のラッパーみたいなもの
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 | |
set -euv | |
ablogcms_version=1.6.0 | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get install -y apache2 | |
apt-get install -y mysql-client mysql-server |
- httperf
- ab (Apache Bench)
- bundled in Apache HTTP Server
- apib (API Bench)
- written in C
- ab replacement
- Boom
- ab replacement
- written in Python and Go
- show histogram in Go version
コードカバレッジ
ソースコードに対してテストが実施された割合を示す数字
コードのうちどの部分が実際にテストされたかどうかを確認する
テスト対象のコードの中で、テストが行われた割合
テストがテスト対象のコードをどれだけ網羅しているかをコード全体に対する割合で表したもの
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
org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /var/lib/gitbucket/repositories/root/coca-cola.git | |
at org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:575) | |
at org.eclipse.jgit.api.Git.open(Git.java:113) | |
at org.eclipse.jgit.api.Git.open(Git.java:97) | |
at app.RepositorySettingsControllerBase$$anonfun$7.apply(RepositorySettingsController.scala:97) | |
at app.RepositorySettingsControllerBase$$anonfun$7.apply(RepositorySettingsController.scala:72) | |
at util.OwnerAuthenticator$$anonfun$ownerOnly$1$$anonfun$apply$2.apply(Authenticator.scala:34) | |
at util.OwnerAuthenticator$$anonfun$ownerOnly$1$$anonfun$apply$2.apply(Authenticator.scala:34) | |
at util.OwnerAuthenticator$$anonfun$util$OwnerAuthenticator$$authenticate$1$$anonfun$apply$3.apply(Authenticator.scala:41) | |
at util.OwnerAuthenticator$$anonfun$util$OwnerAuthenticator$$authenticate$1$$anonfun$apply$3.apply(Authenticator.scala:39) |
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 | |
service tomcat7 stop | |
mkdir -p /var/backups/gitbucket | |
cd /var/lib | |
tar cfz /var/backups/gitbucket/gitbucket-`date +%Y%m%d`.tar.gz gitbucket | |
service tomcat7 start |
https://github.com/takezoe/gitbucket/wiki/Notification
GitBucket では System Settings
の Notification email
を設定する
ことによってメールで通知させることができる。
通知のタイミング