Skip to content

Instantly share code, notes, and snippets.

View tuomastielinen's full-sized avatar

Tuomas Tielinen tuomastielinen

  • Helsinki, FInland
View GitHub Profile
@tuomastielinen
tuomastielinen / .git_hooks_pre-commit
Last active October 14, 2020 09:21 — forked from cniesen/.git_hooks_pre-commit
ansible-vault pre-commit hook
#!/usr/bin/env bash
###
# Pre-commit hook that verifies if all files containing 'vault' in the name # are encrypted.
# If not, commit will fail with an error message
#
# Original author: @ralovely
# https://www.reinteractive.net/posts/167-ansible-real-life-good-practices
#
# File should be .git/hooks/pre-commit and executable
###
@tuomastielinen
tuomastielinen / Vagrantfile
Last active August 29, 2015 14:07
Vagrantfile for Ansible testing with three machines
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2
config.vm.provider "virtualbox" do |vb|
@tuomastielinen
tuomastielinen / devbox
Last active August 29, 2015 14:06
putty config
CygtermCommand\-\
Cygterm64\0\
CygtermAutoPath\1\
WindowClass\\
SerialFlowControl\1\
SerialParity\0\
SerialStopHalfbits\2\
SerialDataBits\8\
SerialSpeed\9600\
SerialLine\COM1\