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
| server { | |
| listen 80; | |
| server_name foo.mydomain.com; | |
| access_log /srv/sites/foo/access.log main; | |
| error_log /srv/sites/foo/error.log info; | |
| location / { | |
| proxy_pass http://unix:/srv/sites/foo/unicorn.sock; | |
| } |
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
| diff --git a/cookbooks/mongodb_sharding/recipes/configure.rb b/cookbooks/mongodb_sharding/recipes/configure.rb | |
| index 8f07f05..9c10ee2 100644 | |
| --- a/cookbooks/mongodb_sharding/recipes/configure.rb | |
| +++ b/cookbooks/mongodb_sharding/recipes/configure.rb | |
| @@ -30,7 +30,8 @@ roles.each do |role, params| | |
| Chef::Log.debug("running role #{role} with params #{params.inspect}") | |
| role = role.to_s | |
| mongo_data = @node[:mongo_base] + "/data_#{role}" | |
| - mongo_log = @node[:mongo_base] + "/log_#{role}" | |
| + #mongo_log = @node[:mongo_base] + "/log_#{role}" |
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
| 4_19 -> 3_10 | |
| 4_15 -> 3_11 | |
| 4_13 -> 4_10 | |
| 4_17 -> 4_12 | |
| ? -> 2_11 (still waiting to get a working non-domU node for this one but stuck as the moment because we can't add nodes) |
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
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'gmarik/Vundle.vim' | |
| Plugin 'tpope/vim-fugitive' | |
| Plugin 'L9' | |
| Plugin 'int3/vim-extradite' | |
| Plugin 'scrooloose/syntastic' |
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
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'gmarik/Vundle.vim' | |
| Plugin 'tpope/vim-fugitive' | |
| Plugin 'L9' | |
| Plugin 'int3/vim-extradite' | |
| Plugin 'scrooloose/syntastic' |
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
| brennan@brennans-Mac-Pro ~/code/rpn * simple-calc $ cat testInput.txt | coffee rpn.coffee | |
| > 5 | |
| 5 | |
| > 8 | |
| 8 | |
| > + | |
| 13 | |
| > -3 | |
| -3 | |
| > -2 |
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
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'gmarik/Vundle.vim' | |
| Plugin 'tpope/vim-fugitive' | |
| Plugin 'L9' | |
| Plugin 'int3/vim-extradite' | |
| Plugin 'scrooloose/syntastic' |
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
| alias ll="ls -lGh" | |
| alias ls="ls -Gh" | |
| alias p="ping google.com" | |
| alias ss="python -m SimpleHTTPServer 3000" | |
| alias gst="git status" | |
| alias gc="git checkout" | |
| alias gd="git diff" |
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
| import React from 'react' | |
| import ReactDOM from 'react-dom' | |
| import Rx from 'rxjs' | |
| import { AppContainer } from 'react-hot-loader' | |
| import { Provider } from 'react-redux' | |
| import { createStore } from 'redux' | |
| import rootReducer from './reducers' | |
| import App from './components/App' |
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
| const dns = require('dns') | |
| function lookup (serviceName) { | |
| const tasks = `tasks.${serviceName}` | |
| return new Promise((resolve, reject) => { | |
| dns.lookup(tasks, { all: true }, (err, addresses, family) => { | |
| if (err) { | |
| return reject(err) | |
| } | |
| const filtered = addresses.filter(address => address.family === 4) |
OlderNewer