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/bash | |
#mishudark <[email protected]> <[email protected]> | |
#thanks ostermiller.org to amazing regex | |
# | |
# delete_comments.sh | |
# | |
# Copyright 2010 mishudark <[email protected]> <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
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
cookie_h = urllib2.HTTPCookieProcessor() | |
opener = urllib2.build_opener(cookie_h) | |
urllib2.install_opener(opener) | |
ua = 'Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.0.11)' | |
ua += ' Gecko/2009061118 Fedora/3.0.11-1.fc10 Firefox/3.0.11' | |
h = {"User-Agent": ua} | |
params = urllib.urlencode({"pass": password,"user" :username}) | |
r = urllib2.Request("http://escolares.utm.mx/alumnos.php", headers=h) | |
f = urllib2.urlopen(r,params) |
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
<?php | |
//http://elouai.com/force-download.php | |
$filename = $_GET['file']; | |
// required for IE, otherwise Content-disposition is ignored | |
if(ini_get('zlib.output_compression')) | |
ini_set('zlib.output_compression', 'Off'); | |
// addition by Jorg Weske | |
$file_extension = strtolower(substr(strrchr($filename,"."),1)); |
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 tornado.httpserver, tornado.ioloop, tornado.options, tornado.web, os.path | |
from tornado.options import define, options | |
define("port", default=8888, help="run on the given port", type=int) | |
class Application(tornado.web.Application): | |
def __init__(self): | |
handlers = [ | |
(r"/", HomeHandler), | |
(r"/upload", UploadHandler) |
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 logging | |
import tornado.auth | |
import tornado.escape | |
import tornado.httpserver | |
import tornado.ioloop | |
import tornado.options | |
import tornado.web | |
import os.path | |
import uuid | |
from tornado import websocket |
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
<?php | |
/* date_correct.php | |
Copyright 2010 mishudark <[email protected]> <[email protected]> | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. | |
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
IPTABLES -A OUTPUT -i $EXT_IF -p ICMP --icmp-type 11 -j DROP |
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/env python | |
""" | |
graph_red.py | |
Copyright 2010 mishudark <[email protected]><[email protected]> | |
based on graph from nodebox | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. |
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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<deviceinfo version="0.2"> | |
<device> | |
<match key="info.capabilities" contains="input.touchpad"> | |
<merge key="input.x11_driver" type="string">synaptics</merge> | |
<merge key="input.x11_options.SHMConfig" type="string">On</merge> | |
<merge key="input.x11_options.EmulateTwoFingerMinZ" type="string">90</merge> | |
<merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge> | |
<merge key="input.x11_options.HorizTwoFingerScroll" type="string">1</merge> | |
<merge key="input.x11_options.TapButton1" type="string">1</merge> |
OlderNewer