Skip to content

Instantly share code, notes, and snippets.

View mhoofman's full-sized avatar

Matt Hoofman mhoofman

  • Orlando, Florida
View GitHub Profile
mhoofman /
Created March 2, 2018 16:34
PageBuilder and You: A giude to getting started with tronc's (LATMG's?) PageBuilder repository

PageBuilder and You: A guide to getting started with TI's PageBuilder repository


This guide will walk you, the reader/tronc/latmg developer, through setting up our Arc PageBuilder repository on your local machine for development purposes. Let's get started!

Step 0: Ignore the docs

The default docs in the github repo outline steps for running PageBuilder in vagrant. Ignore them! They are very deprecated and will not work.

Step 1: Install Docker

If you don't have it already, go to the Docker website and install Docker for your OS. Go ahead, I'll wait. .

# Add caption feild element in the page object
# acceptance/pages/content_items_edit_page.rb
element :photohud_caption_tinymce, :xpath, "//div[contains(@class, 'photo-mode-container')]//textarea[contains(@name, 'caption')]"
# acceptance/content_item/story_content_item_spec.rb
scenario "use related item photo hud to edit caption field" do
# Can set an expectation on an element to be visible with have_x
mhoofman /
Created August 4, 2011 01:08
Minecraft Server Shell Script
# original author : Relliktsohg
# Huge thanks to Maine for his incremental backup
# Thanks to endofzero for his improved update routine
# Installation:
# - Copy script into you minecraft server folder.
# - Allow the script to be executed (chmod +x
# - Check the rights of the script user. Every folder specified in config has to be available.
# - Edit the script to configure it (see configure section)
mhoofman / gist:772021
Created January 9, 2011 21:06
Git Commands

To clone a repo from a windows local file system

C:\some\dir\> git clone --local file:///C:/path/to/repo my_project

Find the location of remote repos

git remote show {remote name}

Set global user name and user email and pretty colors

git config --global "Name"
git config --global ""

git config --global color.ui auto

mhoofman / gist:768701
Created January 6, 2011 22:11
Useful FreeBSD/Linux commands

line added to /etc/inetd.conf for svn server

svn stream tcp nowait root /usr/local/bin/svnserve svnserve -i -r /usr/local/repositories

to restart inetd

/etc/rc.d/inetd restart

svn auth located in


display listening ports