View send_ftp.sh
#!/bin/sh | |
#################################################################################################################### | |
# Upload by FTP | |
# NAME: | |
# send_ftp.sh | |
# SYNOPSIS: | |
# send_ftp.sh [FTP SERVER NAME] [FTP USER] [FTP PASSWORD] [SEND FILE PATH] [SEND REMOTE DIR] | |
#################################################################################################################### |
View setup-docker-to-vagrant-centos7.sh
# setup docker for vagrant/centos7 | |
# docker | |
yum install -y yum-utils device-mapper-persistent-data lvm2 | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
yum install -y docker-ce docker-ce-cli containerd.io | |
systemctl start docker | |
systemctl enable docker | |
usermod -aG docker vagrant |
View bash-completion-for-ssh.bash
# append for .bash_profile | |
# bash-completion for ssh | |
function _compreply_ssh(){ | |
COMPREPLY=(`cat ~/.ssh/config | grep -i -e '^host' | cut -d " " -f 2 | grep -E "$2"`) | |
} | |
complete -F _compreply_ssh ssh |
View Microsoft.PowerShell_profile.ps1
# copy below to $HOME\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 | |
$Host.PrivateData.DebugBackgroundColor = "DarkGray" | |
$Host.PrivateData.ErrorBackgroundColor = "DarkGray" | |
$tokenColors = @{ | |
'Command' = 'White' | |
'Comment' = 'DarkGreen' | |
'Keyword' = 'Blue' | |
'Member' = 'Cyan' |
View go-env-boot.sh
# system | |
sudo apt update | |
sudo apt install build-essential tree | |
# go | |
curl -OL https://dl.google.com/go/go1.10.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf go1.10.linux-amd64.tar.gz | |
echo 'export PATH=$PATH:/usr/local/go/bin' >> .profile | |
# vim |
View rails-env-boot.sh
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash - | |
sudo yum -y install vim git tmux tree gcc openssl-devel readline-devel sqlite-devel nodejs | |
sudo yum -y update | |
git config --global user.name 'twinbird' | |
git config --global user.email 'ixa2063@gmail.com' | |
git config --global core.editor 'vim' | |
curl -OL https://gist.githubusercontent.com/twinbird/040b298673e5c813a29962d3e5b858c6/raw/a983bbbbb5706e00a7ff08fe12b15323706591bb/.tmux.conf | |
curl -OL https://gist.githubusercontent.com/twinbird/adcec8abec12ad3398d0/raw/25a565fc75e0d868ab08f428cf86b80a625cf0b6/.vimrc | |
alias vi=vim >> ~/.bash_profile |
View bootstrap.sh
#!/usr/bin/env bash | |
# vagrant provisioning shell script for my development environemt | |
# for ubuntu/trusty64 | |
test -f /etc/bootstrapped && exit | |
# install development utility | |
sudo apt-get -y install gcc | |
sudo apt-get -y install make |
View gvimrc
"--------------------------------------------------------------------------- | |
" Windows用gvimrc | |
"--------------------------------------------------------------------------- | |
scriptencoding utf-8 | |
"--------------------------------------------------------------------------- | |
" カラー設定: | |
"--------------------------------------------------------------------------- | |
colorscheme desert |
View pearson.go
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) | |
func main() { | |
sc := bufio.NewScanner(os.Stdin) |
View .tmux.conf
# prefixはt | |
set -g prefix C-t | |
# 再描画間隔は1秒 | |
set-option -g status-interval 1 | |
# 右下は日付 | |
set-option -g status-right "#[fg=black][%Y/%m/%d]" | |
# ペインのサイズ変更を若干vim風に | |
bind -r < resize-pane -L 5 | |
bind -r - resize-pane -D 5 | |
bind -r + resize-pane -U 5 |
NewerOlder