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
//Paste this into the chrome console when you are in site catalyst | |
//You should get any easily copied list of report suites | |
var w = window.open('', 'wnd');var rsuites = "Matt's Report Suite Export\n\nNAME, VALUE\n"; var list = document.getElementById('rsid_select_list'); var items = list.getElementsByTagName('li'); for(x = 0;x < items.length; x++) { rsuites = rsuites + items[x].getElementsByTagName('a')[0].getAttribute('title') + ", " + items[x].getElementsByTagName('a')[0].getAttribute('data-value') + "\n"; } rsuites + "\n\n"; |
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/sh | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
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/sh | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
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
<?php | |
App::import('Core', array('Media', 'HttpSocket')); | |
class UploadSocket extends HttpSocket { | |
/** | |
* upload function | |
* allows posting of multipart form data (aka file uploads) | |
* |