- 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:
| #!/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}" |
| #!/usr/bin/env bash | |
| __powerline() { | |
| # Unicode symbols | |
| # readonly PS_SYMBOL_DARWIN='' | |
| readonly PS_SYMBOL_LINUX='$' | |
| readonly PS_SYMBOL_OTHER='%' | |
| readonly GIT_BRANCH_SYMBOL='⑂ ' |
| 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 |
| 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 |
| <!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; | |
| } |
| package-activated-list is a variable defined in `package.el'. | |
| Its value is | |
| (ac-c-headers ac-emmet bash-completion c-eldoc css-eldoc distinguished-theme emmet-mode exec-path-from-shell flycheck go-autocomplete go-direx direx go-eldoc go-mode go-snippets highlight-indentation jedi epc ctable concurrent minimap neotree pkg-info epl popwin powerline python-environment deferred smartparens smex solarized-theme dash soothe-theme sr-speedbar subatomic-theme subatomic256-theme sublime-themes tern-auto-complete auto-complete popup tern ujelly-theme web-mode yasnippet zenburn-theme) | |
| ;;; package -- default emacs init by Bassu | |
| ;;; Commentary: | |
| ;;; very rough but portaable; may someday be tied into Cask | |
| ;;; Code: | |
| ;-------; | |
| ; REPO ; | |
| ;-------; |
| <?xml version="1.0"?> | |
| <root> | |
| <item> | |
| <name>Atom.app</name> | |
| <appendix>Emacs style binding from PC keyboards by Bassu</appendix> | |
| <appdef> | |
| <appname>ATOM</appname> | |
| <equal>com.github.atom</equal> | |
| </appdef> |
| ## Hacked by Bassu | |
| ## For CentOS 5.x. May have to recompile iptables. | |
| ## Modificatons: | |
| # with_hdr 1 | |
| # kernel-lt is kernel-opt | |
| # removed NoSource: 0 | |
| # Sources configs are new | |
| # srpm with: mock -v --buildsrpm -r epel-5-i386 --target i686 --spec ~/rpmbuild/SPECS/kernel-opt-3.5.spec --sources ~/rpmbuild/SOURCES/ --resultdir ~/kernel-opt | |
| # rpm with: mock -v --rebuild -r epel-5-i386 --target i686 --resultdir ~/kernel-opt ~/kernel-opt/kernel-opt-3.5.4-1.el5.centos.src.rpm | |
| # |