Shell script CudaMiner helper. Hopes to provide simplicity of initializing mining jobs and monitoring them across different machines.
- Works flawlessly with GTX 660Ti Reference
- No dual-GPU support yet; if demanded, will supply
| <?php | |
| //set up pods::find parameters to limit to 5 items | |
| $param = array( | |
| 'limit' => 5, | |
| ); | |
| //create pods object | |
| $pods = pods('pod_name', $params ); | |
| //check that total values (given limit) returned is greater than zero | |
| if ( $pods->total() > 0 ) { |
| # Redirect "olddomain.com/..." to "newdomain.com/..." URLs at the cache level. | |
| # Just set an error code (in our case 750) in vcl_recv when accessing old urls, then define the redirect in vcl_error. | |
| # Tested with Varnish 3.X | |
| sub vcl_recv { | |
| # Set error code when accessing an old url. | |
| if (req.http.host ~ "^(www\.)?olddomain\.com$") { | |
| error 750; | |
| } | |
| } |
| location /redirect/ { | |
| rewrite ^/redirect/(.*)$ /redirect/index.php?id=$1 last; | |
| } |
| <?php | |
| /* | |
| As the title implies, this will give you a way to | |
| 1. output a complete list of terms for a given taxonomy (nothing special there) | |
| 2. highlight the terms that the current post has (the magic!) | |
| Probably need to figure out a better way to echo out the url of the term archive page... | |
| */ |