- Backup current configuration
mkdir -p /root/varnish && cp -rv /etc/varnish /root/varnish && cp /etc/default/varnish /root/varnish/varnish-default
- Install varnish key and repo from packagecloud:
;; 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) |
# zfs upgrade | |
This system is currently running ZFS filesystem version 5. | |
All filesystems are formatted with the current version. | |
# zpool upgrade -v | |
This system supports ZFS pool feature flags. | |
The following features are supported: |
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 |
SELECT a.datname, | |
c.relname, | |
l.transactionid, | |
l.mode, | |
l.GRANTED, | |
a.usename, | |
a.query, | |
a.query_start, | |
age(now(), a.query_start) AS "age", | |
a.pid |
#!/usr/bin/env bash | |
__powerline() { | |
# Unicode symbols | |
# readonly PS_SYMBOL_DARWIN='' | |
readonly PS_SYMBOL_LINUX='$' | |
readonly PS_SYMBOL_OTHER='%' | |
readonly GIT_BRANCH_SYMBOL='⑂ ' |
#!/bin/sh | |
set -eu | |
SIZE=3299328 # 1.5GiB i.e. 2048 = 1MB | |
CACHE_PREFIX="${HOME}/Library/Application Support/Google/Chrome/" | |
SYNC_PREFIX=${HOME}/RAM/Chrome/ | |
rm -rf "${CACHE_PREFIX}" | |
mkdir -p "${CACHE_PREFIX}" | |
mkdir -p "${SYNC_PREFIX}" |
For Arch Linux Wiki: https://wiki.archlinux.org/index.php/ThinkPad_X230
Upate Aug 30, 2014 The machine died. Hopefully it enjoyed it short life!
Update: Aug 02, 2014 One early morning, the machine died after waking up from to cold unsuspend. It didn't start after then. Even couldn't get into POST. Power LED only lit for a second or two. Hard reset of 30 seconds also failed. Before declaring motherboard totally toasted, gave it a last try as suggested by our good ol' friend Pablo Stafforini. Took it a apart, unplugged battery and CMOS battery and let it sit for nearly 11 hours. It WORKED like a preposterous CPR supposedly to a machine! What a joke ;)