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
docker pull registry | |
docker run -d -p 5000:5000 registry |
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
routes = Rails.application.routes.routes.map do |route| | |
path = route.path.spec.to_s.gsub(/\(\.:format\)/, "") | |
params = path.scan(/:([a-zA-Z_]+)/).flatten.collect(&:to_sym) | |
verb = %W{ GET POST PUT PATCH DELETE }.grep(route.verb).first.downcase.to_sym | |
action = route.defaults[:action] | |
controller = route.defaults[:controller] | |
{ | |
#path: path, | |
verb: verb, | |
action: action && action.to_sym, |
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
yum install -y git nano gcc gcc-c++ openssl-devel readline-devell wget make libffi-devel | |
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
tar xvzf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure | |
make | |
sudo make install | |
cd |
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
[global] | |
read raw = Yes | |
write raw = Yes | |
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072 | |
min receivefile size = 16384 | |
use sendfile = true | |
aio read size = 16384 | |
aio write size = 16384 | |
unix charset = UTF-8 |
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
host: | |
animemap: | |
host: http://animemap.net/api/table/ | |
format: :xml | |
api: | |
get_tokyo: | |
title: 東京のアニメ一覧 | |
uri: tokyo.xml | |
http_method: get | |
get_osaka: |
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
@startuml{example.png} | |
!include color.inc | |
title <size:18>クーポン発行フロー</size> | |
(*) --> "発行情報を登録/変更" | |
--> "情報入力フォーム" as input <<input>> | |
--> "入力内容の確認" | |
--> if "" then | |
note right:入力 OK? |
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
skinparam { | |
noteFontStyle bold | |
noteFontColor #ffffff | |
noteBackgroundColor #7f8c8d | |
noteBorderColor #7f8c8d | |
activityArrowColor #000000 | |
activityBackgroundColor #eeeeee | |
activityBorderColor #999999 | |
activityStartColor #000000 |
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
keycode 102 = Zenkaku_Hankaku | |
remove Lock = Caps_Lock | |
keysym Caps_Lock = Control_L | |
add Control = Control_L |
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
server { | |
listen 80; | |
server_name outer.mmmpa.net; | |
autoindex on; | |
# ファイル表示するときの | |
location / { | |
# 最終的にファイルが保存されるパスとか | |
root /app/outer_uploader/uploaded; |
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
fs = require 'fs' | |
path = require 'path' | |
changeCase = require 'change-case' | |
_ = require 'lodash' | |
module.exports = generateIndexCoffee = (dir)-> | |
container = changeCase.pascalCase(pickDirName(dir)) | |
fs.readdir(dir, (err, files)-> | |
requests = files.map((file)-> |