Custom WordPress Pages using Templates

I was migrating a fairly static website to a wordpress recently when i had to create some dynamic custom pages using PHP.

Information seemed hard to find, though perhaps it was just my lack of knowledge in search terms for it?

<?php include(’wp-blog-header.php’); ?>
<?php get_header(); ?>
<!– Put here your personal contents in HTML or PHP –>

<!– End personal contents –>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Either way, this is the general gist

Easy yes? good! Thanks!

SSH proxy

ssh -D installs a local SOCKS proxy which terminates sockets on the remote ssh endpoint.

e.g. ssh -D 9000 $remote_host

Set your local SOCKS proxy to 127.0.0.1:9000. Any local clients that are SOCKS-capable will have their outbound connections established from $remote_host.

No squid required.

Use http://www.whatismyip.com/ before and after to check you are using the new IP address

hacking tweetwall voting with wget and shell scripting

#!/bin/bash
# copious amount of useless comments 3 pages longer than the code should always be at the top of any shell script
# This is so you can run screen and vote for some person lots without looking like some automated voting system
# Feel free to use this, but please keep my name/website etc on it (need the fame ya know)
# I'm not gonna walk you through it, if you dont understand it then dont use it
# Yes im sure you could do better!
# Don't forget to edit it
# Written by Liz Quilty http://velofille.com

RAND=`dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" " |cut -c1-4`
if [ $RAND -lt 1200 ]; then RAND_SLEEP=$(($RAND+200)) ; else RAND_SLEEP=$RAND;fi

while [ 1 ] ; do
# the below line wgets the link the 12345 is the users number and the 45 is country number (view web page for these) - Edit this line to reflect user/url
wget --referer=http://tweeterwall.mallplace.com/tw/new-zealand/top-something-url -U Mozilla http://tweeterwall.mallplace.com/tw/vote/12345/45
sleep $RAND_SLEEP # sleep for random time before voting again
done