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 | |
pantheon-terminal -e "peerflix \"$1\" -v --clean" | |
sleep 1 | |
rm -rvf /tmp/torrent-stream/* | |
#Assuming that you're using panthon-terminal and you have installed nodejs and peerflix | |
#Save this file as a script, paste it anywhere, chmod u+x on it. | |
#In your browser click on a magnet link, point it to your new script and voila | |
#NOTE: !!! You can use xterm instead of pantheon-terminal if you like. |
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 Envato | |
{ | |
protected static $key = ""; | |
protected static $username = ""; | |
public static function verify( $code ) |
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 | |
/* Plugin Name: X-Frame-Options | |
Description: Simple X-Frame-Options Manager | |
Author: Zenger | |
Author URI: http://1theme.com/ | |
*/ | |
$setting = "http://themeforest.net/"; | |
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
// IMPORTANT ! Use "wp_enqueue_media()" to enqueue the media manager | |
/* | |
Usage : | |
Media( jQuery('my-element'), { title: "Select" } , function(img) { | |
// do something with the img (note for multiple is going to be an array!) | |
}); | |
*/ | |
function Media(element, settings, cb) | |
{ | |
this.settings = jQuery.extend({ |
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 Envato | |
{ | |
protected static $key = ""; | |
protected static $username = ""; | |
public static function verify( $code ) |
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 LazyRecursiveMove | |
{ | |
var $files = array(); | |
var $dest = array(); | |
var $from = ""; | |
var $to = ""; | |
function build_move_array( $from , $to, $parent = "" ) |
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 | |
define('APIKEY', 'your-api-key'); | |
$request = file_get_contents('https://www.googleapis.com/webfonts/v1/webfonts?key='. APIKEY); | |
$fh = fopen('list.txt', 'w'); | |
fwrite($fh, $request); | |
fclose($fh); | |
$content = json_decode($request) ; |
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 sOption { | |
var $field; | |
public function __construct( $name = 'setting', $label = 'Your Setting', $type = 'text', $screen = 'general' ) | |
{ | |
$this->field->name = $name; | |
$this->field->type = $type; | |
$this->field->screen = $screen; |
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 | |
/** | |
* @modified: Zenger | |
* Safe Search and Replace on Database with Serialized Data v2.0.1b | |
* | |
* This script is to solve the problem of doing database search and replace when | |
* developers have only gone and used the non-relational concept of serializing | |
* PHP arrays into single database columns. It will search for all matching | |
* data on the database and change it, even if it's within a serialized PHP | |
* array. |
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 Utils | |
{ | |
public static function init() | |
{ | |
self::header_cleanup(); | |
} | |
public static function header_cleanup() |
NewerOlder