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
| rm $HOME/.mysql_history | |
| ln -s /dev/null $HOME/.mysql_history |
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
| #/etc/httpd/conf.d/mod_evavsive.conf | |
| LoadModule evasive20_module /usr/lib64/httpd/modules/mod_evasive20.so | |
| <IfModule mod_evasive20.c> | |
| DOSHashTableSize 3097 | |
| DOSPageCount 3 | |
| DOSSiteCount 100 | |
| DOSPageInterval 3 | |
| DOSSiteInterval 5 | |
| DOSBlockingPeriod 300 |
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/python | |
| import os | |
| var=0 | |
| while var<10000: | |
| var+=1 | |
| temp='{0:04}'.format(var) | |
| result=os.system('./hackme '+temp) | |
| if result==0: | |
| print "Found : "+temp | |
| break |
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
| <?xml version="1.0" encoding='UTF-8'?> | |
| <flashmedialiveencoder_profile> | |
| <preset> | |
| <name>uFame Live</name> | |
| <description>For Webcam Streaming</description> | |
| </preset> | |
| <capture> | |
| <video> | |
| <device>USB Video Device</device> | |
| <crossbar_input>0</crossbar_input> |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Maps</title> | |
| <style> | |
| #map_canvas { | |
| width: 500px; | |
| height: 400px; | |
| } |
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
| <!doctyp html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Get Latitude and Longitude</title> | |
| <script src="http://maps.google.com/maps/api/js?libraries=places®ion=uk&language=en&sensor=true"></script> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
| </head> | |
| <body> |
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
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| // ------------------------------------------------------------------------ | |
| /** | |
| * Random String Generator : Helper File for Codeigniter | |
| * | |
| * @author Paras Nath Chaudhary | |
| * @link https://gist.github.com/opnchaudhary/4995012 | |
| * | |
| */ | |
| // ------------------------------------------------------------------------ |
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
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| // ------------------------------------------------------------------------ | |
| /** | |
| * CSV Helpers | |
| * Inspiration from PHP Cookbook by David Sklar and Adam Trachtenberg | |
| * | |
| * @author Jérôme Jaglale | |
| * @link http://maestric.com/en/doc/php/codeigniter_csv |
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
| <?php | |
| if (!defined('BASEPATH')) | |
| exit('No direct script access allowed'); | |
| class Numbertowords { | |
| function convert_number($number) { | |
| if (($number < 0) || ($number > 999999999)) { | |
| throw new Exception("Number is out of range"); | |
| } |
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
| // Convert numbers to words | |
| // copyright 25th July 2006, by Stephen Chapman http://javascript.about.com | |
| // permission to use this Javascript on your web page is granted | |
| // provided that all of the code (including this copyright notice) is | |
| // used exactly as shown (you can change the numbering system if you wish) | |
| /* | |
| Documentation: Usage | |
| ===================== | |
| 1. Import the javascript file: |