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
// The Base Function | |
wp_redirect('http://www.urlofsite.com/path/to/location',301); | |
/* This needs to be run on an action, or at least I wanted able to get it to run outside of an action, I suggest template_redirect */ | |
// In Use Example | |
add_action('template_redirect', 'redirect'); | |
function redirect(){ | |
if($redirect){ | |
wp_redirect(get_bloginfo('url').'/wp-content/plugins/redirector/site/index.php',302); |
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
from multiprocessing.managers import BaseManager | |
from mathenate import mathenate | |
#Define manager | |
class QueueManager(BaseManager): pass | |
QueueManager.register('get_job_queue') | |
QueueManager.register('get_result_queue') | |
#Connect to server | |
m = QueueManager(address=('my.computer.org', 50000), authkey='password') |
NewerOlder