Skip to content

Instantly share code, notes, and snippets.

View BrianGilbert's full-sized avatar

Brian Gilbert BrianGilbert

View GitHub Profile
@BrianGilbert
BrianGilbert / gist:1679625
Created January 25, 2012 23:22
php issue with install
>>>> Create symbolic link for it in /usr/local/etc/
[localhost] sudo: ln -s /usr/local/Cellar/php/5.3.9/etc/php-fpm.conf /usr/local/etc/php-fpm.conf
>>>> Edit the conf file
$ nano /usr/local/etc/php-fpm.conf
Add the following line below ;pid = run/php-fpm.pid
pid = /usr/local/var/run/php-fpm.pid
Update the user and group section as follows
user = _www
group = _www
Remove the ; from the start of the following lines then save using Ctrl+X then Y
@BrianGilbert
BrianGilbert / sdo.make
Created March 23, 2012 17:52
supportDO make
core = 7.x
api = 2
; Drupal core
projects[drupal][type] = 'core'
projects[drupal][version] = '7.12'
; Install profile
projects[sdo][type] = 'profile'
projects[sdo][download][type] = 'git'
@BrianGilbert
BrianGilbert / redis-gitlab
Created August 13, 2012 23:06
Redis Gitlab initd for Aegir box
### BEGIN INIT INFO
# Provides: redis-server-gitlab
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db
# Description: redis-server - Persistent key-value db
@BrianGilbert
BrianGilbert / gitlab.domain.com
Created August 13, 2012 23:08
Gitlab vhost for Aegir box
upstream gitlab {
server unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket;
}
server {
listen *:80;
server_name gitlab.domain.com;
root /home/gitlab/gitlab/public;
# individual nginx logs for this gitlab vhost
@BrianGilbert
BrianGilbert / gitlab
Created August 13, 2012 23:09
Gitlab initd script for Aegir box
#! /bin/bash
### BEGIN INIT INFO
# Provides: gitlab
# Required-Start: $local_fs $remote_fs $network $syslog redis-server
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: GitLab git repository management
# Description: GitLab git repository management
### END INIT INFO
@BrianGilbert
BrianGilbert / nginx.conf
Last active December 19, 2015 05:59
nginx.conf for OS X Aegir setup
# Nginx web server main configuration file /usr/local/etc/nginx/nginx.conf
#
user [username] staff;
worker_processes 4;
pid /usr/local/var/run/nginx.pid;
error_log /var/log/aegir/nginx-error.log info; #debug;
events {
multi_accept on;
}
@BrianGilbert
BrianGilbert / nginx.rb
Last active December 19, 2015 05:59
nginx formula for Aegir setup
require 'formula'
class Nginx < Formula
homepage 'http://nginx.org/'
url 'http://nginx.org/download/nginx-1.4.2.tar.gz'
sha1 '8f006dc773840b6624a137a584ff8850d5155e3f'
devel do
url 'http://nginx.org/download/nginx-1.5.5.tar.gz'
sha1 '8526d41cdabcd40d4ffa5ae12c8a2cc325255431'
@BrianGilbert
BrianGilbert / my-drupal.cnf
Created August 11, 2013 23:18
Mariadb config for OSXAegirInstaller
# Example MariaDB config file for very large systems.
#
# This is for a large system with memory of 1G-2G where the system runs mainly
# MariaDB.
#
# MariaDB programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, do:
# 'my_print_defaults --help' and see what is printed under
@BrianGilbert
BrianGilbert / com.apache.solr.plist
Last active December 20, 2015 22:49
Solr plist for homebrew solr 4.4.0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC
"-//Apple Computer//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.apache.solr</string>
<key>ProgramArguments</key>
<array>
@BrianGilbert
BrianGilbert / nginx_wp_include.conf
Last active April 25, 2022 11:55 — forked from omega8cc/gist:1677835
Create it as: /var/aegir/config/includes/nginx_wp_include.conf and add it in your custom vhost eg. https://gist.github.com/BrianGilbert/6227181
#######################################################
### nginx.conf site wp vhost include start
#######################################################
###
### deny crawlers without 403 response
###
if ($http_user_agent ~* (HTTrack|HTMLParser|libwww|wget) ) {
return 444;
}