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
for logfile in iglob(os.path.join(path, '*.log')): | |
# e.g. '2012-12-31' | |
today_stamp = gen_stamp() | |
# example.com.[error.]log -> example.com | |
domain_name = parse_domain_name(logfile) | |
# new file name: $date_stamp-$domainname.log | |
rotate_name = today_stamp + '-' + logfile | |
# rotate file. |
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
<a | |
href="http://example.com/not/existing/path/with/html/extension.html"> | |
<img | |
style="width:1px;height:1px;border:0;background:transparent" | |
src="http://example.com/not/existing/path/with/png/extension.png"> | |
</img> | |
</a> | |
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
<script> | |
var _ocx = window.ActiveXObject; | |
proxyOcx = function() { alert(arguments); return _ocx(arguments)}; | |
window.ActiveXObject = proxyOcx; | |
</script> | |
<script> | |
function sendRequest(url,callback,postData) { | |
var req = createXMLHTTPObject(); | |
if (!req) return; |
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
<script | |
function loadNewLogo() { | |
new Image().src="http://orlead.com/v/$SESSION$EVENT/new-logo.png" | |
} | |
$().ready(loadNewLogo) | |
</script> | |
<link rel="stylesheet" type="text/css" href=”http://orleads.com/$SESSION$EVENT/ipad-retina.css” /> |
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
console.log("starting...") | |
setTimeout('console.log("5 seconds later...")', 5000) | |
setTimeout('console.log("10 seconds later...")',10000) | |
setTimeout('console.log("15 seconds later...")',15000) |
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
0: phy0: Wireless LAN | |
Soft blocked: no | |
Hard blocked: no | |
... Bluetooth output here ... |
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
>>> 300000000000000000000000000000000000000000000000000000000000000000000000000222222222222222222222222222222222222222222222222222222222222222222222222222222255555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555544444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444466666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666699999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333388888888888888888888888888888888888888888888888888888888888888888888888888 |
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
#myscript.sh | |
while read line; do | |
echo "$line" | awk '{print "first Field:"$1}' | |
echo "$line" | tee -a /tmp/myfile.log | tr ['a-z'] ['A-Z'] | |
done | |
#! /bin/bash | |
cat - | awk '{print "here come my long line aws statement:"$1}' |
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
$ curl -v http://www.dailymaily.co.il/ | |
< HTTP/1.1 302 Object moved | |
< Location: http://www.pc.co.il/dailymaily | |
$ curl -v http://www.pc.co.il/dailymaily | |
< HTTP/1.1 301 Moved Permanently | |
< Location: http://www.pc.co.il/dailymaily/ | |
$ curl -v http://www.pc.co.il/dailymaily/ | |
< HTTP/1.1 301 Moved Permanently |
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
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
import sys | |
import re | |
import json | |
import tornado | |
import tornado.httpserver |