Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / gist:c93c3df4158e8ee086ba249b2f50c782
Created November 23, 2016 16:06
Interesting stuff on Distributed Systems
The Fallacies of Distributed Systems - https://www.youtube.com/watch?v=JG2ESDGwHHY
Event Sourcing - https://www.youtube.com/watch?v=8JKjvY4etTY
From REST to CQRS with Clojure, Kafka, & Datomic - https://www.youtube.com/watch?v=qDNPQo9UmJA
Microservices at Netflix - https://www.youtube.com/watch?v=57UK46qfBLY
Consistency without consensus in production systems - https://www.youtube.com/watch?v=em9zLzM8O7c
Deconstructing the database - https://www.youtube.com/watch?v=Cym4TZwTCNU
Other resources:
The Aphyr blog: https://aphyr.com/posts (especially the one on Linearizability/Consistency)
CAP theorem series: http://blog.thislongrun.com/2015/03/the-cap-theorem-series.html
@hannesl
hannesl / my_controller_test.rb
Created September 8, 2016 10:50
Testing http basic authentication in Rails 5
class MyControllerTest < ActionDispatch::IntegrationTest
test "authentication" do
params = {test: "object"}
auth_headers = {"Authorization" => "Basic #{Base64.encode64('test:test')}"}
post '/my-controller', params: params, as: :json
assert_response 401
post '/my-controller', params: params, as: :json, headers: auth_headers
assert_response :success
end
@glebm
glebm / i18n_status.html.slim
Created June 22, 2014 18:06
Missing and unused translations report (i18n-tasks v0.5.0+)
h1 Missing and unused translations
- if @missing.present?
.panel.panel-default
.panel-heading: h3.panel-title #{@missing.leaves.count} missing keys
table.table.table-striped.table-condensed
thead: tr
th.text-right Locale
th Key
th Value