Skip to content

Instantly share code, notes, and snippets.

View dgoldie's full-sized avatar

Doug Goldie dgoldie

  • Mountain View, CA
View GitHub Profile
Successfully tagged dockerzon_sidekiq:latest
➜ dockerzon docker-compose up
Starting dockerzon_postgres_1 ... done
Recreating dockerzon_dockerzon_1 ... done
Starting dockerzon_redis_1 ... done
Recreating dockerzon_sidekiq_1 ... done
Attaching to dockerzon_redis_1, dockerzon_postgres_1, dockerzon_sidekiq_1, dockerzon_dockerzon_1
postgres_1 |
postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1 |
{
"services": [
{
"serviceArn": "arn:aws:ecs:us-east-1:032936670503:service/worker",
"serviceName": "worker",
"clusterArn": "arn:aws:ecs:us-east-1:032936670503:cluster/production",
"loadBalancers": [],
"serviceRegistries": [],
"status": "ACTIVE",
"desiredCount": 1,
12:05:54 back_end.1 | Started GET "/s/vmhqq19?dnt=true" for ::1 at 2019-01-22 12:05:54 -0800
12:05:54 back_end.1 | Processing by Shortener::ShortenedUrlsController#show as HTML
12:05:54 back_end.1 | Parameters: {"dnt"=>"true", "id"=>"vmhqq19"}
12:05:54 back_end.1 | Shortener::ShortenedUrl Load (0.7ms) SELECT "shortened_urls".* FROM "shortened_urls" WHERE ("shortened_urls"."expires_at" IS NULL OR "shortened_urls"."expires_at" > '2019-01-22 20:05:54') AND "shortened_urls"."unique_key" = $1 ORDER BY "shortened_urls"."id" ASC LIMIT $2 [["unique_key", "vmhqq19"], ["LIMIT", 1]]
12:05:54 back_end.1 | Shortener::ShortenedUrl Load (0.5ms) SELECT "shortened_urls".* FROM "shortened_urls" WHERE "shortened_urls"."unique_key" = $1 LIMIT $2 [["unique_key", "vmhqq19"], ["LIMIT", 1]]
12:05:54 back_end.1 | Destination Load (0.6ms) SELECT "destinations".* FROM "destinations" WHERE "destinations"."active" = $1 AND "destinations"."id" = $2 LIMIT $3 [["active", true], ["id", "33b7e59a-0901-463c-9495-e3a0f48d
@dgoldie
dgoldie / ignite.log
Last active April 30, 2017 21:06
trying to run ignite 2 quick example
➜ PizzaApp git:(master) ✗ react-native run-ios
Scanning 847 folders for symlinks in /Users/doug/code/work/angelhacks/spike_react/ignite_example/PizzaApp/node_modules (5ms)
Found Xcode project PizzaApp.xcodeproj
Launching iPhone 6 (iOS 10.3)...
Building using "xcodebuild -project PizzaApp.xcodeproj -configuration Debug -scheme PizzaApp -destination id=155D1A67-8CC5-409B-BBF1-8001726AF85F -derivedDataPath build"
User defaults from command line:
IDEDerivedDataPathOverride = /Users/doug/code/work/angelhacks/spike_react/ignite_example/PizzaApp/ios/build
➜ ~ ab -n 1000 -c 100 http://127.0.0.1:4001/api/test/
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
@dgoldie
dgoldie / gist:853c69d79f53baae5fcb
Created February 20, 2016 08:13
integration.sh errors
➜ orthrus git:(master) ./integration.sh
==> ex_aws
Compiled lib/ex_aws/config/defaults.ex
Compiled lib/ex_aws.ex
Compiled lib/ex_aws/client.ex
Compiled lib/ex_aws/actions.ex
Compiled lib/ex_aws/auth/utils.ex
Compiled lib/ex_aws/config.ex
Compiled lib/ex_aws/config/auth_cache.ex
Compiled lib/ex_aws/dynamo/encoder.ex
@dgoldie
dgoldie / tuco_firefox.txt
Created October 31, 2014 19:02
tuco adventures
Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Interactive Elixir (1.0.1-dev) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> use TucoTuco.DSL
:ok
iex(2)> TucoTuco.start_session :browser_test, :test_login, :firefox
** (exit) exited in: :gen_server.call(:tuco_tuco, {:start_session, %WebDriver.Config{browser: :firefox, name: :browser_test, root_url: ""}, :test_login})
** (EXIT) exited in: :gen_server.call(:browser_test, {:start_session, :test_login})
** (EXIT) no process
@dgoldie
dgoldie / configure.log
Last active August 29, 2015 14:08
installing nokogiri on Yosemite
2.1.4 apollo:~
$ cat /Users/doug/.rvm/gems/ruby-2.1.4/gems/nokogiri-1.6.3.1/ext/nokogiri/tmp/x86_64-apple-darwin14.0.0/ports/libxml2/2.8.0/configure.log
configure: WARNING: if you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used
configure: error: cannot find sources (entities.c) in /Users/doug/code/libraries/ctags or ..
2.1.4 apollo:~
@dgoldie
dgoldie / login_session_with_tucotuco
Last active August 29, 2015 14:08
Using TucoTuco with login form
Interactive Elixir (1.0.1-dev) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> use TucoTuco.DSL
:ok
iex(2)> TucoTuco.start_session :test_browser, :tuco_test, :phantomjs
{:ok,
%TucoTuco.SessionPool.SessionPoolState{app_root: nil,
current_session: :tuco_test, max_retry_time: 2000, retry_delay: 50,
use_retry: false}}
iex(3)> visit "http://games.espn.go.com/ffl/signin"
{:ok,
@dgoldie
dgoldie / gist:d632527d4062eee341fc
Created September 12, 2014 20:05
Phoenix html safe error
[error] ErlangError) erlang error: {:error, :function_clause}
(phoenix) lib/phoenix/html.ex:71: Phoenix.Html.Safe.Tuple.to_string({:safe, [91, [123, [[34, ["name"], 34], 58, [34, ["Eddie"], 34], 44, [34, ["id"], 34], 58, "18", 44, [34, ["fantasy_iq_description"], 34], 58, [34, ["8 Yahoo Seasons"], 34], 44, [34, ["fantasy_iq"], 34], 58, '81.06', 44, [34, ["contests"], 34], 58, "null"], 125], [44, [123, [[34, ["name"], 34], 58, [34, ["Leslie"], 34], 44, [34, ["id"], 34], 58, "16", 44, [34, ["fantasy_iq_description"], 34], 58, [34, ["4 Yahoo Seasons"], 34], 44, [34, ["fantasy_iq"], 34], 58, '78.33', 44, [34, ["contests"], 34], 58, "null"], 125], 44, [123, [[34, ["name"], 34], 58, [34, ["Denny"], 34], 44, [34, ["id"], 34], 58, "17", 44, [34, ["fantasy_iq_description"], 34], 58, [34, ["10 Yahoo Seasons"], 34], 44, [34, ["fantasy_iq"], 34], 58, '77.65', 44, [34, ["contests"], 34], 58, "null"], 125], 44, [123, [[34, ["name"], 34], 58, [34, ["Johnny"], 34], 44, [34, ["id"], 34], 58, "15", 44, [34, ["fantasy_iq_de