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
| user app; | |
| worker_processes 2; | |
| error_log /home/app/logs/nginx.error.log info; | |
| events { | |
| worker_connections 1024; | |
| } | |
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
| require 'rubygems' | |
| require 'eventmachine' | |
| class Connection < EventMachine::Connection | |
| attr_accessor :fiber, :name | |
| def initialize | |
| # FYI: Этот метод вызывается когда инициируется новый коннект | |
| # Создаем для каждого нового коннекта свой Fiber | |
| # Каждому fiber надо дать метод |
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
| #!/usr/bin/env ruby | |
| require 'fog' | |
| PROVIDER='AWS' | |
| AWS_BUCKET_NAME='NAME' | |
| ROOT='/path/to/_site' | |
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
| " ----------------------------------------------------------------------------- | |
| " | VIM Settings | | |
| " | (see gvimrc for gui vim settings) | | |
| " | | | |
| " | Some highlights: | | |
| " | jj = <esc> Very useful for keeping your hands on the home row | | |
| " | ,n = toggle NERDTree off and on | | |
| " | | | |
| " | ,f = fuzzy find all files | | |
| " | ,b = fuzzy find in all buffers | |
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
| require 'eventmachine' | |
| class Connection < EventMachine::Connection | |
| attr_accessor :fiber, :name | |
| def initialize | |
| # FYI: Этот метод вызывается когда инициируется новый коннект | |
| # Создаем для каждого нового коннекта свой Fiber | |
| # Каждому fiber надо дать метод | |
| # В нашем случаее это poll |
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
| Script started on Wed May 4 23:49:32 2011 | |
| bash-3.2$ ./bu[K[Kcouchdbx-core-builder.sh | |
| + '[' -z '' ']' | |
| + COUCHDB_VERSION=1.0.3 | |
| + '[' -z '' ']' | |
| + COUCHDB_SVNPATH=tags/1.0.3 | |
| + '[' -z '' ']' | |
| + ERLANG_VERSION=R14B02 | |
| + MAKE_OPTS=-j4 | |
| + DIRS='src dist' |
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
| unicorn_profiles="dev prod" | |
| unicorn_dev_enable="yes" | |
| unicorn_dev_user="devuser" | |
| unicorn_dev_listen="/tmp/unicorn.dev.socket" | |
| unicorn_dev_dir="/usr/local/www/dev" | |
| unicorn_dev_config="/usr/local/www/dev/config.ru" | |
| unicorn_dev_env="development" | |
| unicorn_dev_flags="" # any additional flags | |
| unicorn_dev_rails="YES" # For rails |
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
| *** LOCAL GEMS *** | |
| abstract (1.0.0) | |
| Author: makoto kuwata | |
| Homepage: http://rubyforge.org/projects/abstract | |
| Installed at: /usr/local/lib/ruby/gems/1.8 | |
| a library which enable you to define abstract method in Ruby | |
| actionmailer (3.0.7, 2.3.11) |
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
| Feb 23 01:14:00 Kerberos slapd[3409]: daemon: activity on 1 descriptor | |
| Feb 23 01:14:00 Kerberos slapd[3409]: daemon: activity on: | |
| Feb 23 01:14:00 Kerberos slapd[3409]: | |
| Feb 23 01:14:00 Kerberos slapd[3409]: daemon: epoll: listen=8 busy | |
| Feb 23 01:14:00 Kerberos slapd[3409]: daemon: epoll: listen=9 active_threads=0 tvp=zero | |
| Feb 23 01:14:00 Kerberos slapd[3409]: daemon: epoll: listen=10 active_threads=0 tvp=zero | |
| Feb 23 01:14:00 Kerberos slapd[3409]: daemon: listen=8, new connection on 17 | |
| Feb 23 01:14:00 Kerberos slapd[3409]: daemon: added 17r (active) listener=(nil) | |
| Feb 23 01:14:00 Kerberos slapd[3409]: conn=1032 fd=17 ACCEPT from IP=192.168.1.103:57899 (IP=0.0.0.0:389) | |
| Feb 23 01:14:00 Kerberos slapd[3409]: daemon: activity on 2 descriptors |
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
| Andrey-Cherkashins-MacBook-Pro:~ andoriyu$ nano test.coffee | |
| Andrey-Cherkashins-MacBook-Pro:~ andoriyu$ coffee -p test.coffee | |
| (function() { | |
| var i, n; | |
| n = 2; | |
| for (i = 0; 0 <= n ? i <= n : i >= n; 0 <= n ? i++ : i--) { | |
| console.log(i); | |
| } |