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
| /** | |
| * | |
| * MD5 (Message-Digest Algorithm) | |
| * http://www.webtoolkit.info/ | |
| * | |
| **/ | |
| var MD5 = function (string) { | |
| function RotateLeft(lValue, iShiftBits) { |
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="[yourLangHere]"> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"/> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"/> | |
| <meta name="description" content="[yourDescriptionHere]"/> | |
| <meta name="author" content="[yourNameHere]"/> | |
| <link rel="stylesheet" type="text/css" href="[yourCssSourceHere]"/> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> |
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
| CREATE TABLE `sessions` ( | |
| `id` varchar(40) NOT NULL, | |
| `ip_address` varchar(45) NOT NULL, | |
| `timestamp` int(10) unsigned NOT NULL DEFAULT '0', | |
| `data` blob NOT NULL, | |
| PRIMARY KEY (`id`), | |
| KEY `sessions_timestamp` (`timestamp`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
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
| var rows = $("#skill_table tr"); | |
| console.log(rows); | |
| var minLvl = 1; | |
| var maxLvl = 5; | |
| var totalSP = 0; | |
| var levelCol = 1 | |
| var spCol = 6 | |
| var skillNameCol = 2 |
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 | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| reload(sys) | |
| sys.setdefaultencoding('utf8') | |
| import getopt | |
| from pyquery import PyQuery as pq | |
| try: | |
| opts, args = getopt.getopt(sys.argv[1:], "c:") |
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
| ($("table")[0]).find("tr td[id]").each(function(index){ | |
| if($( this ).find("p span").length > 0){ | |
| var innerText = $( this ).find("p span").text().replace("\n", "").replace("\t", " "); | |
| console.log(innerText); | |
| } | |
| }) |
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 | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| reload(sys) | |
| sys.setdefaultencoding('utf8') | |
| import getopt | |
| import json | |
| def createUser(user): | |
| for dbName in user["dbs"]: | |
| print "CREATE SCHEMA IF NOT EXISTS `{0}` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;".format(dbName) |
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 | |
| // ### .htaccess | |
| // <IfModule mod_rewrite.c> | |
| // // Tell PHP that the mod_rewrite module is ENABLED. | |
| // SetEnv HTTP_MOD_REWRITE On | |
| // RewriteEngine on | |
| // RewriteBase / |
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
| document.getElementsByTagName("video")[0].addEventListener("ended", function(){this.play();}) |
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 | |
| $target = "www.google.com"; | |
| $g = stream_context_create (array("ssl" => array("capture_peer_cert" => true))); | |
| $r = stream_socket_client(sprintf("ssl://%s:443", $target), $errno, $errstr, 30, | |
| STREAM_CLIENT_CONNECT, $g); | |
| $cont = stream_context_get_params($r); | |
| var_dump(openssl_x509_parse($cont["options"]["ssl"]["peer_certificate"])); |