SSH into Root
$ ssh root@123.123.123.123
Change Root Password
SSH into Root
$ ssh root@123.123.123.123
Change Root Password
AngularJS
Here are some resources to help:
(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.
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!
\
| require_relative 'boot' | |
| db = Sequel.connect(ENV['DATABASE_URL']) | |
| Urls.attach_db(db[:urls]) | |
| run UrlShortener |
| require_relative 'boot' | |
| db = Sequel.connect(ENV['DATABASE_URL']) | |
| Urls.attach_db(db[:urls]) | |
| run UrlShortener |
Originally published in June 2008
When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.
To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.
Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.
| <?php | |
| include("simple_html_dom.php"); | |
| // Create DOM from URL or file | |
| $html = file_get_html('http://www.google.com/'); | |
| // Find all images | |
| /*foreach($html->find('img') as $element) | |
| echo $element->src . '<br>'; | |
| // Find all links |
| # in spec/support/omniauth_macros.rb | |
| module OmniauthMacros | |
| def mock_auth_hash | |
| # The mock_auth configuration allows you to set per-provider (or default) | |
| # authentication hashes to return during integration testing. | |
| OmniAuth.config.mock_auth[:twitter] = { | |
| 'provider' => 'twitter', | |
| 'uid' => '123545', | |
| 'user_info' => { | |
| 'name' => 'mockuser', |