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 snippet to open new shells in most recently visited dir. | |
# Useful if you want to open a new terminal tab at the present | |
# tab's location. | |
# | |
# Put this in your .bashrc or whatever. | |
pathed_cd () { | |
if [ "$1" == "" ]; then | |
cd | |
else |
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
ps aux | grep http | grep "\-k" | awk {/[0-9]+/ '{print $2}' | xargs kill -9 |
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
<div style="text-align:center"> | |
<a href="http://atlantis.crlt.indiana.edu/main/infoItem/listInfoItems.pl?type=update" class="update_link" title="updatelink" style="display:none";> | |
<img src="http://atlantis.crlt.indiana.edu/images/pda/skins/default/update.gif" | |
onmouseover="this.src = 'http://atlantis.crlt.indiana.edu/images/pda/skins/default/update_over.gif';" | |
onmouseout="this.src = 'http://atlantis.crlt.indiana.edu/images/pda/skins/default/update.gif';" | |
style="border:none;" | |
/> | |
</a> | |
</div> | |
<script type="text/javascript"> |
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
$j(document).ready(function(){ | |
if (window.location.href.match(/avatarSelect/)) { | |
var greeting = $j("<p><a href='http://questatlantis.org'>Apapane, I like how I look. What next?</p></a>"); | |
$j("input[name=btnSubmit]:first").parent().append(greeting); | |
} | |
}); | |
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
<script type="text/javascript"> | |
//--<![CDATA[ | |
$j(document).ready(function(){ | |
var citizen_id = CookieManager.read("QaAuth_QaCookie").replace(/_\d+/,""); | |
$j.ajax({ | |
url : "/qaws/set_language_version/"+citizen_id, | |
type : "POST", | |
dataType : "script", | |
data : "language_version_id=2" | |
}); |
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
<script type="text/javascript"> | |
//--<![CDATA[ | |
$j(document).ready(function(){ | |
var citizen_id = CookieManager.read("QaAuth_QaCookie").replace(/_\d+/,""); | |
var qpack_object_id = 7328; | |
var whom = "parent"; | |
$j.ajax({ | |
url : "/fq/qpack_objects/give", | |
type : "POST", | |
dataType : "script", |
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
<script type="text/javascript"> | |
//--<![CDATA[ | |
$j(document).ready(function(){ | |
var citizen_id = CookieManager.read("QaAuth_QaCookie").replace(/_\d+/,""); | |
var qpack_object_id = 7328; | |
$j.ajax({ | |
url : "/fq/qpack_objects/distribute", | |
type : "POST", | |
dataType : "script", | |
data : "citizen_id="+citizen_id+"&qpack_object_id="+qpack_object_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
$j(document).ready(function(){ | |
if (window.location.href.match(/avatarSelect/)) { | |
var $submit_button = $j("<input type='submit' value='Update My Avatar'/>"); | |
$j("input[name=btnSubmit]:first").replaceWith($submit_button); | |
$j("form").bind("submit",function(){ return false; }); | |
$submit_button.bind("click", function(){ | |
var $form = $j(this).closest("form"); | |
$form.find("input[name=cmd]").val("avatarUpdate"); | |
$j.ajax({ | |
url : $form.attr("action"), |
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
<script type="text/javascript"> | |
//--<![CDATA[ | |
$j(document).ready(function(){ | |
$j("#close").remove(); | |
$j("body").css({"color":"white"}); | |
$j("h2").css({"color":"white"}); | |
$j("ul.responses li").css({"list-style-image":"none", "list-style-type": "disc", "color" : "white"}); | |
$j("ul.responses li").find("a").each(function(i,elm){ | |
var $elm = $j(elm); | |
var $li = $elm.closest("li"); |
OlderNewer