Skip to content

Instantly share code, notes, and snippets.

View brandontamm's full-sized avatar
💭
Accepting Remote Opportunities

Brandon Tamm brandontamm

💭
Accepting Remote Opportunities
View GitHub Profile
@brandontamm
brandontamm / nginx.conf
Created April 28, 2014 21:28
Basic NGINX Configuration
worker_processes 1;
error_log /var/log/nginx/error.log debug;
events {
worker_connections 1024;
}
http {
include mime.types;
server {
listen 443;
server_name example-ssl.dev;
root /var/www/example.dev;
access_log /var/log/nginx/access_example_SSL.log main;
ssl on;
ssl_certificate ssl/localhost.crt;
ssl_certificate_key ssl/localhost.key;
server {
listen 80;
server_name example.dev;
root /var/www/example.dev/;
access_log /var/log/nginx/access_example.log main;
location / {
include /etc/nginx/conf.d/php-fpm;
}
location ~ \.php$ {
try_files $uri = 404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# Brandon Tamm's Dev Machine Brewfile With Casks
tap josegonzalez/php
tap homebrew/dupes
install openssl
install php54-mcrypt
install josegonzalez/php/composer
install wget
install optipng
install redis
install mysql

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@brandontamm
brandontamm / iterm2-solarized.md
Last active November 18, 2015 18:59 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + oh my zsh + solarized + Andale Mono font (OSX)
@brandontamm
brandontamm / README.md
Created December 9, 2015 22:24 — forked from haggen/README.md
Guide: from development to production using docker.

Guide: from development
to production using docker.

Development

You'll need:

  • docker
  • docker-machine
  • docker-compose
  • git
@brandontamm
brandontamm / customers.sql
Created January 12, 2016 15:32 — forked from leek/_Magento1_DeleteTestData.md
Magento - Delete All Test Data
SET FOREIGN_KEY_CHECKS=0;
-- Customers
TRUNCATE `customer_address_entity`;
TRUNCATE `customer_address_entity_datetime`;
TRUNCATE `customer_address_entity_decimal`;
TRUNCATE `customer_address_entity_int`;
TRUNCATE `customer_address_entity_text`;
TRUNCATE `customer_address_entity_varchar`;
TRUNCATE `customer_entity`;
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE `customer_address_entity`;
TRUNCATE `customer_address_entity_datetime`;
TRUNCATE `customer_address_entity_decimal`;
TRUNCATE `customer_address_entity_int`;
TRUNCATE `customer_address_entity_text`;
TRUNCATE `customer_address_entity_varchar`;
TRUNCATE `customer_entity`;
TRUNCATE `customer_entity_datetime`;