Skip to content

Instantly share code, notes, and snippets.

View fetus-hina's full-sized avatar
💭
I may be slow to respond.

AIZAWA Hina fetus-hina

💭
I may be slow to respond.
View GitHub Profile
@fetus-hina
fetus-hina / sushi.reg
Created July 14, 2016 11:48
2016年を🍣🍺元年にする設定
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Calendars\Japanese\Eras]
"1868 01 01"="明治_明_Meiji_M"
"1912 07 30"="大正_大_Taisho_T"
"1926 12 25"="昭和_昭_Showa_S"
"1989 01 08"="平成_平_Heisei_H"
"2016 01 01"="🍣🍺_🍣_Sushi_U"
checking for inttypes.h... In file included from /usr/include/openssl/kssl.h:71:0,
from /usr/include/openssl/ssl.h:165,
from //rpmbuild/BUILD/h2o-2.0.0-beta3/include/h2o/socket.h:31,
from //rpmbuild/BUILD/h2o-2.0.0-beta3/lib/common/socket.c:31:
//rpmbuild/BUILD/h2o-2.0.0-beta3/lib/common/../../deps/ssl-conservatory/openssl/openssl_hostname_validation.c:23:12: error: expected identifier or '(' before '__extension__'
static int tolower(int ch) {
^
make[2]: *** [CMakeFiles/libh2o-evloop.dir/lib/common/socket.c.o] Error 1
make[1]: *** [CMakeFiles/libh2o-evloop.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
-- battle テーブルはバトル 1 つに 1 行
-- IkaLog, TakoLog 以外は無視
CREATE TABLE "battle" (
"id" INTEGER NOT NULL PRIMARY KEY, -- バトルID (URLに現れる数字)
"user" TEXT NOT NULL, -- ユーザのログイン名 (screen_name)
"agent_version" TEXT NOT NULL -- IkaLog Version
);
-- battle_player テーブルはバトル詳細の 8 人並ぶ部分
-- battle 一つに 0~8 行存在
@fetus-hina
fetus-hina / gist:ac919c97784906c03d5d
Created March 15, 2016 16:27
h2o 2.0.0-beta1 send-compress
[root@ikazuchi yum.repos.d]# h2o --version
h2o version 2.0.0-beta1
OpenSSL: LibreSSL 2.2.6
mruby: YES
[root@ikazuchi yum.repos.d]# h2o -t -c /etc/h2o/h2o.conf
...snip...
[/etc/h2o/h2o.conf:47] unknown command: file.send-compress
user: nobody
hosts:
"foo.example.com:443":
listen:
host: 0.0.0.0
port: 443
ssl:
certificate-file: /etc/pki/tls/certs/foo.example.com-2015.crt
key-file: /etc/pki/tls/certs/foo.example.com-2015.key
minimum-version: TLSv1
myfleetgirls.keystoreに変更はありません
LICENSEに変更はありません
application.conf.sampleに変更はありません
MyFleetGirls.jarに変更はありません
---------------------------------------------
Welcome to MyFleetGirls Client Ver 1.3.15
---------------------------------------------
@fetus-hina
fetus-hina / reply.xml
Created May 12, 2015 08:09
ちょまどっぽいどのリプライ用辞書
<?xml version="1.0" encoding="UTF-8"?>
<dictionary>
<match>
<type>reply</type>
</match>
<set>
<match>
<keyword>ホモ</keyword>
</match>
<text>{shindanmaker:a315883}</text>
@fetus-hina
fetus-hina / gist:8a7b531aefe2c515d139
Created April 27, 2015 09:22
HHVM date.timezone UTC
# タイムゾーンはデフォルト (America/New_York のはず)
[fetus@harusame bin]$ /opt/hhvm/hhvm-3.6.1/bin/hhvm hoge.php
2015-04-27 05:16:51-0400
# Asia/Tokyo を指定してみる
[fetus@harusame bin]$ /opt/hhvm/hhvm-3.6.1/bin/hhvm -d date.timezone=Asia/Tokyo hoge.php
2015-04-27 18:16:59+0900
# Etc/UTC を指定してみる
[fetus@harusame bin]$ /opt/hhvm/hhvm-3.6.1/bin/hhvm -d date.timezone=Etc/UTC hoge.php
@fetus-hina
fetus-hina / mfg.log.txt
Created March 12, 2015 16:53
myfleetgirls
3 13, 2015 1:51:29 午前 com.ponkotuy.util.Log$class error
ERROR: -1
scala.collection.LinearSeqOptimized$class.apply(LinearSeqOptimized.scala:65)
scala.collection.immutable.List.apply(List.scala:84)
com.ponkotuy.parser.DependentPost$$anonfun$mapRoute$1.apply(DependentPost.scala:127)
com.ponkotuy.parser.DependentPost$$anonfun$mapRoute$1.apply(DependentPost.scala:126)
scala.Option.foreach(Option.scala:257)
com.ponkotuy.parser.DependentPost.mapRoute(DependentPost.scala:126)
com.ponkotuy.parser.ResponseController$$anonfun$query$18.apply(ResponseController.scala:73)
com.ponkotuy.parser.ResponseController$$anonfun$query$18.apply(ResponseController.scala:73)
<?php
class MillerRabinTest {
public static function isPrime($number, $round = 10) {
$number = intval($number);
$round = intval($round);
if($number === 2) {
return true;
}
if($number === 1 || $number % 2 === 0) {
return false;