This file contains hidden or 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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: cicd | |
namespace: stg | |
secrets: | |
- name: cicd-token-j87sc | |
- name: docker-creds-dev | |
- name: docker-creds-stg |
This file contains hidden or 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
pipeline { | |
agent none | |
options { | |
skipDefaultCheckout() | |
skipStagesAfterUnstable() | |
} | |
stages { | |
stage("parent") { | |
parallel { | |
stage('Build and Test Linux') { |
This file contains hidden or 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 -eu | |
KUBECTL=kubectl | |
SERVICE=nginx | |
TOBE_SELECTOR=$1 | |
function validateSelector() { | |
PODS=$($KUBECTL get pods --ignore-not-found=true --selector=app=$TOBE_SELECTOR) | |
if [ -z "$PODS" ]; then | |
echo "No resources found with --selector=app=${TOBE_SELECTOR}" |
This file contains hidden or 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
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
This file contains hidden or 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
[vagrant] | |
127.0.0.1 | |
[vagrant:vars] | |
ansible_user=vagrant | |
ansible_port=2222 | |
ansible_ssh_private_key_file=~/src/github.com/matsuu/vagrant-isucon/isucon5-qualifier-standalone/.vagrant/machines/default/virtualbox/private_key |
This file contains hidden or 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
kubeconfig |
This file contains hidden or 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
[[plugins]] | |
repo = 'Shougo/dein.vim' | |
[[plugins]] | |
repo = 'zchee/deoplete-go' | |
build = 'make' | |
depends = 'Shougo/deoplete.nvim' | |
on_i = 1 | |
on_ft = 'go' | |
hook_source = ''' |
This file contains hidden or 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/env bash | |
__run_rake() { | |
local docker_image="takitake/rubyalpine-nokogiri-preinstalled" | |
local host_src_volume="${PWD}" | |
local container_dest_volume="/work" | |
docker run \ | |
--volume="${host_src_volume}:${container_dest_volume}" \ | |
--workdir="${container_dest_volume}" \ |
This file contains hidden or 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/env elixir | |
defmodule Reader do | |
def read do | |
case IO.gets("N: ") do | |
data -> | |
String.strip(data) |> String.to_integer | |
end | |
end | |
end |
This file contains hidden or 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 nocompatible | |
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
call plug#begin('~/.vim/plugged') | |
" Color | |
Plug 'altercation/vim-colors-solarized' | |
" Unite | |
Plug 'Shougo/vimproc.vim' |
NewerOlder