- on the same IP
- on the same Port 80
This setup was mostly created by @frog32 and the guide was written by @sspross. It was developed while working at allink. Warning: This setup is not battle tested and may or may not work for you.
| class EmailEmployeeHighFive(Task): | |
| name = 'tcb-hrbox-email-employee-high-five' | |
| max_retries = 3 | |
| ignore_result = True | |
| def __init__(self): | |
| pass | |
| def run(self, employee, sender, hf, **kwargs): |
| <!DOCTYPE html> | |
| <!-- By Jan Wrobel (http://mixedbit.org) --> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
| <title>Random walk</title> | |
| <script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script> | |
| <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> |
| $('#js-subaccount-file-complaint').submit(function(e){ | |
| e.preventDefault(); | |
| var JSON = { 'date' : $('#incident_date').val(), | |
| 'description' : $('#complaint_description').val(), | |
| 'type' : $('#complaint_type').val() } | |
| var options = { | |
| 'beforeSend' : TCB.router.validate_form("#js-subaccount-file-complaint"), | |
| 'success' : function(data) { | |
| if(data.success) |
| var SocialQPlanningContentCollection = Backbone.Collection.extend({ | |
| model: SOCIALQ.Models.SocialQPlanningContentModel, | |
| nextOrder: function() { | |
| if (!this.length) return 1; | |
| return this.last().get('order') + 1; | |
| }, | |
| getSelectedItems : function() { |
| SOCIALQ.Models.SocialQPlanningContentModel = Backbone.Model.extend({ | |
| ICONS : ['V','P','N','A','c'], | |
| _update_global_selection : function(){ | |
| //console.log( this.toJSON() ) | |
| }, | |
| set: function(attributes, options) { | |
| #!/bin/sh | |
| cd /usr/share/munin/plugins/ | |
| cp /home/ubuntu/socialq/socialqformtool/config/munin/mongodb_* . | |
| cp /home/ubuntu/socialq/socialqformtool/config/munin/redis* . | |
| chmod -R 777 /usr/share/munin/plugins/ | |
| cd /etc/munin/plugins |
| PullFacebookPageData.apply_async(kwargs={ | |
| 'user_id' : self.unqid, | |
| 'facebook_page_id' : page['id'], | |
| 'facebook_access_token' : page['access_token'], | |
| }, queue='page_task_queue') |
| request.build_absolute_uri(reverse("initiate_new_survey", kwargs={'sid': self.sid})), |
| //Make sure to direct ste_init to location of license file. | |
| ste = ste_init("c:/program files/symmetry tax engine/"); | |
| if ( ste==NULL ) | |
| { | |
| fprintf(stderr,"Unable to initialize STE"); | |
| exit(1); } |