Skip to content

Instantly share code, notes, and snippets.

@akuznecov
akuznecov / manual-shellshock-fix.yml
Created September 25, 2014 19:25
Simple Ansible playbook to install patched Bash packages (from distro repositories)
---
- name: 'Fix(?) ShellShock'
hosts: "{{ target }}"
user: "{{ user }}"
sudo: yes
tasks:
- apt: name=bash
state=latest
update_cache=yes
@akuznecov
akuznecov / base-playbook.yml.tpl
Created April 18, 2014 15:26
Ansible :: Local project playbook and folder creation
---
- name: 'Apply recipes to {{ project | upper }}'
hosts: {{ project }}
user: adyax
sudo: yes
vars:
project_user: '{{ project }}'
project_name: '{{ project }}'
@akuznecov
akuznecov / memcached
Created July 3, 2013 13:07
Multiple memcached instances with single init-script on Debian-like systems
#! /bin/sh
### BEGIN INIT INFO
# Provides: memcached
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: memcached - Memory caching daemon
@akuznecov
akuznecov / varnish.php
Created June 25, 2013 05:40
GeSHi syntax file for Varnish configuration language (VCL)
<?php
/*************************************************************************************
* varnish.php
* ------
* Author: Alexander Kuznetcov (alexander@kuznetcov.me)
* Copyright: (c) Alexander Kuznetcov (http://blog.tenya.me)
* Release Version: 1.0.0.0
* Date Started: 2013/06/25
*
* Varnish 3.x language file for GeSHi.
$ drupal7 phpci -vv print --report extension --recursive .
PHP_CompatInfo 2.12.1 by Laurent Laville
....................................C..C..C................. 60 / 269 ( 22%)
........C..........C....C...............C................... 120 / 269 ( 44%)
........C...C..........C....C.............C.........C...C.C. 180 / 269 ( 66%)
..........................C..........C..CC.C....C...C.CCC..C 240 / 269 ( 89%)
C.CCCC.C..C..C.C.C..CC.CC.CC.
BASE: /tmp/drupal7