Skip to content

Instantly share code, notes, and snippets.

View dragonmantank's full-sized avatar

Chris Tankersley dragonmantank

View GitHub Profile
person_name=Ben Ramsey
@dragonmantank
dragonmantank / gist:8898fa1ae84ae344709f1954c609c44b
Last active August 6, 2018 13:47
Soveriegn postfix change
// roles/mailserver/templates/etc_postfix_pgsql-email2email.cf.j2
user = {{ mail_db_username }}
password = {{ mail_db_password }}
hosts = 127.0.0.1
dbname = {{ mail_db_database }}
query = SELECT email FROM virtual_users WHERE email='%s'
// Changed this line in roles/mailserver/templates/etc_postfix_main.cf.j2
virtual_mailbox_maps = pgsql:/etc/postfix/pgsql-virtual-mailbox-maps.cf,pgsql:/etc/postfix/pgsql-email2email.cf

Keybase proof

I hereby claim:

  • I am dragonmantank on github.
  • I am ctankersley (https://keybase.io/ctankersley) on keybase.
  • I have a public key whose fingerprint is 0FF8 1FD0 5ACE B73D 21AD 13DB F2FB E902 6BFE EABB

To claim this, I am signing this object:

Verifying that +dragonmantank is my blockchain ID. https://onename.com/dragonmantank
@dragonmantank
dragonmantank / post-checkout
Created November 9, 2015 21:10 — forked from rdohms/post-checkout
Auto-run Composer on branch checkout
# .git/hooks/post-checkout
#!/bin/bash
#
source ~/.profile
# Allows us to read user input below, assigns stdin to keyboard
exec < /dev/tty
#!/bin/bash
VERSION=0.5
usage() {
cat <<EOF
Domain Administration Script v${VERSION}
=================================
Allows various functions for administering domains on this machine.
@dragonmantank
dragonmantank / gist:b342a690bf3ab4fef1c2
Last active August 29, 2015 14:15
Setting up Windows for git and PHP
* Download http://windows.php.net/downloads/releases/php-5.6.5-nts-Win32-VC11-x86.zip and extract it to C:\php56
* Copy C:\php56\php.ini-development to C:\php56\php.ini
* Edit C:\php56\php.ini and turn on any extensions you need
* Download git from http://git-scm.com/downloads and install it. When asked about adjusting your PATH settings, select the 3rd option ('Use Git and optional tools from the Windows Command Prompt')
* Open up powershell and run 'ssh-keygen.exe -t rsa' to generate an SSH key for Github
* This should be availabe in C:\Users\[username]\.ssh\id_rsa.pub

New Dynamx Deployment Procedure

This document described the deployment procedure for New Dynamx.

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Keybase proof

I hereby claim:

  • I am dragonmantank on github.
  • I am ctankersley (https://keybase.io/ctankersley) on keybase.
  • I have a public key whose fingerprint is E6C3 AAA1 2B6B 10E4 A610 D90A F609 384F 830C 38BC

To claim this, I am signing this object:

@dragonmantank
dragonmantank / gist:6723460
Last active January 21, 2016 17:39
Reset Apache httpd to run as the vagrant user
exec { "change_httpd_user":
command => "sed -i 's/www-data/vagrant/g' /etc/apache2/envvars",
onlyif => "/bin/grep -q 'www-data' '/etc/apache2/envvars'",
notify => Service['apache2'],
require => Package['apache2'],
}
file { "/var/lock/apache2":
ensure => "directory",
owner => "vagrant",