Skip to content

Instantly share code, notes, and snippets.

@DamianZaremba
DamianZaremba / syntax.py
Created December 20, 2009 21:59 — forked from sarahhodne/syntax.c
Playing with ruby vs other langs
if 2 + 2 == 4:
print "OHAI"
else:
print "WTF"
@DamianZaremba
DamianZaremba / fail
Created April 2, 2014 19:09 — forked from anonymous/fail
Url: http://www.carbonhire.com/[email protected]
PHP warning
mysql_connect(): Access denied for user 'geniushire'@'10.147.146.186' (using password: YES)
/var/app/current/track.php(12)
01 <?php 02 03 define('CRONJOB', TRUE); 04 include("index.php"); 05 06 $email = isset($_GET['email']) ? $_GET['email'] : ""; 07 $hash = md5("carbon".$email); 08 setcookie("guid", $hash, time() + (10 * 365 * 24 * 60 * 60), "/", "carbonhire.com"); 09 //print_r($_COOKIE); 10 header("Location: http://hastrk1.com/serve?action=click&publisher_id=59998&site_id=47256&offer_id=274954", true, 302); 11 12 $link = mysql_connect('geniushire-real-1.cbuqrrbjabbr.us-east-1.rds.amazonaws.com', 'geniushire', ';kcvGayqe05t4!?'); 13 if (!$link) { 14 die('Could not connect: ' . mysql_error()); 15 } 16 17 mysql_select_db("geniushire_real_new", $link) or die('Could not select database.');$sql = "UPDATE gh_central SET cookie_id = '".$hash."' WHERE email = '".$email."'"; 18 if($email != ""){ 19 $sql = "UPDATE gh_central SET