A Pen by SENDA Keijiro (千田啓次郎) on CodePen.
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
:%s/<1b>\[[0-9;]*m//g | |
※ <1b> はそのまま入力するのではなく、 <Ctrl+v><ESC> で入力する Escape 制御文字です。 |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Type `vagrant up desktop` to launch | |
Vagrant.configure("2") do |config| | |
config.vm.define "desktop" do |desktop| | |
desktop.vm.box = "boxcutter/ubuntu1604-desktop" | |
config.vm.provider "virtualbox" do |vb| | |
vb.cpus = 2 | |
vb.memory = "2048" |
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
git clone https://bitbucket.org/1000k/FOOBAR.git | |
cd FOOBAR/ |
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
# ADD USER | |
useradd foobar | |
passwd foobar | |
# Enter password. | |
# APPEND USER TO WHEEL GROUP (to grant sudo privilege) | |
usermod -G wheel foobar | |
visudo | |
# Edit following line: | |
# %wheel ALL=(ALL) ALL |
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
# initialization file (not found) |
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
; ---- config start | |
HOST = '127.0.0.1:2222' | |
USERNAME = 'core' | |
KEYFILE = 'C:\Users\1000k\.vagrant.d\insecure_private_key' | |
; ---- config end | |
; 最終的に↓のようなコマンドになればOK | |
;cmd = '{HOST} /ssh /2 /auth=publickey /user={USERNAME} /keyfile={KEYFILE}' |
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
; ---- config start | |
HOST = '127.0.0.1:2222' | |
USERNAME = 'core' | |
KEYFILE = 'C:\Users\1000k\.vagrant.d\insecure_private_key' | |
; ---- config end | |
;cmd = '{HOST} /ssh /2 /auth=publickey /user={USERNAME} /keyfile={KEYFILE}' |
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
# ref: [railsをdockerで動かしたい場合の構成はどうするべきか - Qiita](http://qiita.com/k-shogo/items/592e243f9763d0c3b10a) | |
FROM ruby:latest | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
curl \ | |
git \ | |
zlib1g-dev \ | |
libssh-dev \ | |
libssl-dev \ | |
libreadline-dev \ |
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/sh | |
# *************** | |
# config | |
# *************** | |
id=DB_USER_NAME | |
pw=DB_USER_PASSWORD | |
db=DB_NAME | |
tables=("clients" "points" "users") | |
dir=/tmp/mysql_dump/ |
NewerOlder