group :development, :test do
  gem 'guard'
  gem 'guard-livereload', '~> 2.5', require: false
  gem 'rack-livereload'
end
  
    
      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/bash | |
| set -ex | |
| VM_NAME=centos7mini | |
| VM_RAM=1024 | |
| VM_CPU=1 | |
| # VM削除 動作怪しいぞ | |
| #virsh undefine ${VM_NAME} --remove-all-storage --delete-snapshots | 
  
    
      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
    
  
  
    
  | ls -d /proc/*/fd | sudo xargs -i sh -c 'ls {} | wc -l' | 
  
    
      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
    
  
  
    
  | cd /usr/local/src | |
| sudo git clone https://github.com/hishamhm/htop.git | |
| cd htop | |
| sudo git checkout refs/tags/2.0.2 | |
| sudo ./autogen.sh | |
| sudo ./configure | |
| sudo make | 
  
    
      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
    
  
  
    
  | configure使うと wide charcterの設定自動でしてくれて便利だった | |
| sudo apt install ncurses5-dev | |
| sudo apt install ncursesw5-dev | |
| cd /usr/local/src | |
| sudo git clone https://github.com/jonas/tig.git | |
| cd tig | |
| sudo git checkout refs/tags/tig-2.2.1 | |
| sudo ./autogen.sh | 
  
    
      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
    
  
  
    
  | // ページ読み込みが完了した時に実行 | |
| document.addEventListener("DOMContentLoaded", e => { | |
| console.log('fired ->', e.type, e.timeStamp) | |
| // turbolinksを有効にしている時 | |
| document.addEventListener('turbolinks:load', (evt)=>{ | |
| console.log('will render ->', evt.type, evt.timeStamp) | |
| let elm = document.getElementById('padapp') | |
| if (!elm) { return ; } | 
  
    
      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/boot.rb | |
| # ~ | |
| require 'rails/commands/server' | |
| module DefaultOptions | |
| def default_options | |
| super.merge!(Host:'0.0.0.0', Port: 3000) | |
| end | |
| end | |
| Rails::Server.send(:prepend, DefaultOptions) | 
  
    
      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
    
  
  
    
  | apt-get download samba | |
| dpkg-deb -x samba*.deb extract_here | 
  
    
      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
    
  
  
    
  | docker run --rm -u $(id -u):$(id -g) -v $(pwd):/srv --entrypoint /bin/cp svendowideit/samba -r /usr/share/doc/samba/examples/LDAP /srv | 
  
    
      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
    
  
  
    
  | ######################### | |
| # debian jessie on vagrant/VM | |
| # sudoedit /etc/systemd/system/create-ssh-host-keys.service | |
| # CHECK: | |
| # systemctl list-unit-files --type=service | grep create | |
| # ENABLE: | |
| # systemctl enable create-ssh-host-keys | |
| # systemctl start create-ssh-host-keys | |
| [Unit] | |
| Description=Create SSH host keys |