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
| const fs = require('fs'); | |
| function notEmpty(input){ | |
| return !!input.trim(); | |
| }; | |
| function kv(prop){ | |
| var obj = {}; | |
| prop.split(/;/g).filter(notEmpty).forEach(function(item){ | |
| var p = item.split(':'); |
| /** | |
| * Github Widgets | |
| * @author lsong | |
| * @example | |
| * | |
| * <a href="https://github.com/song940/kelp/stargazers"> | |
| * <github repo="song940/kelp" key="stargazers_count" ></github> Stargazers | |
| * </a> | |
| */ | |
| ;(function(elements){ |
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
| #!/bin/bash | |
| echo "This script generates the certificate and private key for the https webadmin" | |
| echo "Note that the generated certificate is self-signed, and therefore not trusted by browsers" | |
| echo "Note that this script requires openssl to be installed and in PATH" | |
| echo "" | |
| echo "When OpenSSL asks you for Common Name, you need to enter the fully qualified domain name of the server, that is, e. g. gallery.xoft.cz" | |
| echo "" | |
| openssl req -x509 -newkey rsa:2048 -keyout httpskey.pem -out httpscert.crt -days 3650 -nodes |
| var 真 = true; | |
| var 假 = !真; | |
| function 如果(condation, then){ | |
| if(condation) then(); | |
| return { | |
| 否则: function(then){ | |
| if(!condation) then(); | |
| } |
| var dgram = require('dgram'); | |
| var port = 1300; | |
| var now = function() { | |
| var date = new Date(); | |
| return new Buffer(date.toUTCString() + "\r\n"); | |
| } | |
| var tcpserver = net.createServer(function(c) { | |
| c.write(now()); | |
| c.end(); | |
| }); |
| 'use strict'; | |
| /** | |
| * [exports Kelp] | |
| * @return {[type]} [description] | |
| */ | |
| function Kelp() { | |
| /** | |
| * [app http server handler] | |
| * @param {[type]} req [request] | |
| * @param {[type]} res [response] |
| 'use strict'; | |
| const connect = require('connect'); | |
| const route = require('connect-routeify'); | |
| const bodyParser = require('body-parser'); | |
| const app = connect(); | |
| app.use(bodyParser.json()); | |
| app.use(bodyParser.urlencoded({ extended: true })); |
| const pathToRegexp = require('path-to-regexp'); | |
| function route(def, callback){ | |
| var keys = []; | |
| var re = pathToRegexp(def, keys); | |
| return function(req, res, next){ | |
| if(re.test(req.url)){ | |
| req.params = {}; | |
| var matchs = re.exec(req.url); | |
| keys.forEach(function(key, i){ |
| #!/bin/bash | |
| # | |
| filename=$(basename $0 ".sh") | |
| mkdir -p $filename | |
| for blob in $(find .git/objects -type f); do | |
| hash=$(echo $blob | cut -c14- | sed 's|/||') | |
| git show $hash | cat > "$filename/$hash" | |
| done |