Skip to content

Instantly share code, notes, and snippets.

View mattweg-zz's full-sized avatar

Matt Weghorst mattweg-zz

  • Santa Monica, CA
View GitHub Profile
//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";
#! /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.
#! /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.
<?php
App::import('Core', array('Media', 'HttpSocket'));
class UploadSocket extends HttpSocket {
/**
* upload function
* allows posting of multipart form data (aka file uploads)
*