Author: jbmurphy

  • Quick check if a mysql database exists

    Here is my bash code that checks if a db exists before I try to create one in a script: This will exit out if there is a database with the name you are searching for. The tricky part for me (and always is) was this double quotes inside the single quotes in the LIKE…

  • Rackspace Cloud Files download script

    A new(er) tool in the services I use/recommend is Rackspace Cloud servers and Rackspace Cloud Files. We were evaluating cloud services to host client websites, and I ended up choosing Rackspace’s cloud offerings. I really like the services the provide. With their Cloud files, I can upload files that can be accessed anywhere. I decided…

  • Waking a sleeping Mac Pro upon opening a folder

    Scenario I have two macs at home, a MacPro and a MacMini. The MacMini is attached to our TV. I put my MacPro to sleep when I leave for work in the morning. My wife comes home and tries to play videos for my son on the Mac Mini. The videos are actually on the…

  • A second addition to my PowerShell install script

    I added even more functionality in my PowerShell install script (original script, and first update). I wanted the ability to display an informational popup to let the user know what we were up to. The function below takes the text to display from the config xml file and displays it in a windows form, with…

  • An update to my new PowerShell install script

    I needed new functionality in my PowerShell install script (previously mentioned here). I needed the ability to make sure a process is not running, and if it is running, I could prompt the user to close it. The new function takes the process name value from the config xml file (as I mentioned in previos…

  • My new PowerShell install script

    I wanted to write a PowerShell script that can execute common activities involved in deploying software. We require signed PowerShell scripts, so it was not practical to rewrite the script for every piece of software. Instead, I moved the configuration to an XML file. The first function below takes an object (pulled from the XML…

  • SCCM afterbackup.bat

    Our current SCCM backup is targeted to DFS share pointed to our backup server. We dump files to this share and the local files are backed up to tape (really to disk then replicated to tape.) I never sat down and figured out how to get multiple backups rotating in SCCM until I saw this…

  • Finding diffs between clean and modified versions of WordPress

    We have an issue where our developers try to update the core WordPress files. I wanted to find a way to keep them honest. here is my script:

  • Pseudo workflow approval with out SharePoint Workflows.

    I wanted to have a form that a person would submit (for an example a request of some type) and then it would be approved by the appropriate people. I find the built in workflow functionality too limiting and too difficult for users, so this is what I came up with: I would have one…

  • Powershell script to find and run advertisements that are set to run when NoUserLoggedOn

    I have been thinking about how to launch a SCCM package/program before logon. If the user logs on before SCCM executes (like right after a reboot), the NoUserLoggedOn requirement will not be met. GPO software deployment handles this by not allowing the user to log in until the software is installed. What happens if you…