Skip to content

Instantly share code, notes, and snippets.

View craigboman's full-sized avatar

Craig Boman craigboman

View GitHub Profile
root@ruby-rails-1gb-nyc3-01:/home/search_app# bundle exec solr_wrapper
Starting Solr 7.0.0 on port 8983 ... solr-7.0.0.zip: |===========================================================================| 100% (Time: 00:00:02 )
solr-7.0.0.zip.md5: |=======================================================================| 100% (Time: 00:00:00 )
/usr/local/rvm/gems/ruby-2.4.0/gems/solr_wrapper-1.1.0/lib/solr_wrapper/instance.rb:322:in `exec': Failed to execute solr start: WARNING: Starting Solr as the root user is a security risk and not considered best practice. Exiting. (RuntimeError)
Please consult the Reference Guide. To override this check, start with argument '-force'
. Further information may be available in /tmp/solr-7.0.0/logs
from /usr/local/rvm/gems/ruby-2.4.0/gems/solr_wrapper-1.1.0/lib/solr_wrapper/instance.rb:75:in `start'
from /usr/local/rvm/gems/ruby-2.4.0/gems/solr_wrapper-1.1.0/lib/solr_wrapper/
root@ruby-rails-1gb-nyc3-01:/home/search_app# rake solr:marc:index_test_data
rake aborted!
Errno::ECONNREFUSED: Connection refused - Connection refused - connect(2) for "127.0.0.1" port 8983 (127.0.0.1:8983)
/usr/local/rvm/gems/ruby-2.4.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:623:in `rescue in create_socket'
/usr/local/rvm/gems/ruby-2.4.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:607:in `create_socket'
/usr/local/rvm/gems/ruby-2.4.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:755:in `block in connect'
/usr/local/rvm/gems/ruby-2.4.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:748:in `connect'
/usr/local/rvm/gems/ruby-2.4.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:511:in `query'
/usr/local/rvm/gems/ruby-2.4.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:177:in `query'
/usr/local/rvm/gems/ruby-2.4.0/gems/httpclient-2.8.3/lib/httpclient.rb:1242:in `do_get_block'
@craigboman
craigboman / fund code
Last active August 17, 2017 12:52
trying to get the fund label name from sierra_view.fund
SELECT
*
FROM
sierra_view.order_record AS o
JOIN
sierra_view.order_record_paid AS orp
ON
o.id = orp.order_record_id
@craigboman
craigboman / [FEDORA] gitkraken
Created August 14, 2017 19:28 — forked from aelkz/[FEDORA] gitkraken
How to install gitkraken on Fedora 25 + launcher icon
#!/bin/bash
# Download GitKraken
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz
# copy the downloaded file into /opt directory
cp gitkraken-amd64.tar.gz /opt/gitkraken
cd /opt
@craigboman
craigboman / rstudio-cc.yml
Last active April 25, 2017 00:04 — forked from mdlincoln/rstudio-cc.yml
cloud-config script to setup Rstudio server and Shiny server on Ubuntu 14.04 on Digital Ocean
#cloud-config
# In order to access RStudio server via the web interface, you must log on with
# a user account that allows password access. This script does not add that user
# by default. You may either ssh as root into the server and `adduser` as
# normal, or script a user addition here:
# users:
# - name: # username #
# lock-passwd: false # allow login with password