This file contains 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
machine: | |
pre: | |
# install docker 1.10.0 | |
- curl -sSL https://git.io/vrcFi | bash -e | |
# install yarn | |
- curl -sSL https://git.io/v1XIm | bash -e | |
services: | |
- docker | |
dependencies: | |
override: |
This file contains 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
#!/bin/bash -xe | |
YARN_VERSION=${YARN_VERSION:-0.17.10} | |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then | |
echo "Download and install Yarn." | |
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION | |
else | |
echo "The correct version of Yarn is already installed." | |
fi |
This file contains 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
sudo mkdir -p /opt/boxen | |
sudo chown ${USER}:staff /opt/boxen | |
git clone https://github.com/chytreg/our-boxen.git /opt/boxen/repo | |
cd /opt/boxen/repo | |
script/boxen --debug |
This file contains 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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"dictionary": "Packages/Language - English/en_US.dic", | |
"font_face": "Monaco", | |
"font_size": 12.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "Nexus.sublime-theme", |
This file contains 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
class ApplicationController < ActionController::Base | |
# Turn on request forgery protection | |
protect_from_forgery | |
after_filter :set_csrf_cookie_for_ng | |
def set_csrf_cookie_for_ng | |
cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery? | |
end | |
protected |
This file contains 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
ssh mm4user@demo03.marketmaker4.com -vvv -i ~/.ssh/id_rsa_monterail [ 2.0.0-p0 ] | |
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 | |
debug1: Reading configuration data /etc/ssh_config | |
debug1: Applying options for * | |
debug2: ssh_connect: needpriv 0 | |
debug1: Connecting to demo03.marketmaker4.com [50.57.55.50] port 22. | |
debug1: Connection established. | |
debug3: Not a RSA1 key file /Users/chytreg/.ssh/id_rsa_monterail. | |
debug2: key_type_from_name: unknown key type '-----BEGIN' | |
debug3: key_read: missing keytype |
This file contains 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
# inside class Application < Rails::Application block | |
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')] |
This file contains 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
[2012-06-19 13:42:16,472][WARN ][cluster.metadata ] [Hydron] [test] failed to create | |
org.elasticsearch.indices.IndexCreationException: [test] failed to create index | |
at org.elasticsearch.indices.InternalIndicesService.createIndex(InternalIndicesService.java:288) | |
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$1.execute(MetaDataCreateIndexService.java:242) | |
at org.elasticsearch.cluster.service.InternalClusterService$2.run(InternalClusterService.java:211) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) | |
at java.lang.Thread.run(Thread.java:680) | |
Caused by: java.lang.IllegalArgumentException: Custom Analyzer [default] failed to find filter under name [polish] | |
at org.elasticsearch.index.analysis.CustomAnalyzerProvider.build(CustomAnalyzerProvider.java:75) |
This file contains 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 'wrest' | |
require 'dalli' | |
module Wrest::Caching | |
class Memcached | |
def initialize(server_urls=nil, options={}) | |
@memcached = Dalli::Client.new(server_urls, options) | |
end |
This file contains 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
- puts this in application.rb | |
# Sprockets::HjsTemplate | |
Sprockets.register_engine '.hjs', Sprockets::HjsTemplate | |
- add those gems in Gemfile: | |
gem 'haml' | |
gem 'eco' |
NewerOlder