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
## | |
# HTTP | |
upstream example.local { | |
server 172.56.0.12; | |
# server 172.56.0.12:3000; | |
} | |
server { | |
autoindex off; | |
client_max_body_size 100M; |
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
composer create-project laravel/laravel ./web v5.7.0 | |
sudo chmod -R 777 web/storage/ | |
tee ./web.conf << 'EOF' | |
server { | |
index index.php index.html; | |
server_name localhost; | |
error_log /var/log/nginx/error.log; | |
access_log /var/log/nginx/access.log; | |
root /web/public; |
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
.DEFAULT_GOAL := help | |
.PHONY: help | |
TS=`date +%Y%m%d%H%M%S` | |
hoge: ## hogehoge | |
echo hoge | |
moge: ## mogemoge | |
echo ${TS} |
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
set dictionary=~/.vim/dict/robot-built-in.dict | |
set dictionary=~/.vim/dict/robot-selenium-library.dict | |
fun! CompleteSpace() | |
" Save cursor position | |
let l:save_cursor = getpos(".") | |
" Get word we just completed ('borrowed' from: http://stackoverflow.com/a/23541748/660921) | |
let l:word = matchstr(strpart(getline('.'), 0, col('.') - 1), '\k\+$') |
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
# | |
# 説明: | |
# カレントディレクトリにある空のディレクトリを検出して、 | |
# ディレクトリが空であればREPO_URLからgit cloneするワンライナー | |
ACCOUNT_NAME=nobiki | |
# REPO_URL="https://${ACCOUNT_NAME}@example.com/nobiki/" | |
REPO_URL="[email protected]:${ACCOUNT_NAME}/" | |
find ./ -type d -maxdepth 1 -empty | sed -e "s/\.\///g" | while read line; do echo -e "\e[1;32m-> $line \n \e[m" && git clone --recursive "$REPO_URL$line.git"; done |
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
# Compose: | |
# docker-compose -f trello.yml run --rm trello [board|list|card] | |
# API Key: | |
# https://trello.com/1/appKey/generate | |
# Member Token: | |
# [RO] https://trello.com/1/connect?key=YOUR_API_KEY&name=trello-cli&response_type=token | |
# [RW] https://trello.com/1/authorize?key=YOUR_API_KEY&name=trello-cli&expiration=never&response_type=token&scope=read,write | |
version: "2" |
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 : | |
# A dummy plugin for Barge to set hostname and network correctly at the very first `vagrant up` | |
module VagrantPlugins | |
module GuestLinux | |
class Plugin < Vagrant.plugin("2") | |
guest_capability("linux", "change_host_name") { Cap::ChangeHostName } | |
guest_capability("linux", "configure_networks") { Cap::ConfigureNetworks } | |
end | |
end |
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/bash | |
if [ "upload" == $1 ];then | |
scp `dirname $0`/$2/$3 hostname:/path/to/workspace/$2/$3 | |
elif [ 'download' == $1 ];then | |
scp hostname:/path/to/workspace/$2/$3 `dirname $0`/$2/$3 | |
fi |
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
FROM centos:7 | |
MAINTAINER Naoaki Obiki | |
RUN yum update -y | |
RUN yum group install -y 'Development Tools' | |
RUN yum install -y libxml2-devel wget | |
RUN wget "http://jp2.php.net/get/php-7.0.9.tar.gz/from/this/mirror" -P /usr/local/src/ | |
RUN mv /usr/local/src/mirror /usr/local/src/php-7.0.9.tar.gz | |
RUN wget "http://pecl.php.net/get/pthreads-3.1.6.tgz" -P /usr/local/src/ |
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 | |
use Behat\Behat\Context\Context; | |
use Behat\MinkExtension\Context\RawMinkContext; | |
use Behat\Mink\WebAssert; | |
use Behat\Behat\Context\SnippetAcceptingContext; | |
use Behat\Gherkin\Node\PyStringNode; | |
use Behat\Gherkin\Node\TableNode; | |
use WebDriver\Session; |