Skip to content

Instantly share code, notes, and snippets.

Google Compute Engine NFS Container VM

This script creates a Container VM on Google Compute Engine running a NFS V4 server exposed on Port 2049 with the /exports directory mounted to a persistent disk. This means:

  • If the NFS VM Crashes, the persistent disk will still hold the NFS Files
  • The persistent disk can be snapshotted to backup NFS Files

To run:

@samstoller
samstoller / wp_installer.sh
Last active April 3, 2020 03:53
WordPress install as git submodule
# Create the basic site structure
# Web server points to public/ keeping configuration outside of webroot
$ mkdir site && cd site
$ mkdir conf/ public/
# Init repo
$ git init && git add . && git commit -m 'Init commit'
# Install WP as submodule to public/
$ git submodule add git://github.com/WordPress/WordPress.git public/wp-core
@mbostock
mbostock / .block
Last active November 22, 2022 23:32
Line Transition
license: gpl-3.0