Skip to content

Instantly share code, notes, and snippets.

View Hiroya-W's full-sized avatar
💭
🦈SAME

Hiroya-W

💭
🦈SAME
  • Japan
View GitHub Profile
@Hiroya-W
Hiroya-W / Makefile
Last active September 15, 2021 12:35
isucon11qで使えそうなMakefile
DATE:=$(shell date +%Y%m%d-%H%M%S)
CD:=$(CURDIR)
PROJECT_ROOT:=/home/isucon/webapp
# env.shに合わせて変更する
DB_HOST:=127.0.0.1
DB_PORT:=3306
DB_USER:=isucon
DB_PASS:=isucon
DB_NAME:=isucondition
@Hiroya-W
Hiroya-W / Makefile
Created August 12, 2021 14:51
isucon10qで使えそうなMakefile
DATE:=$(shell date +%Y%m%d-%H%M%S)
CD:=$(CURDIR)
PROJECT_ROOT:=/home/isucon/isuumo
# env.shに合わせて変更する
DB_HOST:=127.0.0.1
DB_PORT:=3306
DB_USER:=isucon
DB_PASS:=isucon
DB_NAME:=isuumo
@Hiroya-W
Hiroya-W / deployment_marker.sh
Created September 10, 2020 08:56
New Relicのデプロイメントマーカーを設定するスクリプト
rev=`git rev-parse HEAD`
message=`git show -s --format='%B' ${rev}`
user=`git show -s --format='%ae' ${rev}`
app_id=$NEW_RELIC_APP_ID
rest_api_key=$NEW_RELIC_REST_API_KEY
curl -X POST "https://api.newrelic.com/v2/applications/${app_id}/deployments.json" \
-H "X-Api-Key:${rest_api_key}" \
-i \
-H "Content-Type: application/json" \
@Hiroya-W
Hiroya-W / Makefile
Last active September 12, 2020 02:49
ISUCON9予選を解く時に使えそうなMakefile
DATE:=$(shell date +%Y%m%d-%H%M%S)
CD:=$(CURDIR)
PROJECT_ROOT:=/home/isucon/isucari
# env.shに合わせて変更する
DB_HOST:=127.0.0.1
DB_PORT:=3306
DB_USER:=isucari
DB_PASS:=isucari
DB_NAME:=isucari
@Hiroya-W
Hiroya-W / .vimrc
Last active September 6, 2020 05:02
プラグイン無しでとりあえずvimrcを配置したい時用のvimrc
set encoding=utf-8 "ファイル読み込み時の文字エンコード
scriptencoding utf-8 "マルチバイト文字
"-----------------------------------------
"" ColorScheme
"-----------------------------------------
set termguicolors " enable true colors support
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
syntax enable
[
{
"word": "藁千本あっても柱にはならぬ",
"roma": "warasenbonnattemohasiranihanaranu"
},
{
"word": "色気より食い気",
"roma": "irokeyorikuike"
},
{
@Hiroya-W
Hiroya-W / config
Created March 8, 2020 12:15
Polybar config
;====My Polybar Settings===================================
;https://github.com/matoruru/polybar-adapta-theme
;====General Settings======================================
[colors]
;bg = #222D32
bg = #2F2F2F
fg = #CFD8DC
set encoding=utf-8 "ファイル読み込み時の文字エンコード
scriptencoding utf-8 "マルチバイト文字
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/hiroya/.cache/dein/repos/github.com/Shougo/dein.vim