Skip to content

Instantly share code, notes, and snippets.

View chadothompson's full-sized avatar
🚜
Tinkering. Probably should be sleeping.

Chad Thompson chadothompson

🚜
Tinkering. Probably should be sleeping.
View GitHub Profile
@chadothompson
chadothompson / Dockerfile
Created February 21, 2016 02:44
Building a PHP 7 Docker Container With Memcachd Support
FROM php:7.0-fpm
RUN apt-get update && \
apt-get install -y git \
zlib1g-dev \
libmemcached-dev
RUN git clone https://github.com/php-memcached-dev/php-memcached /usr/src/php/ext/memcached && \
cd /usr/src/php/ext/memcached && git checkout -b php7 origin/php7 && \
docker-php-ext-configure memcached && \
@chadothompson
chadothompson / solr5.pp
Created February 16, 2016 21:06
The logrotate rule
# DOCUMENTATION: https://forge.puppetlabs.com/rodjek/logrotate
# FILE: -rw-r--r-- 1 dice dice 3.6G Jan  8 10:03 solr-8983-console.log
logrotate::rule { 'solrlog':
ensure => present,
path => '/opt/solr/latest/server/logs/solr-8983-console.log',
rotate => '4',
rotate_every => 'week',
#size => "4G",
#postrotate => '',
@chadothompson
chadothompson / gist:cec7efe19dab4a24d6da
Created February 6, 2016 22:56
Docker Local Volume Definition
volumes:
wpsite:
driver: local
puppetClient = rpcclient('puppet', :options => options)
puppetClient.discover(:nodes => [solrNode])
puts puppetClient.runonce(:noop => true)
▶ ssh orientdb01
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Thu Jul 10 15:14:49 UTC 2014
System load: 0.0 Processes: 76
Usage of /: 15.2% of 9.72GB Users logged in: 1
Memory usage: 3% IP address for eth0: 10.0.10.120
@chadothompson
chadothompson / gist:9836075
Created March 28, 2014 15:55
TJF Commit History in TJF0007
commit 5ca6cc5b36210db1c24fb355eb1a32ef567c980a
Author: WEB-LINK <mark@getmywebsite.net>
Date: Fri Mar 28 10:47:51 2014 -0400
Update genesis_tweaks.php
commit 369ffa6688d1c361959e5de1a199fb4c341d4546
Author: WEB-LINK <mark@getmywebsite.net>
Date: Thu Mar 27 17:46:21 2014 -0400
@chadothompson
chadothompson / gist:9836045
Created March 28, 2014 15:53
Genesis Tweaks update
commit 5ca6cc5b36210db1c24fb355eb1a32ef567c980a
Author: WEB-LINK <mark@getmywebsite.net>
Date: Fri Mar 28 10:47:51 2014 -0400
Update genesis_tweaks.php
diff --git a/wp-content/themes/upwardly-mobile/lib/inc/genesis_tweaks.php b/wp-content/themes/upwardly-mobile/lib/inc/genesis_tweaks.php
index 46ee39e..1cece55 100644
--- a/wp-content/themes/upwardly-mobile/lib/inc/genesis_tweaks.php
+++ b/wp-content/themes/upwardly-mobile/lib/inc/genesis_tweaks.php
@chadothompson
chadothompson / db.php
Created February 22, 2014 17:58
Making an Oracle RAC connection with PHP
<?php
## USERNAME / PASSWORD FOR ORACLE DATABASE
$USERID = 'USER';
$PASSWORD = 'PASSWORD';
## RAC CONNECTION STRING
$RAC_CONN_STR = "(DESCRIPTION =
@chadothompson
chadothompson / refrigerator.pp
Last active August 29, 2015 13:56
Sophomoric Puppet Humor
service{"refrigerator":
ensure => running,
}
@chadothompson
chadothompson / Vagrantfile
Created November 6, 2013 17:10
Multi-machine vagrant example
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$tomcat = <<SCRIPT
echo "172.16.237.150 puppet.itjb.vm puppet" >> /etc/hosts
rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-7.noarch.rpm
puppet agent -t