This file contains hidden or 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
| java -jar selenium-server-standalone-2.30.0.jar -role hub | |
| java -jar selenium-server-standalone-2.30.0.jar -role node -hub "http://192.168.15.175:4444/grid/register" -browser "browserName=ie8" -browser "browserName=firefox" | |
| java -jar selenium-server-standalone-2.30.0.jar -role node -hub "http://192.168.15.175:4444/grid/register" -browser "browserName=ie9" -browser "browserName=chrome" |
This file contains hidden or 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
| import sys | |
| filenam = sys.argv[-1] | |
| phile = filenam[filenam.rindex('/')+1:].replace('.handlebars', '') | |
| with open(filenam, 'r') as inpt: | |
| allstuff = inpt.read() | |
| superx = "".join(allstuff) |
This file contains hidden or 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
| javascript:var element1 = document.createElement('script');element1.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js';element1.type='text/javascript';document.getElementsByTagName('head')[0].appendChild(element1);var div = document.getElementById('ID-navPanelContainer').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-reportTitle').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-headerPanel').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-overviewPanelTrafficSourceValueOrganicTable').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-overviewPanelGeoComponent').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-footerPanel').style; if(div) void(div.display=(div.display=='none')? 'block':'none' |
This file contains hidden or 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
| ls -l /loki/APPS*/INQ/*.XPT --format=commas | sed 's/[ \t\v\f]//g' | perl -pe 's/,(?!\n)/\n/g' | sed 's/,//g' | xargs rm |
This file contains hidden or 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
| javascript:var element1 = document.createElement('script');element1.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js';element1.type='text/javascript';document.getElementsByTagName('head')[0].appendChild(element1);var div = document.getElementById('ID-navPanelContainer').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-reportTitle').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-headerPanel').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-overviewPanelTrafficSourceValueOrganicTable').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-overviewPanelGeoComponent').style; if(div) void(div.display=(div.display=='none')? 'block':'none');var div = document.getElementById('ID-footerPanel').style; if(div) void(div.display=(div.display=='none')? 'block':'none' |
This file contains hidden or 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
| Run celery_status.sh in a shell, this will display (real time) the current running celery processes. | |
| Try to kill celery using the "rake celery:kill" task and watch to see if they go away, if they do not, you may have to resort to using "kill -9" on specific pids. | |
| Use the "rake rabbitmq:qs" to see how many requests are in each queue in rabbitmq. If there are 60+ in the error queue run the "clear_rabbitmq_queue.py" file to clear them out. |
This file contains hidden or 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
| workon_node_env() { | |
| current_dir=`pwd` | |
| if [ -d "node_modules" ]; then | |
| export ORIGINAL_PATH=$PATH | |
| for f in `ls ${current_dir}/node_modules/` | |
| do. | |
| export PATH="${PATH}:${current_dir}/node_modules/${f}/bin" | |
| done | |
| deactivatenode(){ | |
| export PATH=$ORIGINAL_PATH |
This file contains hidden or 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
| import unittest | |
| from urllib import urlencode | |
| from webob import Request | |
| import json | |
| END_POINT = 'http://localhost:8000/person/' | |
| def create_user(name): | |
| request = Request.blank(END_POINT) | |
| request.method = 'POST' |
This file contains hidden or 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
| ls -aF | grep \*$ | grep -v '\.' | sed s/.$// | xargs rm |
NewerOlder