Skip to content

Instantly share code, notes, and snippets.

@agowa
agowa / post-commit
Last active January 27, 2018 18:52 — forked from leucos/post-commit
Transparent encryption/decryption with pre-commit and post-commit hooks
#!/bin/sh
#
# Post-commit hook that decrypts files containing '.vault'
#
# File should be .git/hooks/post-commit and executable
CRYPT_TAG='^.*\.vault(([\.]?)|(\..*))$'
EXIT_STATUS=0
wipe="\033[1m\033[0m"
@agowa
agowa / mariadb_dev.yml
Last active October 13, 2017 00:57 — forked from ostcar/inyoka_dev.yml
ansible config for mysql and redis
---
- hosts: mariadb_dev
vars:
mysql_root_pw: ''
tasks:
- name: enable network
service:
name: '{{ item }}'