Tyghe Vallard

Programmer and Sysadmin

  • Increase font size
  • Default font size
  • Decrease font size
Latest Projects

Drobo Picture Sync

I noticed the need to make sure my pictures were always backed up to my Drobo, however, I did not want to use something like Time Machine from my mac because of how unconfigurable it really is. What I really wanted was to have my pictures that I download from my camera onto my laptop to automatically sync to the Drobo, but I didn't want them to be deleted from my laptop nor did I want the pictures already on my Drobo to be synced down to my laptop(way too many)

What I did was I built a simple script that mounts a Drab via a DroboShare and then another script that runs a simple rsync to sync pictures from my laptop to the mounted drobo.

The whole process is split into two scripts

mountdrobo.sh

and

syncpictures.sh

This allows me to use the mountdrobo.sh script from any other script in the future as you can use the isDroboMounted function after sourcing the script

You will have to edit the scripts and fill in the variables to make it work on your machine

The mount drobo is semi mac specific with the mount_smb command so you may want to change that to smbmount or mount.smbfs on linux

Attachments:
Download this file (mountdrobo.sh)mountdrobo.sh[Mounts a drobo share over the network]1 Kb10/07/10 00:11
Download this file (syncpictures.sh)syncpictures.sh[Syncs pictures from one directory to another]1 Kb10/07/10 00:11
Last Updated on Saturday, 10 July 2010 00:13
 

MSU Weather

I thought it would be a fun task to build a plugin that fetches the current temperature from the College of Engineering's weather station. Here it is.

 

Attachments:
Download this file (msuWeather.zip)MSU Weather[MSU Weather Plugin for Wordpress]2 Kb09/12/09 15:46
Last Updated on Wednesday, 09 December 2009 15:47
 

Cacti

An important part of sysadmining is being able to figure out when things happen. This isn't always an easy task to figure out. Sure you can dig through logs and spend lots of time doing that to figure out where and when problems exist. There is an easier and more fun way to help yourself. 

Attachments:
Download this file (d2luserstats.sh)D2L Stats Parser[Converts the output of getd2lstats.pl to the format Cacti wants]0 Kb24/11/09 11:17
Download this file (getd2lstats.pl)Get D2L Stats[Fetches all information about D2L Logins from Ldap Log File]0 Kb24/11/09 11:15
Download this file (LdapLogStats.py)Ldap Log Stats[Generates number of connections for each type of connection from an ldap log]7 Kb24/11/09 12:12
Last Updated on Tuesday, 24 November 2009 12:13 Read more...
 

Gravatar Header Image

 The header_image function in Wordpress generally just pushes out either what is defined in the HEADER_IMAGE variable. For the theme that I use that image is a 110x110 avatar image that they want you to upload an image of yourself or whatever to put in your theme.

For me, I took this a bit further and started modifying the header_image function of wordpress so that it would instead push out my Gravatar image which worked great...until I upgraded Wordpress. When you upgrade it rewrites all the main functions which of course overwrote my custom modifications. This is of course why you don't modify those functions in the first place. So I decided to take the correct approach by writing a plugin to do it for me.

This is my first plugin so bare with me, although, I don't think its too far off from what is 'correct' as far as programming Wordpress plugins goes.

 

Attachments:
Download this file (gravatar_header.zip)Gravatar Header Image[Gravatar Header Image Wordpress Plugin]1 Kb25/11/09 00:14
Last Updated on Wednesday, 25 November 2009 00:14
 

Support Site

Recently I have had the need to create a project management portion of my website to manage all of the different sites that I run. I'm also using it for other things. At work we use a software package called Redmine which I liked a lot so I decided to install it.

This allows me to have a support email that automatically creates tickets for me as well as emails me when new tickets are created.

You can view the support site at http://support.tygertown.us

 
More Articles...
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  Next 
  •  End 
  • »


Page 1 of 3

Site Stats

Members : 3
Content : 14
Content View Hits : 1203