Installation on Debian 8
This is installation documentation for installing Koel on Debian 8.
Install Dependancies
Most packages can be installed via apt-get.
user@debian:~/$ sudo apt-get install -y apache2 mysql-server php5 php5-mysql g++ git curl
module Main where | |
import Control.Monad.Except | |
(ExceptT | |
, runExceptT | |
, throwError | |
) | |
import Control.Monad.IO.Class ( liftIO ) |
import sys | |
import unittest | |
from docutils.core import publish_doctree | |
import subprocess | |
import opendir_dl | |
class ShellTestCase(unittest.TestCase): | |
def assert_shell_yields(self, command, expected_result): | |
result = subprocess.check_output(command, shell=True)[:-1] | |
if result != expected_result: |
#!/usr/bin/python | |
import urllib2 | |
import json | |
last_timestamp_utc = 0 | |
reddit_api = 'https://www.reddit.com/r/opendirectories/new.json?sort=new' | |
page_request = urllib2.urlopen(reddit_api) | |
page_content = json.loads(page_request.read()) | |
posts = page_content['data']['children'] | |
# API results are in order of newest to oldest, but we want to |
import threading | |
import SocketServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
import httplib2 | |
class QuietSimpleHTTPRequestHandler(SimpleHTTPRequestHandler): | |
"""Quiet http request handler | |
Subclasses SimpleHTTPRequestHandler in order to overwrite the log_message | |
method, letting us reduce output generated by the handler. Only standard | |
messages are overwritten, so errors will still be displayed. |
#!/usr/bin/python | |
# This example implementation is *extremely* similar to what is being asked and | |
# answered on the following stack overflow page: | |
# http://stackoverflow.com/questions/1325673/how-to-add-property-to-a-python-class-dynamically | |
# Simply running this script will return the following output, which follows | |
# a story told through inline comments. | |
# user@debian:~$ ./dynamic_property_test.py |
#!/bin/bash | |
# Author: Brahm Lower | |
# Name: phpVirtualBox Debian 8 Install Script | |
# Source: https://gist.github.com/bplower/b7e193fc3861e964c367/ | |
# Prerequisite Packages: | |
# bash, openssl, cat, grep, echo, wget, apt-key, apt-get, useradd, usermod, passwd, mv, cp, sed, systemctl | |
# Installed Packages: | |
# build-essential, dkms, unzip, apache2, php5, php5-mysql, libapache2-mod-php5, php-soap, virtualbox-5.0 | |
# Description: | |
# This is a script to install VirtualBox and php VirtualBox on a headless Debian 8 machine. |
This is installation documentation for installing Koel on Debian 8.
Most packages can be installed via apt-get.
user@debian:~/$ sudo apt-get install -y apache2 mysql-server php5 php5-mysql g++ git curl
I hereby claim:
To claim this, I am signing this object: