Skip to content

Instantly share code, notes, and snippets.

View amaltson's full-sized avatar

Arthur Maltson amaltson

View GitHub Profile
@amaltson
amaltson / now this
Last active October 31, 2018 04:02
tilex issues
til_1 | Generated tilex app
til_1 | ** (Mix) The database for Tilex.Repo couldn't be created: an exception was raised:
til_1 | ** (DBConnection.ConnectionError) tcp connect (localhost:5432): connection refused - :econnrefused
til_1 | (db_connection) lib/db_connection/connection.ex:163: DBConnection.Connection.connect/2
til_1 | (connection) lib/connection.ex:622: Connection.enter_connect/5
til_1 | (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
til_1 |
til_1 | 03:47:45.784 [error] GenServer #PID<0.7076.0> terminating
til_1 | ** (DBConnection.ConnectionError) tcp connect (localhost:5432): connection refused - :econnrefused
til_1 | (db_connection) lib/db_connection/connection.ex:163: DBConnection.Connection.connect/2
@amaltson
amaltson / config.ru
Created October 23, 2015 17:12
Start with `thin start` and then connect to the client with just ruby websocket-client.rb
require 'eventmachine'
require 'rack'
require 'thin'
require 'faye/websocket'
Faye::WebSocket.load_adapter('thin')
App = lambda do |env|
if Faye::WebSocket.websocket?(env)
ws = Faye::WebSocket.new(env)
@amaltson
amaltson / ipaddress curl works
Last active October 9, 2015 17:08
iptables configuration
$ curl -k https://192.168.8.135
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
...
@amaltson
amaltson / failing-test.log
Created September 24, 2015 15:47
Lattice tests failing
ltc test -v
Running Suite: Lattice Integration Tests
========================================
Random Seed: 1443109592
Will run 5 of 5 specs
Lattice docker when desiring a docker-based LRP
should run a docker app
/tmp/build/6ab27078-648c-411d-6b7c-b21706a7cd5f/go/src/github.com/cloudfoundry-incubator/lattice/ltc/cluster_test/cluster_test_runner.go:138
[test] Attempting to stream cluster debug logs
@amaltson
amaltson / lattice.out
Last active September 15, 2015 19:25
Failing lattice with proxy, ltc test -v
ltc test -v
Running Suite: Lattice Integration Tests
========================================
Random Seed: 1442344933
Will run 5 of 5 specs
Lattice docker when desiring a docker-based LRP
should run a docker app
/tmp/build/6ab27078-648c-411d-6b7c-b21706a7cd5f/go/src/github.com/cloudfoundry-incubator/lattice/ltc/cluster_test/cluster_test_runner.go:138
[test] Attempting to stream cluster debug logs
$ cat Rakefile
require 'rake'
require 'rspec/core/rake_task'
hosts = %w(
atlspf01
atlspf02
atlspf03
atlspf04
)
$ cat Rakefile
require 'rake'
require 'rspec/core/rake_task'
hosts = %w(
atlspf01
atlspf02
atlspf03
atlspf04
)
Rakefile:
require 'rake'
require 'rspec/core/rake_task'
hosts = %w(
atlspf01
atlspf02
atlspf03
atlspf04
@amaltson
amaltson / .kitchen.yml
Last active August 29, 2015 14:19
Attribute precedence
...
suites:
- name: default
run_list:
...
attributes:
otpp_redis:
primary:
search_criteria: 'run_list:recipe[otpp_redis::primary]'
@amaltson
amaltson / logs
Created March 5, 2015 16:34
Chef 12 403 forbidden
==> /var/log/opscode/opscode-erchef/crash.log <==
2015-03-04 21:48:44 =ERROR REPORT====
{<<"method=PUT; path=/nodes/<node name>; status=403; ">>,"Forbidden"}
==> /var/log/opscode/opscode-erchef/erchef.log <==
2015-03-04 21:48:44.173 [error] {<<"method=PUT; path=/nodes/<node name>; status=403; ">>,"Forbidden"}
==> /var/log/opscode/opscode-erchef/current <==
2015-03-05_02:48:44.17854 [error] {<<"method=PUT; path=/nodes/<node name>; status=403; ">>,"Forbidden"}