Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
require 'tire' | |
require 'sqlite3' | |
require 'active_record' | |
require 'will_paginate' | |
ActiveRecord::Base.establish_connection( adapter: 'sqlite3', database: ":memory:" ) | |
ActiveRecord::Migration.verbose = false | |
ActiveRecord::Schema.define(version: 2) do | |
create_table :articles do |t| |
<?php | |
class SAPE_base { | |
var $_version = '1.0.3'; | |
var $_verbose = false; | |
var $_charset = ''; // http://www.php.net/manual/en/function.iconv.php | |
var $_server_list = array('dispenser-01.sape.ru', 'dispenser-02.sape.ru'); |
(function(){var n=this,t=n._,r={},e=Array.prototype,u=Object.prototype,i=Function.prototype,a=e.push,o=e.slice,c=e.concat,l=u.toString,f=u.hasOwnProperty,s=e.forEach,p=e.map,v=e.reduce,h=e.reduceRight,g=e.filter,d=e.every,m=e.some,y=e.indexOf,b=e.lastIndexOf,x=Array.isArray,_=Object.keys,j=i.bind,w=function(n){return n instanceof w?n:this instanceof w?(this._wrapped=n,void 0):new w(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=w),exports._=w):n._=w,w.VERSION="1.4.3";var A=w.each=w.forEach=function(n,t,e){if(null!=n)if(s&&n.forEach===s)n.forEach(t,e);else if(n.length===+n.length){for(var u=0,i=n.length;i>u;u++)if(t.call(e,n[u],u,n)===r)return}else for(var a in n)if(w.has(n,a)&&t.call(e,n[a],a,n)===r)return};w.map=w.collect=function(n,t,r){var e=[];return null==n?e:p&&n.map===p?n.map(t,r):(A(n,function(n,u,i){e[e.length]=t.call(r,n,u,i)}),e)};var O="Reduce of empty array with no initial value";w.reduce=w.foldl=w.inject=function(n,t,r,e){var u=arguments.leng |
<!doctype html> | |
<!--[if lt IE 7]> <html class="no-js ie lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js ie lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js ie lt-ie9" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> |
desc "Start Reverse SSH Tunnel" | |
task :start do | |
ssh_username = "rails" | |
ssh_host = "managedmachine.com" | |
ssh_port = 22 | |
tunnel_listener_port = 9999 | |
local_listner_port = 8000 |
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "0.0.1", | |
"title": "MAYDAY" | |
}, | |
"paths": { | |
"/stats": { | |
"get": { | |
"description": "returns list of global stats\n", |
[{ | |
"map_key": "SD-JUNIOR", | |
"coordinates": [12, 12], | |
"legislator": { | |
"name": "Mike Rounds", | |
"title": "Senator", | |
"party": "R", | |
"support_max": "cosponsored", | |
"targeted": false, | |
"image_url": "https://s3.amazonaws.com/audio.mayday.us/congress-photos/99x120/R000605.jpg", |
{ | |
"reforms": [{ | |
"active": true, | |
"slug": "government-by-the-people-act", | |
"title": "Government By the People Act", | |
"reformType": "legislative", | |
"url": "http://ofby.us", | |
"parties": ["D"], | |
"id": 0, | |
"descriptionShort": "The Government by the People Act is a proposed bill to reform the campaign finance system, introduced into the House by 2014 by John Sarbanes (D-MD). A companion bill, the Fair Elections Now Act, was also introduced into the Senate.\n\nUnder the proposed bill, political contributions of up to $150 would be matched by a factor of six times more than the original donation as long as candidates meet certain requirements. They must not use their own money, not accept donations over $1000, have already received at least $50,000 from 1000 in-state donors, and decline most political action committee money.\n", |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#### README ###### | |
# | |
#### Overview | |
# This script prepares FEC data for use in a 3rd party search service.Info | |
# on search service can be found here: | |
# https://developer.ibm.com/clouddataservices/2016/01/21/introducing-simple-faceted-search-service/ | |
# | |
# This was script was created pretty quickly, but should mostly work on any | |
# generic *nix box with the dependencies listed below. | |
# |