Skip to content

Instantly share code, notes, and snippets.

View Hunter-Dolan's full-sized avatar

Hunter Dolan Hunter-Dolan

View GitHub Profile
@Hunter-Dolan
Hunter-Dolan / BestServices.php
Created December 20, 2011 02:31
BestServices
<?php
$bestServices = array("Google", "Github", "Twitter", "Gmail");
foreach($bestServices as $bestService) {
echo $bestService."\n";
}
?>
@Hunter-Dolan
Hunter-Dolan / gist:1390366
Created November 24, 2011 00:44
random.m
#import <stdlib.h>
+ (NSNumber *)randomFourDigitNumber
{
int randomNumber = rand()%9999 + 1000;
NSArray *badNumbers = [NSArray arrayWithObjects:@"69",@"666",@"0",@"11",@"22",@"33",@"44",@"55",@"66",@"77",@"88",@"99", nil];
for (NSString *badNumber in badNumbers) {
#title {
position: relative;
right: 0;
top: -110px;
visibility: visible;
z-index: 0;
text-align: right;
font-weight: bold;
font-size: 50px;
font-family: Helvetica, Arial;
background: #fefffe; /* Old browsers */
background: -moz-linear-gradient(top, #fefffe 0%, #c1c1c1 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fefffe), color-stop(100%,#c1c1c1)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #fefffe 0%,#c1c1c1 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #fefffe 0%,#c1c1c1 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #fefffe 0%,#c1c1c1 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefffe', endColorstr='#c1c1c1',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, #fefffe 0%,#c1c1c1 100%); /* W3C */
document.write('I am writing this message today to show you how some people don\'t know how to strip javascript from certain elements of a page, app, or tweet. Odds are if you\'re reading this you are using Osfoora or another Twitter Application that doesn\'t take security seriously... Now most will say... "oh what can you do with JS". Well the answer to that is many things. For instance get you\'re current location\, redirect you to an advertising site, Crash what ever app you\'re using right now. And maybe even get information from you\'re current app like API keys, passwords ,etc... Now I\'m not going to do any of that, because I\'m a nice person, but come on app writers! Take security a bit more seriously!!');
@Hunter-Dolan
Hunter-Dolan / gist:1069527
Created July 7, 2011 13:42
automagically.php
<?php
header('Location: https://team.studio182.net/');
?>
function hash() {
var page = document.location.hash.replace('#!/', '');
if (page == ''){
page = 'home';
}
return page;
}
<?php
echo "<center><h1>Just so you know... I'm awesome!</h1><br><br><h3>-HD</h3></center>";
echo"<center><form action='?'>Enter DNA Code Here: <input name='dna'><br><input type='submit' value='Convert!'><input type='hidden' name='process' value='true'></form>";
if(isset($_GET['process'])) {
echo "<br><br><br>Your mRNA Code is: <b>";
$dna= str_split($_GET['dna'], 1);
$mrna = array();
foreach ($dna as $l) {
@Hunter-Dolan
Hunter-Dolan / Made By HD Credit
Created January 29, 2011 21:59
Gives Me Credit!
<div id="credit"><style>#credit {font-family: "Lucida Grande", Verdana, Arial, sans-serif;font-size: 23px;}#credit mbhdc {background: #f0f0f0;padding:15px;word-spacing: 1px;letter-spacing: -2px;color: #b9b9b9;text-align: center;text-shadow: 0px -1px 0px #7b7b7b;font-family: Helvetica, Verdana, Arial;background-position: 5px 5px;background-repeat: no-repeat;widows: 0;-webkit-border-radius: 5px;-moz-border-radius: 5px;-moz-box-shadow: inset 0 0 2px 2px #707070;-webkit-box-shadow: inset 0 0 2px 2px #A9A9A9;box-shadow: inset 0 0 5px 5px #707070;}#credit mbhd a{word-spacing: 1px;letter-spacing: -2px;color: #b9b9b9;text-align: center;text-shadow: 0px -1px 0px #7b7b7b;font-family: Helvetica, Verdana, Arial;widows: 0;text-decoration:none;}#credit mbhd a:hover {border-bottom: 3px #b9b9b9 dashed;}#credit mbhd.donate a{margin-left:10px;color: #00bc80;text-decoration:none;}#credit mbhd.donate a:hover {border-bottom: 3px #00bc80 dashed;}</style><mbhdc><mbhd><a href="madebyhd.co.cc">Made By HD</a></mbhd> |<mbhd class="dona
@Hunter-Dolan
Hunter-Dolan / rawhttpjsonip
Created January 8, 2011 02:35
Raw HTTP Request Data of Json IP
Data should go here