This script enables you to launch your Rails application in production environment (port:80) with Nginx and Unicorn.
Please make sure that your Gemfile in your rails application includes unicorn.
| #!/bin/sh | |
| ## EC CUBE set permission | |
| chmod -R o+w html/install/temp/ | |
| chmod -R o+w html/user_data/ | |
| chmod -R o+w html/upload/ | |
| chmod -R o+w data/class/ | |
| chmod -R o+w data/cache/ | |
| chmod -R o+w data/logs/ | |
| chmod -R o+w data/downloads/ | |
| chmod -R o+w data/upload/ |
| # -*- coding: utf-8 -*- | |
| # | |
| # Usage | |
| # | |
| # rails new yourapp -m https://raw.github.com/gist/1178242/3c77cfffeb99f32d19333de986ff41283aa9eb26/rails_template_for_3.1.rb -T --skip-bundle | |
| # | |
| git :init | |
| append_file '.gitignore', <<-END |
| eval($q= "$q='eva l($q=% p.split *%p)'%[$q,'' ];$o= 0;(m=%q_efg!q !+b<b/tj{f/uj | |
| nft|}j }u>b\\ j^<qsj ou)j& 3>>1@(!(+u;% r\\%p-u ^*<%p,>u!jg)j &3>>2*~<qvut< | |
| foe_ ).si ze.tim es{| i|m[ i]-= 1};eval(m );p( 0,8, 14,8 ,4,6 | |
| ,4,7 ,4,1 2,15,5, 36,1 3,6, 13); p(1, 6,16 ,6,6 ,6,4 ,5,6 ,12, | |
| 13,7 ,36, 13,6 ,13 );p( 2,4, 18,4 ,8,6 ,3,4 ,8,4,4,4,11, 9,36,4,5,4,6 | |
| ,4,5 ,4); p(2, 4,18,4, 8,7, 2,4, 8,4,5,4,9,4,3,4 ,35,4,5,4,6 ,4,5,4);p(2 | |
| ,4,1 8,4, 8,4, 1,3,1, 4,8, 4,5, 4,8,4, |
| require 'formula' | |
| class Emacs < Formula | |
| url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3b.tar.bz2' | |
| md5 '917ce0054ef63773078a6e99b55df1ee' | |
| homepage 'http://www.gnu.org/software/emacs/' | |
| if ARGV.include? "--use-git-head" | |
| head 'git://repo.or.cz/emacs.git' | |
| else |
| * メモリはどれくらい載せたほうがよいか | |
| 16gbがおすすめ | |
| 8gbだとCPUの性能限界より先にメモリが足りなくなる | |
| DBをいくつか載せたりファイルサーバーもVMとして載せたいなら32gbがよい | |
| * GPUパススルー方法 | |
| 下記のカードをつける | |
| AMD RADEON HD4xxx系 | |
| AMD RADEON HD5xxx系 | |
| AMD RADEON HD6xxx系 |
| import javafx.application.Application; | |
| import javafx.event.ActionEvent; | |
| import javafx.event.EventHandler; | |
| import javafx.geometry.Pos; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Hyperlink; | |
| import javafx.scene.control.Label; | |
| import javafx.scene.layout.BorderPane; | |
| import javafx.scene.layout.FlowPane; | |
| import javafx.scene.web.WebEngine; |
#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
| pry> methods.sort.each {|m| puts m } | |
| != | |
| !~ | |
| <=> | |
| == | |
| === | |
| =~ | |
| __id__ | |
| __send__ | |
| _cleanup_options_and_set |
| let s:P = g:V.import('ProcessManager') | |
| let s:p = s:P.of('qr', 'clojure-1.6') | |
| nnoremap <Space>r :<C-u>call <SID>run()<Cr> | |
| function! s:run() | |
| if s:p.is_new() | |
| call s:p.wait(['user=> ']) | |
| endif |