Skip to content

Instantly share code, notes, and snippets.

set-option -g default-shell /usr/local/bin/fish
set-option -g default-command /usr/local/bin/fish
#set-option -g display-time 3000
#set-option -g status-interval 1
set-option -g set-titles on
set-window-option -g utf8 on
# auto window rename
setw -g automatic-rename
@yujiod
yujiod / TERATERM_ANSIColor_monokai.INI
Created December 2, 2015 02:23
Monokai for TeraTerm
; monokai
ANSIColor=0,39,40,34, 1,243,4,75, 2,141,208,6, 3,204,204,129, 4,3,131,245, 5,168,125,184, 6,88,194,229, 7,255,255,255, 8,124,124,124, 9,167,3,52, 10,116,170,4, 11,182,182,73, 12,1,84,158, 13,137,86,156, 14,26,131,166, 15,202,202,202
@yujiod
yujiod / Dockerfile
Created November 19, 2015 14:03
Dockerfile example of php built-in server.
# Usage:
# docker build -t docker-php-example .
# docker run -d -p 8080:80 docker-php-example
# open http://192.168.99.100:8080/
FROM php
RUN echo "<?php echo 'Hello World';" > /tmp/index.php
CMD ["php", "-S", "0.0.0.0:80", "-t", "/tmp"]
@yujiod
yujiod / Dockerfile
Last active November 19, 2015 14:02
Dockerfile example of WordPress with maker theme.
# Usage:
# curl -o maker.zip https://downloads.wordpress.org/theme/maker.0.1.7.zip
# unzip maker.zip
# docker build -t docker-wp-with-theme-example .
# docker run -d --name wpmysql -e MYSQL_ROOT_PASSWORD=SUqUpxm8PYVzdY6V mysql
# docker run -d --name wp --link wpmysql:mysql -d -p 8080:80 docker-wp-with-theme-example
# open http://192.168.99.100:8080/
FROM wordpress
ADD maker /usr/src/wordpress/wp-content/themes/maker
@yujiod
yujiod / .tmux.conf
Last active March 30, 2021 14:40
tmux dot file
set-option -g default-shell /usr/local/bin/fish
set-option -g default-command /usr/local/bin/fish
set-option -g set-titles on
# auto window rename
setw -g automatic-rename
# mouse setting
set -g mouse on
@yujiod
yujiod / cloud-config.yml
Last active November 7, 2015 13:29
cloud-config.yml for Mac mini
#cloud-config
hostname: coreos
coreos:
update:
reboot-strategy: best-effort
etcd:
discovery: https://discovery.etcd.io/{HASH}
addr: 192.168.10.9:4001
@yujiod
yujiod / install_jenkins.sh
Last active November 6, 2015 00:42
Install Jenkins and PHP5.6 by Ansible to CentOS6
#!/bin/sh
ansible-playbook -i inventory jenkins.yml
@yujiod
yujiod / rpi2-build-image.sh
Created March 9, 2015 01:46
Build Ubuntu 14.04 (Trusty Tahr) image for Raspberry Pi 2
#!/bin/sh
########################################################################
# rpi2-build-image
# Copyright (C) 2015 Ryan Finnie <ryan@finnie.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
@yujiod
yujiod / playbook.yml
Created January 21, 2015 08:04
Ansible Playbook
- hosts: 127.0.0.1
connection: local
tasks:
- yum: name={{item}}
with_items:
- httpd
- php
- mysql
@yujiod
yujiod / insert_data.sh
Created December 23, 2014 23:12
ダミーデータを挿入するシェルスクリプト
#!/bin/sh
# MySQLの接続先
MYSQL_ID='root'
MYSQL_HOST='localhost'
MYSQL_SCHEMA='redmine'
# ユーザーのテーブル定義
TABLE_USER_FROM='users'
TABLE_USER_FROM_ID='id'