Skip to content

Instantly share code, notes, and snippets.

ubuntu@ip-10-28-245-161:~$ sudo passenger-status
----------- General information -----------
max = 4
count = 4
active = 4
inactive = 0
Waiting on global queue: 136
----------- Application groups -----------
/web/portal/current:
deploy 7889 0.0 0.7 3205212 60484 ? Ssl Oct09 10:01 java -Djetty.port=8983 -Dsolr.data.dir=/web/portal/releases/20131009164331/solr/data/production -Dsolr.solr.home=/web/portal/releases/20131009164331/solr -Djava.util.logging.config.file=/tmp/logging.properties20131009-7889-1swhw8j -jar start.jar
deploy 12457 0.0 0.8 3205212 62100 ? Ssl Oct09 9:58 java -Djetty.port=8983 -Dsolr.data.dir=/web/portal/releases/20131009164803/solr/data/production -Dsolr.solr.home=/web/portal/releases/20131009164803/solr -Djava.util.logging.config.file=/tmp/logging.properties20131009-12457-1efll2o -jar start.jar
deploy 20534 0.0 0.8 3205216 61380 ? Ssl Oct09 9:56 java -Djetty.port=8983 -Dsolr.data.dir=/web/portal/releases/20131009192810/solr/data/production -Dsolr.solr.home=/web/portal/releases/20131009192810/solr -Djava.util.logging.config.file=/tmp/logging.properties20131009-20534-l2bg82 -jar start.jar
deploy 26865 0.0 1.2 3205496 97260 ? Ssl Oct02 15:50 java -Djetty.port=8983 -D
@knowuh
knowuh / SublimeLinter.sublime-settings
Created September 6, 2013 14:58
SublimeLinter.sublime-settings
{
"sublimelinter_executable_map": {
"ruby": "/Users/npaessel/.rvm/bin/rvm-auto-ruby"
},
"sublimelinter_delay": 1,
"sublimelinter_fill_outlines": false,
"sublimelinter_gutter_marks": true,
"sublimelinter_popup_errors_on_save": true,
@knowuh
knowuh / Invalid Run
Created August 29, 2013 19:21
Rails Error message (invalid run)
Started GET "/activities/11/pages/72" for 63.138.152.194 at 2013-08-29 19:13:27 +0000
Processing by InteractivePagesController#show as HTML
Parameters: {"activity_id"=>"11", "id"=>"72"}
Completed 404 Not Found in 26ms
ActionController::RoutingError (No route matches {:controller=>"interactive_pages", :action=>"show", :activity_id=>11, :id=>72, :response_key=>"5cb082fb3254c1ab"}):
app/controllers/interactive_pages_controller.rb:16:in `show'
@knowuh
knowuh / ordered_by_helper.rb
Created August 29, 2013 17:07
rspec matcher for checking that a collection is sorted by an attribute
RSpec::Matchers.define :be_ordered_by do |attribute|
match do |actual|
result = true
reverse_indicator = "_desc"
if attribute =~ /#{reverse_indicator}/
symbol = attribute.gsub(/#{reverse_indicator}/,'').to_sym
sorted = actual.sort{ |a,b| b.send(symbol) <=> a.send(symbol)}
else
sorted = actual.sort{ |a,b| a.updated_at <=> b.updated_at}
end
@knowuh
knowuh / SublimeLinter.sublime-settings.json
Created August 29, 2013 16:01
How to setup sublimelinter to use rvm ruby-bin for ruby.
"sublimelinter_executable_map":
{
"ruby": "<fullpath-to-your-home-dir>/.rvm/bin/rvm-auto-ruby"
},
@knowuh
knowuh / index.html
Created June 19, 2013 22:25
<base> attribute messes with url(#...) Style SVG attributes.
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
<base href="http://lab4.dev.concord.org/" />
</head>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="373"
@knowuh
knowuh / index.html
Created June 19, 2013 22:23
SVG with glow (working / no BASE attribute in HTML)
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
</head>
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="373"
height="186.5"
{
"folders":
[
{
"path": "/Users/npaessel/lab/javascript/mysystem_sc",
"file_exclude_patterns":[
".*~",
"*.bak",
"*.tar",
"*.tgz",
require File.expand_path('../boot', __FILE__)
require 'rails/all'
CONFIG = YAML.load(File.read(File.expand_path('../settings.yml', __FILE__)))
CONFIG.merge! CONFIG.fetch(Rails.env, {})
CONFIG.symbolize_keys!
module RailsPortal