- http://david.heinemeierhansson.com/2014/tdd-is-dead-long-live-testing.html
- http://blog.8thlight.com/uncle-bob/2014/04/25/MonogamousTDD.html
- http://david.heinemeierhansson.com/2014/test-induced-design-damage.html
- http://blog.8thlight.com/uncle-bob/2014/05/01/Design-Damage.html
- http://david.heinemeierhansson.com/2014/slow-database-test-fallacy.html
- http://blog.8thlight.com/uncle-bob/2014/04/30/When-tdd-does-not-work.html
- https://www.destroyallsoftware.com/blog/2014/tdd-straw-men-and-rhetoric
- http://articles.coreyhaines.com/posts/active-record-spec-helper/
- http://martinfowler.com/bliki/UnitTest.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is used by Icinga to post alerts into a Slack channel | |
# using the Incoming WebHooks integration. Create the channel, botname | |
# and integration first and then add this notification script in your | |
# Icinga configuration. | |
# | |
# All variables that start with NAGIOS_ are provided by Icinga as | |
# environment variables when an notification is generated. | |
# A list of the env variables is available here: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
public any function standardPostLogoutHandler($, event) { | |
// you could redirect the user to any url you want here | |
location(url=arguments.$.createHREF(filename='about'), addtoken=false); | |
} | |
</cfscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect | |
set timeout 30 | |
#setup some abitrary commands | |
set cmdstr(0) "cd /opt/obb/server" | |
set cmdstr(1) ". build/setup" | |
set cmdstr(2) "rebuild_db" | |
spawn /bin/bash | |
#send the first command | |
send "$cmdstr(0)\n" | |
#wait for a prompt to appear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- 1) Create a form with a hidden form field like shown below, and place it in a layout template, or in a display object, etc. ---> | |
<form method="post"> | |
<input type="text" name="myField" value="Some Value"> | |
<input type="hidden" name="myFormIsSubmitted" value="true"> | |
<input type="submit"> | |
</form> | |
<cfscript> | |
// 2) In the eventHandler.cfc (Site, Theme, Plugin, or other custom handler) you could listen for the even in one of Mura's eventHandlers such as 'onRenderStart' | |
public any function onRenderStart(event, m){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
1) Drop this in your theme /{SiteID}/includes/themes/{Theme}/config.xml.cfm | |
--> | |
<theme> | |
<extensions> | |
<extension type="Folder" subType="FAQ" availableSubTypes="Page/Question" iconClass="icon-question-sign"> | |
</extension> | |
<extension type="Page" subType="Question" iconClass="icon-question" hasSummary="0" hasBody="0" hasAssocFile="0"> | |
</extension> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// Place these methods in your Site, Theme, or Plugin's eventHandler.cfc | |
public any function onBeforeUserSave($) { | |
var newUserBean = arguments.$.event('userBean'); | |
var oldUserBean = arguments.$.getBean('user').loadBy(userid=arguments.$.event('userid')); | |
// if you want to stuff the oldUserBean in the event | |
// $.event('oldUserBean', oldUserBean); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
component extends="mura.cfobject" output="false" { | |
// Drop the methods below in your theme or site contentRenderer.cfc | |
// This example assumes you wish to populate the Label with the content Title, and the value stored would be the URL | |
// With the methods defined below, you should be able to add the following into your extended attribute fields: | |
// Option List: [mura]$.getSpeakersOptionList()[/mura] | |
// Option Label List: [mura]$.getSpeakersOptionLabelList()[/mura] |
I have spent quite a bit of time figuring out automounts of NFS shares in OS X...
Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:
/etc/auto_master (see last line):
#
# Automounter master map
#
+auto_master # Use directory service