32 bits version
$ wget https://get.popcorntime.sh/build/Popcorn-Time-0.3.10-Linux-32.tar.xz -O popcorntime.tar.xz64 bits version
| CREATE SEQUENCE country_seq; | |
| CREATE TABLE IF NOT EXISTS country ( | |
| id int NOT NULL DEFAULT NEXTVAL ('country_seq'), | |
| iso char(2) NOT NULL, | |
| name varchar(80) NOT NULL, | |
| nicename varchar(80) NOT NULL, | |
| iso3 char(3) DEFAULT NULL, | |
| numcode smallint DEFAULT NULL, | |
| phonecode int NOT NULL, |
| [general] | |
| version = 4 | |
| name = Anet A6_settings | |
| definition = custom | |
| [metadata] | |
| setting_version = 5 | |
| type = definition_changes | |
| [values] |
| # .ebextensions/01-ebs.config | |
| commands: | |
| 01clear-if-unmounted: | |
| command: if ! mount | grep /media/ebs_volume > /dev/nul; then rm -rf /media/ebs_volume; fi | |
| 02attach-volume: | |
| command: aws ec2 attach-volume --region eu-central-1 --volume-id vol-ddb08e34 --instance-id $(curl -s http://169.254.169.254/latest/meta-data/instance-id) --device /dev/sdh | |
| ignoreErrors: true | |
| 03wait: | |
| command: sleep 10 | |
| 04trymount: |
| 'use strict'; | |
| // simple express server | |
| var express = require('express'); | |
| var app = express(); | |
| var router = express.Router(); | |
| app.use(express.static('public')); | |
| app.get('/', function(req, res) { | |
| res.sendfile('./public/index.html'); |
| #!/bin/bash | |
| # | |
| # Bash script to setup headless Selenium (uses Xvfb and Chrome) | |
| # (Tested on Ubuntu 12.04) | |
| # Add Google Chrome's repo to sources.list | |
| echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list | |
| # Install Google's public key used for signing packages (e.g. Chrome) | |
| # (Source: http://www.google.com/linuxrepositories/) |
| # Modify /etc/yum.repos.d/epel.repo. Under the section marked [epel], change enabled=0 to enabled=1. | |
| sudo yum install erlang --enablerepo=epel | |
| wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.1/rabbitmq-server-3.1.1-1.noarch.rpm | |
| sudo rpm -Uvh rabbitmq-server-3.1.1-1.noarch.rpm | |
| # Enable managament plugin | |
| sudo rabbitmq-plugins enable rabbitmq_management |
| #!/usr/bin/php | |
| <?php | |
| /* | |
| * Convert JSON file to CSV and output it. | |
| * | |
| * JSON should be an array of objects, dictionaries with simple data structure | |
| * and the same keys in each object. | |
| * The order of keys it took from the first element. | |
| * | |
| * Example: |
| /** | |
| * Author: Richard Willis - badsyntax.co | |
| * Example here: http://demos.badsyntax.co/places-search-bootstrap/example.html | |
| * | |
| * Please note: This is not a reliable method of geocoding the address. Using the | |
| * PlacesService is a much better approach. View the example above for an example | |
| * of using the PlacesService to geocode the address. | |
| */ | |
| var service = new google.maps.places.AutocompleteService(); |
| #!/usr/bin/env python | |
| # http://www.rabbitmq.com/tutorials/tutorial-two-python.html | |
| import pika | |
| import sys | |
| connection = pika.BlockingConnection(pika.ConnectionParameters( | |
| host='localhost')) | |
| channel = connection.channel() | |
| message = ' '.join(sys.argv[1:]) or "Hello World!" |