Setup your Digital Ocean droplet.
your machine:
ssh root@IP-ADDRESS
on the server:
passwd
| { | |
| "require": { | |
| "silex/silex": "1.0.*@dev", | |
| "twig/twig": ">=1.8,<2.0-dev", | |
| "symfony/twig-bridge": "~2.1", | |
| "monolog/monolog": ">=1.0.0" | |
| } | |
| } |
| //This script redirects all the links via blankrefer.com - except for the sites that were included in the protected_links string | |
| //Example: | |
| //var protected_links = "myspace,ebay"; | |
| var protected_links = ""; | |
| var a_to_va = 0; | |
| var a_to_vb = 0; | |
| var a_to_vc = ""; | |
| function blank_refer() | |
| { |
| #!/bin/env ruby | |
| # encoding: utf-8 | |
| require 'rubygems' | |
| require 'bundler/setup' | |
| # require your gems as usual | |
| require 'sequel' | |
| require 'nokogiri' | |
| require 'time' |
| all_images = Nokogiri.parse(body).css('a[href]').map { |a| a[:href] }.grep(/\.(?:png|jpg)\z/i) | |
| all_images << Nokogiri.parse(body).css('img[src]').map { |a| a[:src] }.grep(/\.(?:png|jpg)\z/i) |
| <style type="text/css"> | |
| *:not(input,textarea) { | |
| -webkit-touch-callout: none; | |
| -webkit-user-select: none; /* Disable selection/Copy of UIWebView */ | |
| } | |
| </style> |
| // Copyright 2013 Luke Holder. All rights reserved. | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file. | |
| package main | |
| import ( | |
| "github.com/russross/blackfriday" | |
| "io/ioutil" | |
| "net/http" |
Setup your Digital Ocean droplet.
your machine:
ssh root@IP-ADDRESS
on the server:
passwd
| <div class="navi-live"> | |
| <ol ui-nested-sortable="{ | |
| listType: 'ol', | |
| items: 'li', | |
| doNotClear: true, | |
| placeholder: 'ui-state-highlight', | |
| forcePlaceholderSize: true, | |
| toleranceElement: '> div' | |
| }" ui-nested-sortable-stop="update($event, $ui)" class="navi-item-container ui-sortable"><li ya-tree="child in data.children at ol" ng-class="{minimized:child.minimized}" class="navi-item ng-scope" ng-style="getStyle(child)" style="font-weight: bold;"> | |
| <div class="nav-item-contents"> |
| <form method="post" action="" accept-charset="UTF-8"> | |
| <input type="hidden" name="action" value="entries/saveEntry"> | |
| <input type="hidden" name="redirect" value="blog/{{ entry.slug }}"> | |
| <input type="hidden" name="entryId" value="{{ entry.id }}"> | |
| <input type="hidden" name="sectionId" value="1"> | |
| <input type="hidden" name="slug" value="{{ entry.slug }}"> | |
| <input type="hidden" name="enabled" value="1"> | |
| <label for="title">Title</label> | |
| <input id="title" type="text" name="title" value="{{ entry.title }}"> |