I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| # Install tmux on Centos release 6.5 | |
| # http://superuser.com/questions/738829/attempting-to-install-tmux-on-centos-6-4-or-centos-6-5-fails-with-error-evbuff | |
| # | |
| # READ THIS FIRST!!! | |
| # MAKE SURE YOU HAVE BUILD TOOLS/COMPILERS TO BUILD STUFF FROM SOURCES | |
| # yum groupinstall "Development Tools" | |
| # CD TO TEMPORARY DIRECTORY |
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| {{-- Define all our servers --}} | |
| @servers(['staging' => '', 'production' => '']) | |
| @setup | |
| {{-- The timezone your servers run in --}} | |
| $timezone = 'Europe/Amsterdam'; | |
| {{-- The base path where your deployments are sitting --}} | |
| $path = '/var/www/site.com/htdocs'; |
| # config/initializers/instrumentation.rb | |
| # Subscribe to grape request and log with Rails.logger | |
| ActiveSupport::Notifications.subscribe('grape.request') do |name, starts, ends, notification_id, payload| | |
| Rails.logger.info '[API] %s %s (%.3f ms) -> %s %s%s' % [ | |
| payload[:request_method], | |
| payload[:request_path], | |
| (ends-starts)*1000, | |
| (payload[:response_status] || "error"), | |
| payload[:x_organization] ? "| X-Org: #{payload[:x_organization]}" : "", |
#How I built an audio book reader for my nearly blind grandfather
Last year, when visiting my family back home in Holland, I also stopped by my grand-parents. My grand-father, now 93 years old, had always been a very active man. However, during the presceding couple of months, he'd gone almost completely blind and now spent his days sitting in a chair. Trying to think of something for him to do, I suggested he try out audio books. After finally convincing him -- he said audio books were for sad old people -- that listening to a well performed recording is actually a wonderful experience, I realized the problem of this idea.
####The problem with audio devices and the newly blind. After my first impulse to jump up and go buy him an
| #!/bin/sh | |
| set -e | |
| set -x | |
| for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
| do | |
| npm -g install "$package" | |
| done |