Resources
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
<article class="ticket"> | |
<h5><%= ticket.title %></h5> | |
<p>#<%= ticket.number %></p> | |
<p><%= ticket.summary %></p> | |
<% if ticket.issue %> | |
<%= link_to "View issue on Github", ticket.issue.github_url, class: "button small secondary" %> | |
<% else %> | |
<p> | |
<%= | |
form_for :ticket, routes.ticket_issues_path(ticket.id) do |
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
FROM ruby:2.2.3 | |
RUN apt-get update -qq | |
RUN apt-get install -y build-essential libpq-dev nodejs npm nodejs-legacy vim | |
ENV app /app | |
RUN mkdir $app | |
WORKDIR $app | |
ENV BUNDLE_PATH /box |
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
(ns lab-notebook.core | |
(:require [om.core :as om] | |
[om.dom :as dom])) | |
(defonce appstate (atom {})) | |
(defn item-view [cursor component] | |
(reify | |
om/IRender | |
(render [this] |
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
upstream devpost { | |
server unix:/web/platform/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { # main app | |
listen 80; | |
server_name .devpost.dev; | |
root /web/devpost/public; |
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
SEVERE: Unable to create core: default | |
org.apache.solr.common.SolrException: Error initializing QueryElevationComponent. | |
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:806) | |
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:619) | |
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:1021) | |
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1051) | |
at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:634) | |
at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:629) | |
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:166) |
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
deploy@app_master:princess i-9e7a7b61 /data/platform/current $ bundle exec rake sunspot:reindex | |
No config found for ["New Relic", "license_key"]. Activate the services that provides 'New Relic' or remove the code that uses it. | |
Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile | |
rake aborted! | |
RSolr::Error::Http: RSolr::Error::Http - 404 Not Found | |
Error: Not Found | |
Request Data: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:ActsAsTaggableOn\\:\\:Tag</query></delete>" | |
Backtrace: /data/platform/shared/bundled_gems/ruby/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:283:in `adapt_response' |
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
irb(main):089:0> def num_repeats(string) | |
irb(main):090:1> counts = {} | |
irb(main):091:1> string.each_char{|k|counts[k] ||=0; counts[k] +=1} | |
irb(main):092:1> counts.select{|k,v| v > 1 }.length | |
irb(main):093:1> end | |
=> :num_repeats | |
irb(main):094:0> num_repeats | |
ArgumentError: wrong number of arguments (0 for 1) | |
from (irb):89:in `num_repeats' | |
from (irb):94 |
AWS OpsWorks features an integrated management experience for the entire application lifecycle including resource provisioning, configuration management, application deployment, monitoring, and access control. It will work with applications of any level of complexity and is independent of any particular architectural pattern.
- Configure instances
- Automate provisioning