Skip to content

Instantly share code, notes, and snippets.

View taisyo7333's full-sized avatar

Daisuke Inoue taisyo7333

View GitHub Profile
@taisyo7333
taisyo7333 / .zshrc
Last active July 16, 2018 09:43
zshrc ... Use zgen
# https://github.com/tarjoilija/zgen
# load zgen
source "${HOME}/.zgen/zgen.zsh"
POWERLEVEL9K_MODE='awesome-fontconfig'
# if the init script doesn't exist
if ! zgen saved; then
# specify plugins here
zgen load superbrothers/zsh-kubectl-prompt
@taisyo7333
taisyo7333 / ruby_on_rails5.md
Last active March 12, 2018 16:37
ruby on rails5 はまったこと

現象

# bundle exec rails c
Could not find rake-12.3.0 in any of the sources
Run `bundle install` to install missing gems.

解決

# bundle install --binstubs
@taisyo7333
taisyo7333 / .zshrc
Last active November 23, 2017 00:39
minikube セットアップ(kubectl , kubernetes) on Mac
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <[email protected]>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
@taisyo7333
taisyo7333 / mac_first.md
Created September 23, 2017 05:57
Mac 導入時にやること
@taisyo7333
taisyo7333 / pyenv-virtualenv.md
Last active September 23, 2017 05:25
pyenv-virtualenv 導入手順 for Mac

1. pyenv-virtualenv 導入手順

brew update
brew install pyenv-virtualenv

echo 'export PYENV_ROOT="${HOME}/.pyenv"' >> ~/.bash_profile
echo 'export PATH="${PYENV_ROOT}/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
echo 'eval "$(pyenv virtualenv-init -)"' &gt;&gt; ~/.bash_profile
@taisyo7333
taisyo7333 / nginx_check.md
Created September 22, 2017 11:14
nginx チェック
nginx -t -c /etc/nginx/nginx.conf
@taisyo7333
taisyo7333 / ansible.md
Last active September 19, 2017 06:40
ansible 入門
$ vagrant init ubuntu/trusty64
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
@taisyo7333
taisyo7333 / redash.md
Created September 15, 2017 06:44
Redash TIPS

.envファイル

YYYY/MM/DDで日付を表示したい

REDASH_DATE_FORMAT: YYYY/MM/DD
@taisyo7333
taisyo7333 / help_me.md
Last active October 21, 2017 01:44
emacs libjpeg.8.dylib

problem

I had the following the error , I could not start emacs.

emacs                                                                                                  feature/refactoring
dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
  Referenced from: /usr/local/Cellar/emacs/25.2/Emacs.app/Contents/MacOS/Emacs
  Reason: image not found
[1]    80638 trace trap  /usr/local/Cellar/emacs/25.2/bin/emacs