Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh root@123.123.123.123
Add ssh fingerprint and enter password provided in email
| class ExampleCrawler < PoltergeistCrawler | |
| def crawl | |
| visit "https://news.ycombinator.com/" | |
| click_on "More" | |
| page.evaluate_script("window.location = '/'") | |
| end | |
| end | |
| ExampleCrawler.new.crawl |
| packages: | |
| yum: | |
| git: [] | |
| files: | |
| /opt/elasticbeanstalk/hooks/appdeploy/pre/51install_meteor.sh: | |
| mode: "000755" | |
| user: root | |
| group: root | |
| encoding: plain |
| #! /usr/bin/python | |
| # Dispatch - synchronize two folders | |
| import os | |
| import filecmp | |
| import shutil | |
| from stat import * | |
| class Dispatch: | |
| ''' This class represents a synchronization object ''' |
| Using XCode with github | |
| ======================= | |
| 0. These steps were pulled from the documentation on github | |
| 1. Create an empty repository on GitHub | |
| do not initialize with a README | |
| 2. Note the SSH path to the new repository | |
| git@github.com:quoha/derp-octo-sansa.git |
| # Do not refactor, it is a bad practice. YOLO | |
| # Not understanding why or how something works is always good. YOLO | |
| # Do not ever test your code yourself, just ask. YOLO | |
| # No one is going to read your code, at any point don't comment. YOLO | |
| # Why do it the easy way when you can reinvent the wheel? Future-proofing is for pussies. YOLO |
| (function(XHR) { | |
| "use strict"; | |
| var stats = []; | |
| var timeoutId = null; | |
| var open = XHR.prototype.open; | |
| var send = XHR.prototype.send; | |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: nginx | |
| # Required-Start: $all | |
| # Required-Stop: $all | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts the nginx web server | |
| # Description: starts nginx using start-stop-daemon |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |