A full-featured markdown parser and compiler, written in javascript. Built for speed.
node v0.4.x
$ node test --bench
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.conf
to /usr/local/etc/nginx/
default.conf
and default-ssl.conf
to /usr/local/etc/nginx/sites-available
homebrew.mxcl.nginx.plist
to /Library/LaunchDaemons/
_.mixin({ | |
chunks: function(arr, size) { | |
var len = arr.length, | |
chunk_len = Math.ceil(len/size), | |
chunks = []; | |
for (var i = 0; i < chunk_len; i++) { | |
chunks.push(arr.slice(i*size, (i+1)*size)); | |
} | |
return chunks; | |
} |
set nocompatible " Disable vi-compatibility | |
set t_Co=256 | |
colorscheme xoria256 | |
set guifont=menlo\ for\ powerline:h16 | |
set guioptions-=T " Removes top toolbar | |
set guioptions-=r " Removes right hand scroll bar | |
set go-=L " Removes left hand scroll bar | |
set linespace=15 |
Install Supervisor with sudo apt-get install supervisor
. Ensure it's started with sudo service supervisor restart
.
In /etc/supervisord/conf.d/
create a .conf
file. In this example, laravel_queue.conf
(contents below). Give it execute permissions: chmod +x laravel_queue.conf
.
This file points at /usr/local/bin/run_queue.sh
, so create that file there. Give this execute permissions, too: chmod +x run_queue.sh
.
Now update Supervisor with: sudo supervisorctl reread
. And start using those changes with: sudo supervisorctl update
.
Spent a couple minutes poking around at kanban-like alternatives/supplements to labeling:
GitHub uses this and Huboard internally for some projects. Supported by Rally, so probably not going away anytime soon.
GitHub uses this and Waffle internally for some projects.
Looks interesting. (Marking issues from the command-line? Sweet!) It's also pricey.
<!-- add Javascript in html head --> | |
<script> | |
var reloading; | |
var refresh_time = 30000; | |
function checkReloading() { | |
if (window.location.hash=="#autoreload") { | |
reloading=setTimeout("window.location.reload();", refresh_time); | |
document.getElementById("reloadCB").checked=true; | |
} |
Can be placed anywhere, try it out on welcome.blade.php
###If you're using team plans
just swap out $sparkPlans = Spark::plans();
with $sparkPlans = Spark::teamPlans();