Entries from 2015-01-01 to 1 year
nginx.conf #app1 upstream backend-unicorn1 { server unix:/path_to_app1/tmp/unicorn.sock; } #app2 upstream backend-unicorn2 { server unix:/path_to_app2/tmp/unicorn.sock; } server { listen 80; server_name localhost; location /app1/ { .... pr…
config.ruをdev時でもprod時でも動くように設定 http://www.mk-mode.com/octopress/2013/01/22/ruby-on-rails-nginx-unicorn/ http://higelog.brassworks.jp/?p=1760# This file is used by Rack-based servers to start the application.require ::File.exp…
Rails Rails4.2からブラウザからアクセスしようとしたら繋がらない。 $ ./bin/rails s => Booting WEBrick => Rails 4.2.0 application starting in development on http://localhost:3000起動時のアドレスがlocalhostになっていると外部からのアクセスが繋…
http://www.redmine.org/projects/redmine/wiki/Downloadwget http://www.redmine.org/releases/redmine-3.0.5.tar.gz$ cd ~/redmine-3.0.5 $ bundle install$ nano ~/redmine-3.0.5/config/database.yml# SQLite3 configuration example development: adapt…
rails4で動く、動かない両方の記述が散出しているので、 https://github.com/refinery/refinerycms/issues/3032 を元に現時点(2015/9月)でのインストールとチュートリアル(http://www.refinerycms.com/guides/getting-started/#rails-application-templat…
Refinaryのgetting-startedを参考にインストールを試みたが、失敗。http://www.refinerycms.com/guides/getting-started http://www.refinerycms.com/download 参考の参考 http://blog.scimpr.com/2014/08/13/rails4-1%E3%81%AB%E5%AF%BE%E5%BF%9C%E3%81%97%…
/home/user/.rvm/gems/ruby-2.0.0-p643/gems/execjs-2.6.0/lib/execjs/runtimes.rb:48:in `autodetect': Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) from …
rbenvのアンインストール$ rm -rf ~/.rbenv $ rm -rf /usr/local/bin/rbenv $ rm -rf /usr/local/Cellar/rbenv.bash_profile等でPATHを設定した部分も削除して下さい
adduser user_name (※ useradd はホームディレクトリが作成されない) su user_name gpasswd -a user_name sudo
RVM環境を切腹$ rvm seppukurbenvをクローンする。$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenvruby-buildをクローンする。$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build.bashrcに追記する。$…
POSTROUTING ACCEPT [0 0] # Allow forward traffic to eth0 A POSTROUTING -s 10.99.99.0/24 -o eth0 -j MASQUERADE # Process the NAT table rules COMMITAt this point, you can run "sudo ufw disable && sudo ufw enable" or just reboot to be safe. Y…
Edit /etc/pptpd.conf At the end of the file "/etc/pptpd.conf", add: localip 10.99.99.99 remoteip 10.99.99.100-199These values do not have to correspond to your network. It is best to pick un-accessible/unused addresses here if you only wan…
http://silverlinux.blogspot.hk/2012/05/how-to-pptp-vpn-on-ubuntu-1204-pptpd.htmlHow To: PPTP VPN on Ubuntu 12.04 (pptpd) I recently started renting a 128 MB RAM Xen VPS for $15/quarter with a promotional offer for nqhost.com as seen on htt…
Fcitx and fcitx-anthy インストール後 http://www.server-world.info/query?os=Ubuntu_14.04&p=japanese
http://askubuntu.com/questions/640172/dns-routing-after-pptp-connection http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/ askubuntu.com/questions/137037/networkmanager-not-populating-resolv-conf
http://server-setting.info/ubuntu/first-setting-ubuntu-server.html
http://websetnet.com/how-to-build-a-dedicated-vpn-router/
VPN使用時にはルーターからフォワードされたパケットは該当機に到達するが、その後処理され元のルーターに帰らずVPNのゲートウェイに押し出される。 結果として、外部からのアクセス結果がアクセスをした外部機に戻らなくなる。(外部機からはアクセス出来無…
http://phantomjs.org/download.html http://phantomjs.org/build.html
http://www.chupamobile.com/split-test http://www.chupamobile.com/ios-app-templates/restaurant-app-premium-template-3725
http://www.cyberciti.biz/tips/howto-configure-ubuntu-fedora-linux-pptp-client.html Linux configure point to point tunneling PPTP VPN client for Microsoft PPTP vpn server by Vivek Gite on June 11, 2007 in FreeBSD, Howto, Linux, Linux distri…
export DISPLAY=:0 && /usr/bin/gnome-terminalhttps://help.ubuntu.com/community/CronHowto http://superuser.com/questions/351528/open-a-terminal-from-a-crontab
http://mukaer.com/archives/2012/07/07/tmuxcron/ 基本的には2つのターミナルを用意して、初めのターミナルで$ byobu-tmux new-session -n foo次に別のターミナルで #スクリプトの実行結果をbyobuのgooウィンドに残したい場合 $ byobu-tmux new-window -n g…
http://www.slideshare.net/sonots/sinatra-pattern-20130415 https://github.com/sonots/sinatra-tutorial/tree/master/08.multi
http://morizyun.github.io/blog/whenever-gem-rails-ruby-capistrano/ $ gem install whenever $ cd /apps/my-project $ wheneverize ./apps/my-project/config/schedule.rbが出来る$ nano ./config/schedule.rb# Use this file to easily define all of yo…
#! /bin/bash#cvt 1280 720 #cvt 1680 1050xrandr --newmode 1680x1050 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync xrandr --newmode 1280x720 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsyncxrandr --addmode VIRTUAL1 1680…
http://www.unixmen.com/setup-local-mail-server-using-postfix-dovecot-squirrelmail-opensuse-13-x/
/etc/network/if-up.d/static-routes ファイル(がなければ作成して実行可能にし,それ)に次の行を追加する.#!/bin/sh /sbin/route add -net "domain" gw gateway_ip netmask 255.255.255.255 dev eth0
1.Increase memory Open up LibreOffice Writer. Click Tools -> Options. Click Memory (under LibreOffice). Increase the Graphics Cache -> Use for LibreOffice value (try 128 MB to start and increase further if needed). Increase Memory per obje…
http://www.infoq.com/jp/articles/ruby-file-upload-ssh-intro