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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Styled OL Test</title> | |
<style> | |
ol { counter-reset: item; } | |
ol li { display: block } | |
ol li:before { content: counter(item) ". "; counter-increment: item; } | |
ol.custom{ padding: 0; counter-reset: item; } | |
ol.custom li.aa:before { content: counter(item) "A. "; counter-reset: subsection; } |
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
/* | |
Original web post: http://timelessname.com/sandbox/matrix_orig.html | |
Updated web post: http://timelessname.com/sandbox/matrix.html | |
Reddit post where code is whittled down: http://www.reddit.com/r/programming/comments/1ag0c3/someone_posted_an_htmljavascript_implementation/ | |
*/ | |
<body style=margin:0 onload="for(s=window.screen,w=q.width=s.width,h=q.height=s.height,m=Math.random,p=[],i=0;i<256;p[i++]=1);setInterval('9Style=\'rgba(0,0,0,.05)\'9Rect(0,0,w,h)9Style=\'#0F0\';p.map(function(v,i){9Text(String.fromCharCode(3e4+m()*33),i*10,v);p[i]=v>758+m()*1e4?0:v+10})'.split(9).join(';q.getContext(\'2d\').fill'),33)"><canvas id=q> |
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 text='text/javascript'> | |
// function to calculate and update based on price and number of items | |
function updateInpPrice(val){ | |
if(!val || isNaN(val) || val == 0) val = 1; | |
val = Math.floor(Math.ceil(val)); | |
var js_prices = [{"bounds":{"lowerBound":51,"upperBound":100},"price":"65.9900"},{"bounds":{"lowerBound":26,"upperBound":50},"price":"69.9900"},{"bounds":{"lowerBound":11,"upperBound":25},"price":"74.9900"},{"bounds":{"lowerBound":1,"upperBound":10},"price":"79.0000"}]; | |
var lenv = js_prices.length - 1; | |
var iter = 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
# Takes a user input, hashes it with MD5 crypt, and attempts to match it via brute force | |
import hashlib, time | |
md = hashlib.md5() | |
print("Welcome to a brute force MD5 cracker. \n") | |
password = input("Enter a password, composed of a number up to 99,999,999: ") | |
md.update(str(password).encode("utf-8")) | |
hashed_password = md.hexdigest() |
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 hashlib | |
def getHexDigest(value): | |
md5 = hashlib.md5() | |
md5.update(str(value).encode("utf-8")) | |
return md5.hexdigest() | |
def MD5BruteInt(integer): | |
hexdigest = getHexDigest(integer) | |
for i in range(999999999): |
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 | |
# Dependencies: gnome, sshpass, ssh, gui | |
gnome-terminal --maximize --tab --title='Hades' --command 'sshpass -p "afsd@#$5u89f" ssh root@192.168.0.125' \ | |
--tab --title='Kronos' --command 'sshpass -p "sad;fi@#$0al" ssh root@192.168.0.126' \ | |
--tab --title='Zeus' --command 'sshpass -p "afsd@#$5u89f" ssh root@192.168.0.127' \ | |
--tab --title='Midas' --command 'sshpass -p "sad;fi@#$0al" ssh root@192.168.0.128' \ | |
--tab --title='Thor' --command 'sshpass -p "afsd@#$5u89f" ssh root@192.168.0.129' \ | |
--tab --title='Herc' --command 'sshpass -p "sad;fi@#$0al" ssh root@192.168.0.130' |
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
{+conf} | |
def:i>11 | |
def:s>200 | |
set:case>all_lowercase | |
{-conf} | |
{+sql} | |
+table | |
column:i, column:s | |
+table |
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 | |
echo "<center>"; | |
doublingTriangle(1, 128); | |
echo "</center>"; | |
function doublingTriangle($currentNumber = 1, $goalNumber = 10){ | |
if($currentNumber <= $goalNumber){ | |
if($currentNumber <= 1){ | |
echo $currentNumber . "<br>"; |
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
<html> | |
<head> | |
<title>Blerg</title> | |
</head> | |
<body> | |
This page reloads every 100ms | |
<script type="text/javascript"> | |
!(function(){ | |
setTimeout(function(){ |
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 | |
class DirectoryReader{ | |
private $directory; | |
private $listing; | |
public function __construct($directory){ | |
try { | |
$this->directory = $directory; | |
$this->listing = array(); |
OlderNewer