John Turner seedprod

View gist:2995920
1 2 3 4 5 6
$product_details = seedprod_get_product_info($slug);
$api_key_details = seedprod_get_api_key_info($api_key);
$version = trim($product_details['version']);
require_once 'amazons3-php/sdk.class.php';
$s3 = new AmazonS3();
$download_link = $s3->get_object_url('static.seedprod.com', 'files/'.$slug.'-'.$version.'.zip', '48 hours');
View vt_resize.php
1 2 3 4 5 6 7 8 9 10
<?php
/*
* Resize images dynamically using wp built in functions
* Victor Teixeira
*
* php 5.2+
*
* Exemplo de uso:
*
* <?php
View gist:1181262
1 2 3 4 5 6 7 8 9 10
<input type="text" name="my-theme-options[color]" id="color" />
<input type='button' class='pickcolor button-secondary' value='Select Color'>
<div id='colorpicker' style='z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;'></div>
 
// Color Picker for js file
$('.pickcolor').click( function(e) {
colorPicker = jQuery(this).next('div');
input = jQuery(this).prev('input');
$(colorPicker).farbtastic(input);
colorPicker.show();
View hhwebservcie.php
1 2 3 4 5 6 7 8 9 10
<?php
//include("web_services_util.php");
 
$client = new SoapClient ( "https://server:8443/ws/services/AssetOperationService?wsdl", array ('trace' => 1 ) );
$auth = array ('username' => 'username', 'password' => 'password' );
$id = array ('type' => 'page', 'id' => '261f20de8a4e31910086b7bbfb175968' );
$params = array ('authentication' => $auth, 'identifier' => $id );
 
// publish asset
$reply = $client->publish ( $params );
View example-page.php
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<!--#START-ROOT-CODE
<?php
$docRoot = '/var/www/html';
require_once($docRoot .'/scripts/global-pre.php');
?>
#END-ROOT-CODE-->
 
<head>
View changeowner.sh
1
for i in /home/COUGARS/*;do base=$(basename $i); chown -R $base:'domain users' $i; done
View googleHacks.py
1 2 3 4 5 6 7 8 9 10
#Find out if your site can be found via google dorks
 
from BeautifulSoup import BeautifulSoup
import re
import urllib2
 
siteURL = "johndturner.com"
#get ghdb page. iterate through all links available
page = urllib2.urlopen("http://www.hackersforcharity.org/ghdb/")
soup = BeautifulSoup(page)
View yql-cross-domain.html
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cross Domain Request without busting YQL's cache</title>
<style type="text/css">
#request { text-align: center; }
</style>
</head>
<body>
View remiupgrade.sh
1 2 3 4 5
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
# yum remove php-mysql
yum --enablerepo=remi update php
View seatmap.js
1 2 3 4 5 6 7 8 9 10
var isHttps = false;
var yuiVersion = '2.5.2';
function includeJavaScript(jsFile)
{
document.write('<script type="text/javascript" src="'
+ jsFile + '"></script>');
}
function includeCSS(cssFile)
{
document.write('<link rel="stylesheet" type="text/css" href="'
Something went wrong with that request. Please try again.