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
var get = Ember.get, set = Ember.set, computed = Ember.computed, defineProperty = Ember.defineProperty, observer = Ember.observer; | |
Ember.Select.reopen({ | |
optionDisabledPath: null | |
}); | |
Ember.SelectOption.reopen({ | |
attributeBindings: ['disabled'], | |
init: function() { |
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
<form id="foo"> | |
Name: <input id="name"><button id="say">Say My Name!</button> | |
</form> |
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
<!--- | |
--- NOTE: YOU NEED THE JAVA LIBRARY FROM HERE: http://www.rabbitmq.com/java-client.html | |
--- http://www.rabbitmq.com/tutorials/tutorial-one-java.html | |
--- https://github.com/rabbitmq/rabbitmq-tutorials/blob/master/java/Recv.java | |
import com.rabbitmq.client.ConnectionFactory; | |
import com.rabbitmq.client.Connection; | |
import com.rabbitmq.client.Channel; |
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
# Reference | |
# https://docs.docker.com/articles/b2d_volume_resize/ | |
echo "Cloning existing disk..." | |
vboxmanage clonehd "/path/to/VirtualBox VMs/boot2docker-vm/boot2docker-vm.vmdk" "/path/to/VirtualBox VMs/boot2docker-vm/boot2docker-vm-v1.vdi" --format VDI --variant Standard | |
echo "Increasing disk size..." | |
vboxmanage modifyhd "/path/to/VirtualBox VMs/boot2docker-vm/boot2docker-vm-v1.vdi" --resize 40960 |
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
<!--- Sometimes you need to output the contents of an iterator multiple times. For example, for a slider with navigation, you may want to output the links as an unordered list and the images as divs ---> | |
<cfoutput> | |
<cfset feed=$.getBean("feed").loadBy(name="Feed Name",siteID=$.event("siteid"))> | |
<cfset iterator=feed.getIterator()> | |
<cfif iterator.hasNext()> | |
<ul> | |
<!--- The list ---> |
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> | |
// USER feed bean | |
userFeed = $.getBean('userFeed'); | |
// if user(s) belong to a different site, specify desired siteid | |
// userFeed.setSiteID('someSiteID'); | |
// if you know the groupid, you can filter that | |
// userFeed.setGroupID('someGroupID', false); |
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
<!---Add to Site or Theme eventhandler.cfc---> | |
<cffunction name="onAfterFormSubmitSave"> | |
<cfargument name="$"> | |
<cfset var msg = "" /> | |
<!---Get Most Recent Form ID---> | |
<cfset receipt = $.event('formDataBean').getFormResult() /> | |
<!---Load Form Data---> | |
<cfset record = receipt /> | |
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: |
OlderNewer