Skip to content

Instantly share code, notes, and snippets.

View hurrycane's full-sized avatar
🌗

Bogdan Gaza hurrycane

🌗
View GitHub Profile
@hurrycane
hurrycane / config.rb
Created October 21, 2010 08:50 — forked from sferik/config.rb
RailsAdmin.config User do
label "Users" # @model.pretty_name
list do
before do
puts "Called before list"
end
fields :name, :description # All columns
filters :publication_date, :retired # All booleans
@hurrycane
hurrycane / gist:5249643
Created March 26, 2013 21:52
Beanstalkd wire logs
T 127.0.0.1:49631 -> 127.0.0.1:11300 [AP]
use coada_mea.
T 127.0.0.1:11300 -> 127.0.0.1:49631 [AP]
USING coada_mea.
T 127.0.0.1:49631 -> 127.0.0.1:11300 [AP]
watch coada_mea.
LoadPlugin threshold
LoadPlugin exec
<Plugin exec>
NotificationExec "nobody:nogroup" "/usr/lib/collectd/exec/handle_notification"
</Plugin>
<Plugin threshold>
<Host "tools.presslabs.net">
<Plugin "memory">
# cat resources/user/api.py
from finny.views import ModelResource
from vvv.boot import db
from resources.user.model import User
class UsersView(ModelResource):
route_base = "users"
model = User
pip install twitter.pants --allow-external elementtree --allow-unverified elementtree
./../src/tests/cgroups_tests.cpp:297: Failure
cgroups::mount(TEST_CGROUPS_HIERARCHY, "cpu,memory", 10): 'cpu' is already attached to another hierarchy
[ FAILED ] CgroupsNoHierarchyTest.ROOT_CGROUPS_NOHIERARCHY_MountUnmountHierarchy (1003 ms)
FROM phusion/baseimage:0.9.11
ENV HOME /root
# custom keys
ADD private.pub /tmp/service
RUN mkdir -p /root/.ssh
RUN chmod 700 /root/.ssh
### Keybase proof
I hereby claim:
* I am hurrycane on github.
* I am hurrycane (https://keybase.io/hurrycane) on keybase.
* I have a public key whose fingerprint is D011 A978 E301 0100 3FC1 3735 4573 140D 5838 F236
To claim this, I am signing this object:

What questions would you put on a phone screen for a distributed systems position?

These come from @tsantero with the last two additions being curteousy of @ifesdjeen in reply to this question from @SeanTAllen.

  1. explain the life of an http request.
  2. what does the FLP result teach us?
  3. what is a byzantine failure?
  4. explain CRDTs
  5. explain linearizability.
  6. how does DNS work?
sudo nvidia-docker run --rm tensorflow/tensorflow:0.10.0-gpu python -c 'import tensorflow as tf ; print tf.__version__'