Skip to content

Instantly share code, notes, and snippets.

@forlogos
forlogos / varnish default.vcl
Created November 3, 2014 21:34
Latest version of default.vcl for varnish that am using.
# Default backend definition. Set this to point to your content server.
backend default {
.host = "127.0.0.1";
.port = "8080";
.connect_timeout = 60s;
.first_byte_timeout = 60s;
.between_bytes_timeout = 60s;
.max_connections = 800;
}
acl purge {
<?php
//start post meta box
$key = "Announcements";
$meta_boxes = array(
"expimo" => array(
"name" => "expimo",
"title" => "Expiration Month",
"description" => "Select a date in the future for this post to expire. Default date is one month into the future",
"option" => array('01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12')),
@forlogos
forlogos / open all links in a browser
Created June 4, 2015 14:14
Open all links in an HTML doc thru a browser
@forlogos
forlogos / one-line-html-p.sublime-macro
Created April 5, 2016 22:21
Sublime text macro to take a paragraph, wrap it in <p> tags, and bring it up to stay on the previous line. Must be executed per paragraph. Best when it's binded to a keyboard shortcut
[
{
"args":
{
"by": "lines",
"forward": false
},
"command": "move"
},
{