Cisco NAC (Clean Access) CLI Commands.

I can never find these when I want them…

also, from the release notes show version…

cat /perfigo/build

.. there are some other useful scripts in /perfigo/common/bin such as

/perfigo/common/bin/fostate.sh

… is used for checking failover state, if you can think of any more please post them in the comments ;)

#lastweek

I’ve heard and read a lot of grumbling about how twitter/facebook status’s pose security issues, and to be honest I’m not going to disagree; if I post an update stating “this big mac is cold” it’s an indication that I’m in a macdonalds and not at home, the fact that the twitter timeline shows “from mobile web” or “from iphone appX” only re-enforces the issue.

Some recent news coverage on digg has prompted some “that’s not the same for me!” type responses; just because you don’t have a house full of video equipment doesn’t mean you don’t have something worth stealing, maybe you don’t live alone or you house isn’t empty when you tweet, would you want your loved ones put at risk?

The most secure approach would be not to tweet… but where’s the fun in that? … another step is to not post location based tweets… “this laptop is running slow” … doesn’t give anything away, I might be at home, I might not…. a lot of old-skool tweeters always recommend counting to 10 before hitting send (similar to the sleep on blog concept) to ensure that your current mood is appropriate for the web.

So now we come to why I’m posting, in the same way we obscure / hide information about what services we run on our computers / networks, is there a way to obscure the time at which we tweet? Well the tweet time will always be there – that’s what twitter wants – but the content is up to us. I propose a last week hash tag#lastweek - this tag suggests that the status isn’t now, it happened at some point in the past.

Of course this approach is no more effective than leaving the light on when you leave the house, but it does add some uncertainty… if my living room light is on it could be because I’m sat in there, or it could be because I left the light on when I went to the restaurant… if I tweet “#lastweek meal at Joes rocked!” it suggests I’m not at Joes and where I am now is debatable.

What’s interesting is that as with all things on the internet, this idea isn’t original; there are posts tagged like this already, I wonder if these status’s really did happen last week? With this is mind I wonder what my next tweet will be? “#lastweek blogging” maybe? :-P

Submit Bugs to TRAC

Support for linickx plugins has always been community driven, but recently I’ve had a few bugs and patches submitted via email.

To make like simpler I’ve found that I can track bugs using trac – bad pun!

Here are some links :)

The difference between the two is simple: if you want help then click the support link if you want TO help then file a bug or submit a patch :)

phpbb_recent_topics_0.5.3

0.5.3 is a minor update which fixes this issue whereby some users got this error in their admin screens


Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/phpbb-recent-topics/display/admin-options.php on line 144

If you don’t have this issue upgrading is optional, download from the usual place!

LINICKX is Folding @ Home

The PS3 has this slightly irritating flaw in that to charge the wireless controllers you need to have the playstation powered on (i.e. you can’t charge with the PS3 on standby).

To this ying there is a yang; as the PS3 is on anyway I like to donate the power to the
Folding @ Home project
, what’s nice is they give me a cool stats page to follow my progress…

I think the guys should configure some kind of RSS Feed for each completed work unit so we can share the love in a lifestream :)

phpbb_recent_topics version 0.5

UPDATE: This Plugin has been updated, please download the update from http://wordpress.org/extend/plugins/phpbb-recent-topics/, and please comment on the new post, thanks.

Screenshot phpbb_recent_topics admin page

Screenshot phpbb_recent_topics admin page

Admin GUI

Version 0.5 is the first enhancement update to php_recent_topics for a looooooonnnng while!

Actually it’s taken me soo long to finish that we’ve jumping straight into 0.5.2 0.5.3 which includes bug fixes from 0.4.1 & 0.4.2

There are four notable changes, two minor, two major :D

Minor CHANGE 1: You should notice the admin page don’t look so rubbish, we’re now using the new CSS provided by the WordPress team!

Minor CHANGE 2: The SQL syntax now excludes SPAM from being shown up in the wigdet by only selecting “Approved” posts, thanks Ashish.

Major CHANGE 1: The admin page now has the option for excluding forums from being displayed by the widget, this was one of the most requested features but please be advised this change means there are New database permissions required for upgraders!
Before you did GRANT SELECT ON phpbb_database.phpbb_topics TO wp_user@localhost; NOW DO THIS TOO….

GRANT SELECT ON phpbb_database.phpbb_forums TO wp_user@localhost;

Major CHANGE 2: The plugin now supports “Insecure” Database connectivity, getting the plugin to talk to the PHPBB DB seemed to be the biggest hurdle for most, so I’ve added a simpler way to keep my SPAM down. This approach is not recommended as the plug-in stores your PHPBB DB credentials IN CLEAR TEXT in the WordPress database. As a side effect from this is, now users can connect to a PHPBB database installed on a different server to WordPress – This suggestion actually came from someone called Nedim.. Thanks!

Some of the usual information now follows….

Download phpBB_Recent_Topics_0.5.2 from wordpress.org

The Installation

Before starting you need to get your database configuration sorted. So, are you going to connect to the PHPBB Database securely or Insecurely?

To connect Securely you need to GRANT access TO WordPress FROM phpbb.

How to GRANT wordpress read only access to phpBB ?
If you don’t know it already you need to find your wordpress mysql user id, it’ll be in wp-config.php

define('DB_USER', 'wp_user');     // Your MySQL username

and you should have already found your phpbb database & table for the above.
You need to type the following syntax into your mysql database

GRANT SELECT ON phpbb_database.phpbb_topics TO wp_user@localhost;

AND

GRANT SELECT ON phpbb_database.phpbb_forums TO wp_user@localhost;

this can be achieved by logging into phpmyadmin as your phpbb user, selecting SQL and pasting the correct GRANT into the text box.

WordPress Installation

  • Unzip phpbb_recent_topics.tgz in your `/wp-content/plugins/` directory. (You’ll have a new directory, with this plugin in /wp-content/plugins/phpbb_recent_topics)
  • Activate the plugin through the ‘Plugins’ menu in WordPress
  • Configure the plugin, you need to tell wordpress about phpbb, this is done in the wordpress menu ‘Settings’ -> ‘phpBB Recent Topics’
    The following Settings are required:

    • * The name of your phpBB database (e.g phpbb)
    • * The name of the table where topics are held (the default is phpbb_topics )
    • * The full url of your forum for links (e.g. http://www.mydomain.com/forum)
    • * The number of topics to show. (If left blank you get 5)
    • * The Date Formatting, i.e. “d/M/y – g:i a” similar to the WordPress “General Settings”
  • The use of Insecure connectivity is optional – See Below
  • Tick the boxes of any Forums you don’t want this plugin to show posts from
  • Hit ‘Update Options”
  • To output the list of topics in a page or post…
    • * create a new page/post, type {phpbb_recent_topics} , hit ‘Publish’ or ‘Create new page’

    To output the list of topics in your theme sidebar using the widget…

    • * click “design” in the dashboard
    • * click “widgets”
    • * next to phpBB Recent Topics click “add”
    • * click “save changes”

    To output the list of topics in your theme sidebar using a template tag…

    • * edit sidebar.php and inside <div id=”sidebar”> type…
      <?php
      if (function_exists('phpbb_topics')) {
      phpbb_topics();
      }
      ?>

What is Insecure MySQL Connectivity & How do I use it?
If you need to you can connect in a less secure manner, the connection details held in your PHPBB config.php can be loaded into WordPress. This is insecure becuase the phpbb3 credentials are store in clear text, this is bad cuase if someone somehow comprised WordPress they’d have full access to PHPBB.

To use, tick the “Enable Insecure Database Connection” box, and submit, when the page re-freshes you’ll have some more boxes to populate, from your phpbb config.php fill in


$dbuser = phpbb MySQL Database UserName
$dbpasswd = phpbb MySQL Database Password
$dbhost = phpbb MySQL Server

Click update, and you should be connected!

Support
I’ve always been honest about support, there isn’t any. Basically I write this for my own needs and then publish it for you to use for free. You’re more than welcome to post comments here and if you tag wordpress forum posts with “phpbb-recent-topics” I’ll reply to you there, but we all have busy lives and I make no promises on how quickly I’ll reply to you.

Link for posting in the correct phpbb-recent-topics forum

Finally Subversion
The source for this plugin is in the wordpress subversion, you can download it directly from here; and when wordpress.org re-crawls my readme the latest version will also be available on wordpress.org/extend/plugins/

I hope you enjoy my plug-in!

Follow plug-in development progress

The WordPress plugin trac is a really cool resource, one of my favourite features is the commit log.

Development progress of linickx plugins is always going to be slow because I have a day job but when I find the time to develop updates I try to commit them to the community as often as I can so users can stay in the loop…. The thing is users don’t necessarily know the log is there, so here’s a couple of links for you…

If you want test drive my development versions on your blog you can download them from wordpress.org here and here respectively, feel free to submit patches to fix bugs or implement features, I’m always open to suggestions and work is always accredited appropriately.

Introducing root cookie 1.5 now with subdomain support!

UPDATE: This Plugin has been updated, please see the new post, comments here are now closed.

A long time ago Sc0ttClark came to me and suggested that his cookie subdomains plug-in & my cookie path plug-in should be merged…. well I’ve finally done it!

There was a little delay in the release as the initial code only worked for top level .com, .net & .org style domains but a simple “manual” option in the admin screen now allows you to set the domain name, so longer domains like .co.uk can be supported!

All previous functionality is supported, just by enabling the plug-in the path is stripped out you only need to go into the admin page if you want to change the subdomain of the cookie.

The admin page now has a “News & Tutorials” feed (subscribe) my plan is to post articles on how to use root-cookie.

You can download the plugin from wordpress.org, and there is a discussion forum to get community support.

Twitter Tools is for Twitter Tools

Those with a keen eye may have noticed that my tweets / status updates didn’t start with “is” until recently that’s because posts that appeared here on my blog would look stupid and out of context, who starts a post “is” ???

To solve the problem attached is a small plugin for Alex Kings Twitter Tools, it’s a simple WordPress filter which prepends posts which begin with “is” with the author name, example:

is testing his new WP plugin.

becomes

Nick is testing his new WP plugin.

If I get some positive feedback I might publish this in WP’s plugin directory.

Installation is easy, rename twitter-tools-is.txt to twitter-tools-is.php and save it in your wp-content/plugins directory, enable the plug-in the “normal” way and job done, no further configuration required!

Hitting the red line is unsettling

Image