Skip to content

Instantly share code, notes, and snippets.

@mikeyhill
mikeyhill / php.ini
Created August 27, 2011 04:02
php.ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP's behavior. In order for PHP to
; read it, it must be named 'php.ini'. PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory. The
@mikeyhill
mikeyhill / sql query
Created August 27, 2011 20:41
slow query
SELECT p.name as procedure_name, addr.zip as zip,
s.procedure_id as proc, s.id
FROM slots AS s, procedures AS p, organizations AS o, addresses_organizations as au, addresses as addr
WHERE s.provider_id = o.id
AND s.procedure_id = p.id
AND au.organization_id = o.id
AND addr.id = au.address_id
AND addr.zip LIKE '".$zipcode."%'
ORDER BY random()
LIMIT 5
1 x ASRock Z68 PROFESSIONAL GEN3 LGA 1155 Intel Z68 HDMI SATA 6Gb/s USB 3.0 ATX Intel Motherboard
1 x Crucial M4 CT128M4SSD2 2.5" 128GB SATA III MLC Internal Solid State Drive (SSD)
1 x Intel Core i7-2600K Sandy Bridge 3.4GHz (3.8GHz Turbo Boost) LGA 1155 95W Quad-Core Desktop Processor BX80623I72600K
1 x G.SKILL Ripjaws Series 16GB (4 x 4GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) Desktop Memory Model F3-12800CL9Q-16GBRL
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
@mikeyhill
mikeyhill / gist:2d32dcd51097b89467e2
Created April 12, 2015 09:08
Net::HTTPServerException: 404 "Not Found"
Generated at 2015-04-12 04:00:08 -0500
Net::HTTPServerException: machine[dev-webnode] ((chef-apply cookbook)::(chef-apply recipe) line 31) had an error: Net::HTTPServerException: chef_node[dev-webnode] (basic_chef_client::block line 57) had an error: Net::HTTPServerException: 404 "Not Found"
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http/response.rb:119:in `error!'
/Library/Ruby/Gems/2.0.0/gems/chef-12.2.1/lib/chef/http.rb:144:in `request'
/Library/Ruby/Gems/2.0.0/gems/chef-12.2.1/lib/chef/http.rb:125:in `post'
/Library/Ruby/Gems/2.0.0/gems/cheffish-1.1.2/lib/chef/provider/chef_node.rb:24:in `block (2 levels) in <class:ChefNode>'
/Library/Ruby/Gems/2.0.0/gems/chef-12.2.1/lib/chef/mixin/why_run.rb:52:in `call'
/Library/Ruby/Gems/2.0.0/gems/chef-12.2.1/lib/chef/mixin/why_run.rb:52:in `add_action'
/Library/Ruby/Gems/2.0.0/gems/chef-12.2.1/lib/chef/provider.rb:180:in `converge_by'
/Library/Ruby/Gems/2.0.0/gems/cheffish-1.1.2/lib/chef/provider/chef_node.rb:23:in `block in <class
@mikeyhill
mikeyhill / fabfile.py
Last active August 29, 2015 14:21 — forked from valyagolev/fabfile.py
# http://unfoldthat.com/2012/06/02/quick-deploy-chef-solo-fabric.html
from fabric.api import settings, run, sudo, reboot, put, cd, env
AWS_ACCESS_KEY = '...'
AWS_SECRET_KEY = '...'
AWS_KEYPAIR_NAME = '...'
AWS_SECURITY_GROUPS = ['default']
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
@mikeyhill
mikeyhill / gist:eadb407027b3e2bd5833
Created June 25, 2015 22:22
Terraform Debug Log #2495
This file has been truncated, but you can view the full file.
2015/06/25 17:18:31 [INFO] Terraform version: 0.6.0 dev 73f9d2b5e54aabf394ff25864731a0fe852ffc72
2015/06/25 17:18:31 Detected home directory from env var: /Users/mikey
2015/06/25 17:18:31 [DEBUG] Discovered plugin: atlas = /Users/mikey/Projects/buyerquest/itops/go/bin/terraform-provider-atlas
2015/06/25 17:18:31 [DEBUG] Discovered plugin: aws = /Users/mikey/Projects/buyerquest/itops/go/bin/terraform-provider-aws
2015/06/25 17:18:31 [DEBUG] Discovered plugin: azure = /Users/mikey/Projects/buyerquest/itops/go/bin/terraform-provider-azure
2015/06/25 17:18:31 [DEBUG] Discovered plugin: cloudflare = /Users/mikey/Projects/buyerquest/itops/go/bin/terraform-provider-cloudflare
2015/06/25 17:18:31 [DEBUG] Discovered plugin: cloudstack = /Users/mikey/Projects/buyerquest/itops/go/bin/terraform-provider-cloudstack
2015/06/25 17:18:31 [DEBUG] Discovered plugin: consul = /Users/mikey/Projects/buyerquest/itops/go/bin/terraform-provider-consul
Refreshing Terraform state prior to plan...
module.bq-vpn.aws_eip.vpn-1-eip: Refreshing state... (ID: eipalloc-9c64cff9)
module.bq-vpn.aws_iam_role_policy.vpn-server-role-policy: Refreshing state... (ID: preprod-vpn-server-role:preprod-vpn-server-role-policy)
module.bq-jenkins.aws_iam_role.jenkins-server-role: Refreshing state... (ID: preprod-jenkins-server-role)
module.bq-elasticache.aws_route53_record.ec-memcached-dns.0: Refreshing state... (ID: ZX6WEG2UUXNTU_memcached_CNAME)
module.bq-app.aws_iam_role.app-server-role: Refreshing state... (ID: dev-app-server-role)
module.bq-elasticache.aws_route53_record.ec-memcached-dns.1: Refreshing state... (ID: ZX6WEG2UUXNTU_memcached_CNAME)
module.bq-ops-vpc.aws_vpc.ops-vpc: Refreshing state... (ID: vpc-4a0e9a2f)
module.bq-utility.aws_iam_role.utility-role: Refreshing state... (ID: preprod-utility-role)
@mikeyhill
mikeyhill / osx-for-hackers.sh
Last active August 29, 2015 14:25 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@mikeyhill
mikeyhill / cent6hvm.ks
Created August 15, 2015 02:01
cent6.6.hvm.ks
skipx
text
install
url --url=http://mirror.centos.org/centos/6/os/x86_64
# Firewall configuration
firewall --enabled --service=ssh
repo --name="repo0" --baseurl=http://mirror.centos.org/centos/6/os/x86_64
repo --name="repo1" --baseurl=http://mirror.centos.org/centos/6/updates/x86_64
repo --name="repo2" --baseurl=http://mirror.oss.ou.edu/epel/6/x86_64/