Skip to content

Instantly share code, notes, and snippets.

@bassu
bassu / varnish-modules.md
Created Jan 21, 2020 — forked from fliphess/varnish-modules.md
Install varnish modules on ubuntu 16.04 xenial
View varnish-modules.md

Install varnish-modules on ubuntu 16.04 xenial

  1. Backup current configuration
mkdir -p /root/varnish && cp -rv /etc/varnish /root/varnish && cp /etc/default/varnish /root/varnish/varnish-default
  1. Install varnish key and repo from packagecloud:
@bassu
bassu / haproxy.cfg
Created Apr 2, 2016 — forked from ryzy/haproxy.cfg
HAProxy - essentials for HTTP/2
View haproxy.cfg
frontend https-in
mode tcp
bind *:443 ssl crt /etc/ssl/dummy.pem alpn h2,http/1.1
use_backend nodes-http2 if { ssl_fc_alpn -i h2 }
default_backend nodes-http
backend nodes-http
server node1 web.server:80 check
backend nodes-http2
View index.html
<!DOCTYPE html>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Lato:400,700,900' rel='stylesheet' type='text/css'>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
html {
background: #fff;
}
View init.el
;; emacs configuration
(push "/usr/local/bin" exec-path)
(add-to-list 'load-path "~/.emacs.d")
(setq make-backup-files nil)
(setq auto-save-default nil)
(setq-default tab-width 2)
(setq-default indent-tabs-mode nil)
(setq inhibit-startup-message t)
View smartos-virtio-windows-xp.sh
#!/usr/bin/env bash
set -e
if [ -z "$iso" ] ; then
printf -- ">>> You must invoke with iso=/path/to/winxp.iso $(basename $0)\n"
exit 1
fi
if [ -z "$url" ] ; then
View zfsonlinux-benchmark
ZFSOnLinux Benchmark On Stock Hardware
======================================
Hardware
--------
- Supermicro X8DTL
- 92GB RAM
- LSI 9211-4i HBA
- WD3000F9YZ 6Gbps 3TB x 4 HDDs