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
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
$klein = new \Klein\Klein; | |
$klein->respond('GET', '/hello', function () { | |
return 'Hello World!'; | |
}); | |
$klein->dispatch(); |
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
development: | |
database: mysql_development | |
adapter: mysql2 | |
username: mysql_user | |
password: mysql_pass | |
host: 127.0.0.1 | |
port: 3306 |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "debian_wheezy64" | |
config.vm.network "forwarded_port", guest: 3306, host: 3306 |
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
#!/usr/bin/expect -f | |
set timeout 5 | |
spawn openssl genrsa -out server.key -aes128 2048 | |
expect "Enter pass phrase" | |
send "pass phrase\n" | |
expect "Verifying - Enter pass phrase" | |
send "pass phrase\n" | |
interact |
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
<?php | |
$e = null; | |
try { | |
throw new RuntimeException('foo'); | |
} catch (Exception $e) { | |
// Catch and set $e if Exception thrown. | |
} finally { | |
// Do something | |
if (isset($e)) { | |
throw new $e; |
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
test: | |
override: | |
- "bundle exec bin/rubocop_parallel": { parallel: true } |
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
th075altlobby.dip.jp(th075altlobby.dip.jp:9555) | |
th075altlobby.dip.jp(54.199.139.221:9555) | |
localhost(localhost:9555) |
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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: <%= app %> | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Generated initscript for <%= app %> | |
# Description: This file starts <%= app %>. It should be placed in /etc/init.d | |
### END INIT INFO |
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
[DEBUG][action.admin.indices.mapping.put] ... | |
java.lang.NullPointerException | |
at org.elasticsearch.common.xcontent.XContentFactory.xContent(XContentFactory.java:110) | |
at org.elasticsearch.common.xcontent.XContentHelper.convertToMap(XContentHelper.java:113) | |
at org.elasticsearch.common.xcontent.XContentHelper.convertToMap(XContentHelper.java:101) | |
at org.elasticsearch.index.mapper.DocumentMapperParser.parseCompressed(DocumentMapperParser.java:175) | |
at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:322) | |
at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:318) | |
at org.elasticsearch.cluster.metadata.MetaDataMappingService$5.execute(MetaDataMappingService.java:533) | |
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:300) |
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
hardstatus alwayslastline '%{= kg}%02c:%s %H %{-}%L=%{= kb}%-w%{-}%45L>%{=u kr}%n %t%{-}%{= kb}%+w %-17<%=%{-}%{= .y}(%l)' |