Skip to content

Instantly share code, notes, and snippets.

View mhoofman's full-sized avatar
🌊

Matt Hoofman mhoofman

🌊
  • Orlando, Florida
View GitHub Profile
@mhoofman
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

/usr/local/repositories/conf/passwd

display listening ports

@mhoofman
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 user.name "Name"
git config --global user.email "Email@email.email"

git config --global color.ui auto

@mhoofman
mhoofman / minecraft.sh
Created August 4, 2011 01:08
Minecraft Server Shell Script
#!/bin/bash
# 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 minecraft.sh)
# - 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)
# 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
edit_page.load(content_item_id: @story1.id)
edit_page.relationships_tab.click
edit_page.edit_related_photo.click
# Can set an expectation on an element to be visible with have_x
@mhoofman
mhoofman / pagebuilder-and-you.md
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

Welcome!

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. .