Skip to content

Instantly share code, notes, and snippets.

View mattleff's full-sized avatar
🌏

Matthew Leffler mattleff

🌏
  • Eureka, MT
View GitHub Profile
/usr/local/bin/wkhtmltoimage -H
Name:
wkhtmltoimage 0.12.1 (with patched qt)
Synopsis:
wkhtmltoimage [OPTIONS]... <input file> <output file>
Description:
Converts an HTML page into an image,
@mattleff
mattleff / Vhost
Created September 29, 2014 19:00
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
@mattleff
mattleff / base_layout.twig
Last active August 29, 2015 14:02
The pseudo-base_layout for SU themes
<!DOCTYPE HTML>
<html lang="en-US" class="{{ namespace_classes }}">
<head>{% block head %}
{% if title %}<title>{{ title }}</title>{% endif %}
{# A bunch of system head tags... #}
{% block theme_head endblock %}
{% endblock head %}</head>
{% block theme_body endblock %}
</html>
[PHP]
engine = On
short_open_tag = On
asp_tags = Off
precision = 12
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
zlib.output_handler = On
zlib.output_compression_level = -1
@mattleff
mattleff / gist:3933777
Created October 22, 2012 20:07
AWS down
<!DOCTYPE html>
<html>
<head>
<title>503 Service Unavailable</title>
<link rel="shortcut icon" href="http://simpleupdates.s3.amazonaws.com/favicon-su.ico" type="image/x-icon">
<meta name="robots" content="noindex">
<style type="text/css">
body {
@mattleff
mattleff / 503.html
Created October 2, 2012 20:56
503.html
<!DOCTYPE html>
<html>
<head>
<title>503 Service Unavailable</title>
<link rel="shortcut icon" href="http://simpleupdates.s3.amazonaws.com/favicon-su.ico" type="image/x-icon">
<meta name="robots" content="noindex">
<style type="text/css">
body {
width: 100%;
@mattleff
mattleff / 502.html
Created October 2, 2012 20:51
502.html
<!DOCTYPE html>
<html>
<head>
<title>502 Bad Gateway</title>
<meta http-equiv="refresh" content="30;url=/" />
<link rel="shortcut icon" href="http://simpleupdates.s3.amazonaws.com/favicon-su.ico" type="image/x-icon">
<meta name="robots" content="noindex">
<style type="text/css">
body {
@mattleff
mattleff / 504.html
Created October 2, 2012 20:50
504.html
<!DOCTYPE html>
<html>
<head>
<title>504 Network Issue</title>
<meta http-equiv="refresh" content="30;url=/" />
<link rel="shortcut icon" href="http://simpleupdates.s3.amazonaws.com/favicon-su.ico" type="image/x-icon">
<meta name="robots" content="noindex">
<style type="text/css">
body {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en_US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">var less = { "env": "development" };</script> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta http-equiv="x-ua-compatible" content="IE=8"/>
<meta name="Description" content="asdfasdf"/>
<base href="http://su.localhost/"/> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/cupertino/jquery-ui.css" type="text/css" media="print, projection, screen"><link rel="stylesheet" href="css/jquery-ui-1.7.2.patch.css" type="text/css" media="print, projection, screen"><link rel="stylesheet" href="css/su_admin.css?version=2011-08-04" type="text/css"><link rel="stylesheet" type="text/css" href="globalcss.php"><script type="text/javascript">
var STATIC_HOST = "";
var STATIC_HOST_IMAGES = "";