Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<head> | |
<style> | |
.node circle { | |
fill: #fff; | |
stroke: steelblue; | |
stroke-width: 1.5px; | |
} | |
cd ~ | |
sudo yum update | |
sudo yum install java-1.7.0-openjdk.i686 -y | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share |
# This will create <a> | |
= link_to 'Text in the button', specimen, class: 'btn btn-xs btn-success' |
Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh [email protected]
Add ssh fingerprint and enter password provided in email
require 'resque-status' | |
module Importer | |
require_relative 'importer_base' | |
require 'rbc' | |
class Pipe < ImporterBase | |
def initialize(key, options={}) | |
@key = key | |
@options = options |
# This file is auto-generated from the current state of the database. Instead | |
# of editing this file, please use the migrations feature of Active Record to | |
# incrementally modify your database, and then regenerate this schema definition. | |
# | |
# Note that this schema.rb definition is the authoritative source for your | |
# database schema. If you need to create the application database on another | |
# system, you should be using db:schema:load, not running all the migrations | |
# from scratch. The latter is a flawed and unsustainable approach (the more migrations | |
# you'll amass, the slower it'll run and the greater likelihood for issues). | |
# |
class Blink < Sinatra::Base | |
require 'rbc' | |
get '/user/:id' do |id| | |
@user = User.find(id) | |
haml :users_show | |
end | |
get '/user/:id/destroy' do |id, status| | |
restrict! :to_below => 3 |
#!/usr/bin/env python | |
import json | |
import urllib2 | |
import os | |
import sys | |
import pexpect | |
import time | |
usr,pts = str(sys.argv[1]).split('.') |