Skip to content

Instantly share code, notes, and snippets.

@cluePrints
cluePrints / about.md
Created August 12, 2011 11:01 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@cluePrints
cluePrints / rails-install-ubuntu.sh
Created February 28, 2012 20:29 — forked from vesan/rails-install-ubuntu.sh
Rails Girls Install Scripts for OS X and Ubuntu
echo "Updates packages. Asks for your password."
sudo apt-get update -y
echo "Installs packages. Give your password when asked."
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev -y
echo "Installs ImageMagick for image processing"
sudo apt-get install imagemagick --fix-missing -y
echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
@cluePrints
cluePrints / gist:2521535
Created April 28, 2012 19:27
Installing Rails @ Amazon Linux

Steps

  • Build tools:

      sudo yum groupinstall "Development Tools"
    
  • Dependencies:

      yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel \
    

libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel

EXPORT CLIENT_FQDN="my.client.com"
EXPORT SERVER_FQDN="my.server.com"
EXPORT CLIENT_IP=". . ."
EXPORT SERVER_IP=". . ."
cat > /etc/sysconfig/network << EOF
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=$CLIENT_FQDN
@cluePrints
cluePrints / java_debug_capture.sh
Created August 10, 2012 16:57
Script to gather info about a java process - useful for producing informative bug reports.
#!/bin/bash
#
# Quickly collect information about a java process:
# - heap dump
# - stack trace
#
# Set this to control number of snapshots kept:
#
MAX_DUMPS=5
#
kitchen | Chef::Exceptions::RecipeNotFound
kitchen | --------------------------------
kitchen | could not find recipe test for cookbook platform_db
(use "git add <file>..." to include in what will be committed)
test/README.md
test/metadata.rb
test/recipes/test.rb
ERROR [2015-10-27 13:14:24,630] [qtp276055539-21459 - GET /cws/v1/pge/bill-comparison/bb417b2f-29ee-11e4-b0f1-0025b50000cf?bill=PREVIOUS&asOf=NOW] c.y.d.j.LoggingExceptionMapper - Error handling a reque
st: 59f6f104aceeb9dd
com.netflix.hystrix.exception.HystrixRuntimeException: com.opower.account.resources.AccountResource.getAccountByUuid timed-out and fallback disabled.
at com.netflix.hystrix.HystrixCommand.getFallbackOrThrowException(HystrixCommand.java:1675) ~[bill-comparison-server-0.0.4-SNAPSHOT.jar:na]
at com.netflix.hystrix.HystrixCommand.access$1900(HystrixCommand.java:103) ~[bill-comparison-server-0.0.4-SNAPSHOT.jar:na]
at com.netflix.hystrix.HystrixCommand$TimeoutObservable$1$1.run(HystrixCommand.java:1023) ~[bill-comparison-server-0.0.4-SNAPSHOT.jar:na]
at com.netflix.hystrix.strategy.concurrency.HystrixContextRunnable$1.call(HystrixContextRunnable.java:41) ~[bill-comparison-server-0.0.4-SNAPSHOT.jar:na]
at com.netflix.hystrix.strategy.concurrency.HystrixC
ERROR [2015-10-27 13:14:34,741] [hystrix-c51a5903-fb11-46ec-8822-63635b8f0643-19] c.o.r.c.g.e.ClientErrorHandler - Error while processing response
com.opower.rest.client.generator.core.ClientResponseFailure: Error status 504 null returned
at com.opower.rest.client.generator.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:344) ~[bill-comparison-server-0.0.4-SNAPSHOT.jar:na]
at com.opower.rest.client.generator.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:336) ~[bill-comparison-server-0.0.4-SNAPSHOT.jar:na]
at com.opower.rest.client.generator.core.BaseClientResponse.checkFailureStatus(BaseClientResponse.java:331) ~[bill-comparison-server-0.0.4-SNAPSHOT.jar:na]
at com.opower.rest.client.generator.extractors.BodyEntityExtractor.extractEntity(BodyEntityExtractor.java:43) ~[bill-comparison-server-0.0.4-SNAPSHOT.jar:na]
at com.opower.rest.client.generator.core.ClientInvoker.invoke(ClientInvoker.java:82) [bill-comparison-server-0
ivansobolev:~/workspace/bill-comparison-service $ ssh -vv bill-comparison-service@dev-service-1063.va.opower.it
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/ivansobolev/.ssh/config
debug1: /Users/ivansobolev/.ssh/config line 4: Applying options for *
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to dev-service-1063.va.opower.it [10.20.79.35] port 22.
debug1: Connection established.
insert into bill_summary(uuid, recipient_id, bill_summary_import_id, utility_code, utility_bill_id, amount_due, binned_amount_due, statement_date, due_date, bill_amount, binned_bill_amount, start_date, end_date, autopay, first_name, last_name, business_name, email_address, active_ebill, created_at) values( uuid_to_bin('e2b40422-b900-11e5-0000-cafecafecafe'), NULL, 584, 'PGE', '0634001159511', 198.41, 10, '2015-12-10', '2016-01-03', 38.41, NULL, NULL, NULL, NULL, 'Ivan Sobolev', NULL, 'IVAN SOBOLEV', 'ivan.sobolev@opower.com', 1, now());
insert into bill_summary(uuid, recipient_id, bill_summary_import_id, utility_code, utility_bill_id, amount_due, binned_amount_due, statement_date, due_date, bill_amount, binned_bill_amount, start_date, end_date, autopay, first_name, last_name, business_name, email_address, active_ebill, created_at) values( uuid_to_bin('c939e7be-b917-11e5-0001-cafecafecafe'), NULL, 584, 'PGE', '0634001159512', 198.41, 10, '2015-12-10', '2016-01-03', 38.41, NULL, NULL, NULL, NULL, 'Ivan Sobolev