Skip to content

Instantly share code, notes, and snippets.

View bauhouse's full-sized avatar

Stephen Bau bauhouse

View GitHub Profile
<data>
<hello>Hello, GitHub!</hello>
<message>It looks like you changed the Gist API.</message>
<references>
<reference>
<title>GitHub Developer API: Gists</title>
<description>You can read public gists and create them for anonymous users without a token; however, to read or write gists on a user's behalf the gist OAuth scope is required.</description>
<url>https://developer.github.com/v3/gists/</url>
</reference>
<reference>
@bauhouse
bauhouse / truncate.sql
Created April 6, 2010 21:31
Truncate Symphony CMS MySQL tables for sections and fields
TRUNCATE TABLE `sym_fields`;
TRUNCATE TABLE `sym_fields_author`;
TRUNCATE TABLE `sym_fields_checkbox`;
TRUNCATE TABLE `sym_fields_date`;
TRUNCATE TABLE `sym_fields_input`;
TRUNCATE TABLE `sym_fields_member`;
TRUNCATE TABLE `sym_fields_memberlink`;
TRUNCATE TABLE `sym_fields_memberrole`;
TRUNCATE TABLE `sym_fields_number`;
TRUNCATE TABLE `sym_fields_select`;
@bauhouse
bauhouse / symphony-wikipedia.md
Created October 27, 2010 18:27 — forked from nickdunn/symphony-wikipedia.md
Symphony Wikipedia Article

Symphony

Symphony is a web-based content management framework (CMF) that enables users to create and manage websites and web applications of all shapes and sizes -- from the simplest of blogs to news sites and social networks.

Symphony is open source software, built with PHP, that combines a flexible, open architecture with XSLT to give users control over data structures, field types, parameters, templates, events and extensions that allows flexible and efficient development of many types of sites.

The code is available as a ZIP download from the Symphony community site or as a Git repository from the official Symphony GitHub repository.

Publications

@bauhouse
bauhouse / date-time.xsl
Created October 16, 2011 15:37
Project Template
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Description:
This is a date formatting utility. The named template "format-date" takes 2 parameters:
1. date - [required] takes an ISO date (2005-12-01)
@bauhouse
bauhouse / symphony-reset.sh
Created October 16, 2011 16:16
Delete Files to Reinstall Symphony CMS
sudo rm -rf .htaccess install-log.txt manifest
@bauhouse
bauhouse / home.xml
Created October 27, 2011 22:23
Master XSL Template with overrides
<?xml version="1.0" encoding="utf-8" ?>
<data>
<params>
<today>2011-10-27</today>
<current-time>16:00</current-time>
<this-year>2011</this-year>
<this-month>10</this-month>
<this-day>27</this-day>
<timezone>-07:00</timezone>
<website-name>Symphony CMS</website-name>
@bauhouse
bauhouse / A-Symphony-Workflow.markdown
Created November 6, 2011 14:14 — forked from designermonkey/A-Symphony-Workflow.markdown
Just mapping out a git workflow for Symphony development

A Symphony Workflow

I'm describing my workflow in these articles, before I start my next Symphony project. Mostly for myself, to iron out my recurring problems, it is based on solid git techniques, taking heed of advice learned from Symphony community members, many many tips on the web, and flicking through the pages of O'Reilly's Version Control with git.

The core aim of this article, is to get a good Symphony development and deployment environment using git as the basis for the organisation, and have it written down for reference.

This workflow can be applied to any project, in theory, that has a starting point being a private remote git repo.

Disclaimer

<data>
<hello>
<entry id="2">
<phrase>Hello</phrase>
<name>World</name>
</entry>
</hello>
</data>
<data>
<hello>
<entry id="2">
<phrase>Hello</phrase>
<name>World</name>
</entry>
</hello>
</data>