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
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2013 Yannick Albert <http://yckart.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
git log '@{1 weeks ago}..HEAD' --shortstat --pretty=format:%an | awk '/.+/ { | |
if($2 != "file" && $3 != "changed,") { | |
curr = $1 | |
} else { | |
files[curr]+=$1 | |
inserts[curr]+=$4 | |
deletes[curr]+=$6 | |
} | |
} | |
END { |
/** | |
* Created by solomon on 15/1/14. | |
*/ | |
+function () { | |
angular.module('ui.router') | |
.provider('$otherwise', function ($urlRouterProvider) { | |
var url = ''; | |
this.path = function (url) { | |
$urlRouterProvider.otherwise(function ($injector, $location) { | |
$('body>[ui-view]').html(''); |
#!/bin/bash | |
mount_disk() | |
{ | |
sudo umount $disk | |
mkdir ~/Desktop/$diskname | |
sudo mount_ntfs -o rw,auto,nodev,nobrowse,noowners,noatime $disk ~/Desktop/$diskname | |
echo "Mount $disk to ~/Desktop/$diskname" | |
open ~/Desktop/$diskname | |
} |
# | |
# Original version by Grant Parnell is offline (http://digitaldj.net/2011/07/21/trim-enabler-for-lion/) | |
# Update July 2014: no longer offline, see https://digitaldj.net/blog/2011/11/17/trim-enabler-for-os-x-lion-mountain-lion-mavericks/ | |
# | |
# Looks for "Apple" string in HD kext, changes it to a wildcard match for anything | |
# | |
# Alternative to http://www.groths.org/trim-enabler-3-0-released/ | |
# Method behind this madness described: http://forums.macrumors.com/showthread.php?t=1409151&page=4 | |
# See discussion in comments here: https://www.macupdate.com/app/mac/39654/lion-tweaks | |
# And here: http://forums.macrumors.com/showthread.php?t=1410459 |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
require 'sinatra' # gem install sinatra --no-rdoc --no-ri | |
set :port, 3000 | |
set :environment, :production | |
html = <<-EOT | |
<html><head><style> | |
#text{width:100%; font-size: 15px; padding: 5px; display: block;} | |
</style></head><body> | |
<input id="text" placeholder="Write then press Enter."/> | |
<div id="chat"></div> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf8"> | |
<title>Float Label Pattern</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
<style type="text/css" media="screen"> | |
.row { | |
/*position: relative;*/ | |
padding-top: 24px; |
require 'RMagick' | |
$scale_size = 256.0 | |
$img_fn1 = ARGV[0] | |
$img_fn2 = ARGV[1] | |
$scale_size = ARGV[2].to_f if ARGV[2] | |
def calculate_threshold(img_fn) | |
dir_name = File.dirname(img_fn) |