nginx.conf
server {
listen 80;
server_name example.com;
root /var/www/html/;
index index.html;
access_log /var/log/nginx/access_log hogehoge;
# knife cheat | |
## Search Examples | |
knife search "name:ip*" | |
knife search "platform:ubuntu*" | |
knife search "platform:*" -a macaddress | |
knife search "platform:ubuntu*" -a uptime | |
knife search "platform:ubuntu*" -a virtualization.system | |
knife search "platform:ubuntu*" -a network.default_gateway |
source 'https://rubygems.org' | |
gem 'chef' | |
gem 'knife-solo' |
#!/bin/bash | |
usage() | |
{ | |
# Fetch the shell script name | |
local script_name=$(basename "$0") | |
# Show help | |
cat << END |
;; .emacs | |
;;; uncomment this line to disable loading of "default.el" at startup | |
;; (setq inhibit-default-init t) | |
;; enable visual feedback on selections | |
(setq transient-mark-mode t) | |
;; default to better frame titles | |
(setq frame-title-format |
file_to_disk = './tmp/large_disk.vdi' | |
Vagrant::Config.run do |config| | |
config.vm.box = 'base' | |
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024] | |
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk] | |
end |
1 | |
00:00:04,829 --> 00:00:09,829 | |
Credit to: Sakti Tandi [1st Indonesian-Script] | |
English. Subs. and. Re-Sync. by npdv-iD | |
2 | |
00:00:19,043 --> 00:00:21,168 | |
You know there are more people | |
with genius IQ living in China |
class Plan < ActiveRecord::Base | |
include AASM | |
aasm column: 'state' do | |
state :pending, initial: true | |
state :processing | |
state :finished | |
state :errored | |
event :process, after: Proc.new { start } do |