Skip to content

Instantly share code, notes, and snippets.

@moznion
moznion / docker-compose.yml
Last active May 15, 2018 01:19
docker-compose file for kibana with oauth2_proxy
version: '2.1'
services:
kibana:
image: 'docker.elastic.co/kibana/kibana-oss:6.1.0'
elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.0'
oauth2-proxy:
image: 'a5huynh/oauth2_proxy:2.2'
@moznion
moznion / nginx.conf
Created December 14, 2017 13:44
nginx configuration file for kibana with oauth2_proxy
user nginx;
pid /var/run/nginx.pid;
worker_processes auto;
events {
use epoll;
}
use v6.c;
use Crust::Request;
use JSON::Fast;
sub app($env) {
my $req = Crust::Request.new($env);
given $req.path-info {
when '/' {
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use feature qw/state say/;
use Data::Validator;
package Foo {
sub build {
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use IO::Socket;
my $socket = IO::Socket::INET->new(
PeerAddr => 'localhost',
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Cache::Memcached::Fast;
use Parallel::ForkManager;
my $memd = Cache::Memcached::Fast->new({
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use feature qw/say/;
use File::Find qw/find/;
# usage example: perl mouse_coding_rule_checker.pl lib/
my $location = shift or die 'Please give location';
sudo apt-get update
sudo apt-get upgrade
sudo apt-get build-dep vim-gnome
git clone https://github.com/vim/vim
cd vim
./configure --with-features=huge --enable-pythoninterp=yes --enable-python3interp=yes --enable-perlinterp=yes --enable-rubyinterp=yes --enable-luainterp=yes --with-luajit
make
sudo make install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git ag ghq peco tmux reattach-to-user-namespace lua go tree jq nmap htop coreutils findutils gnu-sed colordiff hub automake autoconf shellcheck direnv cmake
brew install vim --with-luajit
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
git clone https://github.com/tokuhirom/plenv.git ~/.plenv
git clone https://github.com/tokuhirom/Perl-Build.git ~/.plenv/plugins/perl-build/
exec $SHELL -l
plenv install 5.22.2
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
diff --git a/examples/KitchenSink/src/LINEBot/KitchenSink/EventHandler/JoinEventHandler.php b/examples/KitchenSink/src/LINEBot/KitchenSink/EventHandler/JoinEventHandler.php
index 568b51f..7569722 100644
--- a/examples/KitchenSink/src/LINEBot/KitchenSink/EventHandler/JoinEventHandler.php
+++ b/examples/KitchenSink/src/LINEBot/KitchenSink/EventHandler/JoinEventHandler.php
@@ -46,9 +46,18 @@ class JoinEventHandler implements EventHandler
public function handle()
{
$this->bot->replyText(
$this->joinEvent->getReplyToken(),