Truly Grilled Cheese Sandwiches (with bacon)

Earlier today I pondered on the name “grilled cheese” wondering why it was called that if no one grilled it.

Despite the internet being at my fingertips I decided that instead of researching the etymology of grilled cheese, actually grilling a cheese sandwhich sounded much more rewarding. Since I needed to make a full meal out of it and we had some broccoli I thought if I added bacon I’d have the rendered grease leftover to cook the broccoli in (or perhaps it was just an excuse to cook more bacon?).

I started with some foil and crinkle cut fries on the top rack since I knew they’d take the longest. Then came the bacon. I actually cooked up some extra to make sure I’d have enough grease for the broccoli and leftovers for my wife when she got home.

While the bacon was cooking I had slices some sourdough bread, buttered what would be the outsides of the sandwhich, and prepared some Colby Jack cheese slices.

Once the bacon was done I set it aside and added in the broccoli, tossing it with a spatula to evenly distribute the grease and start it cooking. I added the bacon to the sandwiches and slid them on to the hot grill.

At first I was too cautious and had the heat too low. Turning it back up helped toast the bread before the cheese could melt off the sides of the sandwich.

You can believe it, it tasted as good as it looks. On my next batch I’ll go a bit heavier on the cheese to help counterbalance the extra crisp of a truly grilled cheese sandwhich. We don’t do grilled cheese very often so it’s pretty safe to say that from now on when I do, it will be truly grilled cheese!

Lunchbox Status Update

Recently I’ve been working a new project called ‘Lunchbox’. Basically, it is a GUI wrapper around vagrant projects so that you can use the power of vagrant and virtual machines without the learning curve. To start with, I’m targeting support for DrupalVM.

Here’s a quick status update of the project to date. It’s still not ready for prime time, but this will give you an idea of where the project is headed. If you’re a bleeding-edge kind of person or would like to contribute, head over to the Lunchbox project page and submit some PRs!

Notes on Raspberry Pi, LEMP, and CloudFlare

I spent the majority of the weekend converting and streamlining my hosting setup. The end result was a lot of learning and information – way to much to write up a step-by-step manual. However, I do want to share some notes and resources I found along the way.

The upshot – this site now runs off a Raspberry Pi!

Hardware

  • Raspberry Pi 2
  • PNY Class 10 micro SD card

Basic Setup

Good initial checklist: https://gist.github.com/hlung/bf32568366bb7c0ca86e

‘Diet Raspbian’: Create base micro-SD with image from http://files.midwesternmac.com/#raspberry-pi-images

Fix keygen issues: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=11935

Run raspi-config:

  • sudo raspi-config
  • expand filesystem
  • change hostname (advanced)

Configure a static IP: http://www.techsneeze.com/configuring-static-ip-raspberry-pi-running-raspbian

Set up ssh key login, disable password login:http://raspberrypi.stackexchange.com/questions/1686/how-do-i-set-up-ssh-keys-to-log-into-my-rpi

Make sure it’s all up to date:

LEMP Setup

Why LEMP?

Loosely followed: https://www.vultr.com/docs/setup-up-nginx-php-fpm-and-mariadb-on-debian-8

Nginx

In nginx.conf:

Did not enter client_max_body_size 12m; Default of 1m will be good for now.

You can check file with:

You probably want to make this adjustment:

http://charles.lescampeurs.org/2008/11/14/fix-nginx-increase-server_names_hash_bucket_size

https://gist.github.com/LeCoupa/e29a457841dc4dd60006

PHP-FPM

Turn off fopen

In php.ini:

 

Also helpful: http://chriskief.com/2014/05/07/nginx-php5-fpm-and-permission-denied-errors/

MariaDB

In my.conf:

WordPress

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-nginx-on-centos-6–2

CloudFlare

https://techjourney.net/update-cloudflare-as-dynamic-dns-ddns/

Mentions: https://github.com/ScottHelme/CloudFlareDDNS

 

DrupalVM + NFS on Ubuntu

DrupalVM is a great project with some very complete documentation. However, for some reason I kept having difficulty getting it to work on Ubuntu despite seemingly straightforward instructions including a reference to DigitalOcean documentation (usually very good) about getting NFS running on Debian/Ubuntu.

After a few mis-starts, I think I have found the magic combination to getting it all running on a new Ubuntu-based system. As with most things, it seems incredibly simple in hindsight. One major prerequisite is that NFS does not work reliably with home directory encryption turned on. If you must run with this you’ll have to turn off NFS support in DrupalVM. Once you have that squared away, here’s the basic process:

  1. sudo apt-get update
  2. sudo apt-get install nfs-common
  3. apt-get install nfs-kernel-server
  4. sudo apt-get install virtualbox  – you may need to make sure your software sources is configured correctly, usually needs to include Canonical Partners
  5. sudo apt-get install vagrant
  6. sudo apt-get install ansible
  7. sudo apt-get install git
  8. git clone https://github.com/geerlingguy/drupal-vm.git
  9. cd drupal-vm
  10. sudo ansible-galaxy install -r provisioning/requirements.yml --force
  11. vagrant plugin install vagrant-hostsupdater
  12. vagrant plugin install vagrant-vbguest
  13. [edit config files]
  14. vagrant up

The key pieces, I’ve found, are installing the nfs-common  package and the vagrant-vbguest  plugin.

The end result is a DrupalVM with NFS (much more performant) with magical DNS capability (via vagrant-hostsupdater, no need to edit /etc/hosts). If you add new sites to the config file just run vagrant provision  to quickly get them configured in the VM and added to your local DNS  without losing anything else or needing to wait for a full VM rebuild.

One more pro-tip: mimicking the Acquia cloud platform is super-simple with DrupalVM since it includes a yml override file to match Acquia’s hosting environment.