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
bash -c "while ! curl -s rabbitmq:5672 > /dev/null; do echo waiting for xxx; sleep 3; done; start.sh" | |
bash -c "for i in {1..100} ; do if ! curl -s rabbitmq:5672 > /dev/null ; then echo waiting on rabbitmq for $i seconds; sleep $i; fi; done; start.sh" |
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
[application@rigel logs]$ telnet smtp.yonder.hubbub.com.au 25 | |
Trying 10.210.2.50... | |
Connected to smtp.yonder.hubbub.com.au (10.210.2.50). | |
Escape character is '^]'. | |
220 mail1.yonder.hubbub.com.au ESMTP Postfix (2.6.6) | |
helo mail | |
250 mail1.yonder.hubbub.com.au | |
mail from:perf2_jasper@yarris.com | |
250 2.1.0 Ok | |
mail to: arnperf2racwa@yonder.hubbub.com.au |
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
SELECT jr.label, | |
ju.username, | |
jr.report_unit_uri, | |
qt.trigger_type, | |
qt.trigger_state, | |
CASE WHEN qt.prev_fire_time = -1 THEN NULL ELSE (qt.prev_fire_time/86400000)+ CAST((FROM_TZ(CAST(TO_DATE('1970-01-01','YYYY-MM-DD HH24:MI:SS') AS TIMESTAMP), 'UTC') AT LOCAL) AS DATE) END AS prev_fire_time, | |
CASE WHEN qt.next_fire_time = -1 THEN NULL ELSE (qt.next_fire_time/86400000)+ CAST((FROM_TZ(CAST(TO_DATE('1970-01-01','YYYY-MM-DD HH24:MI:SS') AS TIMESTAMP), 'UTC') AT LOCAL) AS DATE) END AS next_fire_time | |
FROM qrtz_triggers qt, jireportjob jr,jiuser ju | |
WHERE jr.ID = substr(qt.job_name,5) | |
and jr.owner = ju.id |
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
select | |
c.owner, | |
c.object_name, | |
c.object_type, | |
b.sid, |
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
#post | |
curl -u user:pass -X POST --header "Content-Type: application/json" -d "@surveydesign.js" --verbose http://${host}:9000/v1/app/designs | |
#get | |
curl -u user:pass --verbose http://localhost:9000/v1/app |
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
jQuery("#survey-matrix-table tr").not(":first").hover(function() { | |
jQuery(this).css("background", "#F0F0F0"); | |
}, function() { | |
jQuery(this).css("background", ""); | |
}); |
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
$('input:radio[name="gender"]').filter('[value="Male"]').attr('checked', true); |
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
<jsp:include page="/path/fileinc.jsp"> | |
<jsp:param name="divId" value="div1"/> | |
<jsp:param name="label" value="Questions"/> | |
</jsp:include> | |
<jsp:directive.include file="/main/taglibs.jsp" /> |
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
jQuery.fn.extend({ | |
validateChoiceQuestions: function() { | |
//enhancement to select radios only under current div | |
//var divId = jQuery(this).attr('id'); | |
var choiceNames = {}; | |
jQuery('input:radio').each(function() { | |
choiceNames[jQuery(this).attr('name')] = true; | |
}); | |
var count = 0; | |
jQuery.each(choiceNames, 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
git add -u | |
git commit -a | |
git push | |
git push -u origin master (first time push) | |
#also creates .gitconfig under ~ | |
git config --global credential.helper 'cache --timeout=86400' (configure password cache for 1 day) | |
git config --global pull.rebase true (set pull rebase as default pull, otherwise it is pull merge and it creates merge commit) | |
git config --global diff.tool <scriptToCall> | |
git config --global merge.tool <scriptToCall> |
NewerOlder