Enable Flight Mode on Lenovo Ideapad 700 (80RU)

So I recently purchased a Lenovo Ideapad 700 (80RU) and as a good geek, the first thing I did was wipe the drive, deleting all traces of any Lenovo pre-installed software…which was not much.
Anyways, the machine runs great except one small feature that I could not get to work which was enabling the flight mode toggle on my keyboard.
Would I actually ever use this? Not sure? Could I simply not enable/disable flight mode manually? Yes. Did it bug the crap out of me that it was not working? Absolutely.
Continue reading “Enable Flight Mode on Lenovo Ideapad 700 (80RU)”

MiniDLNA paths in OpenWRT

I’ve recently made the switch from using DD-WRT to OpenWRT (https://openwrt.org/) which is essentially what DD-WRT is based on. I now have a much leaner, cleaner and more control over my router.

One thing that has bugged me was that I decided to enable MiniDLNA on the router but was having issues getting it to recognize folders correctly.

The note on the miniDLNA setup screen read:

Set this to the directory you want scanned. If you want to restrict the directory to a specific content type, you can prepend the type (‘A’ for audio, ‘V’ for video, ‘P’ for images), followed by a comma, to the directory (eg. media_dir=A,/mnt/media/Music). Multiple directories can be specified.

Continue reading “MiniDLNA paths in OpenWRT”

Backup and replace PFX certificates in PowerShell

I recently wrote a PowerShell script that will back and replace a certificate as well assign permissions to the private keys.

Basically, what this script does is:
– First checks if the certificate you want to import exists or not
– Perform a back-up of the certificate
– Import the private certificate
– Assign the Everyone group read access on the private key
– Import the public certificate
Continue reading “Backup and replace PFX certificates in PowerShell”

Now serving SSL

I’ve decided to add SSL support to this site on an effort to make the Internet and your browsing experience just a little safer. You should notice that all HTTPS requests are now being served as HTTPS.

Pretty cool!

Automated WordPress backup via Linux Shell

I am using No Support Linux Hosting as my webhost, mostly because it’s cheap ($12/year!) and meets my needs for hosting.

One thing about my host is, well, no support! So if anything goes wrong or I have some technical questions I’m on my own. With that in mind, I wanted to implement a solution that would allow me to copy the WordPress backups generated by Softaculous in case something happens with my host.

The goal: total automation of the backup and email notification once the job was completed, and I think I’ve come up with very nice process to accomplish just that.
Continue reading “Automated WordPress backup via Linux Shell”

Delete files older than X days

Here’s a quick portion of a PowerShell script I used that will delete files older than X dates from the current date.

Simply change $days to the number of days. In this example, all files older than 7 day will be deleted.

Note that this will only delete the files in the given $path. If you wanted to delete all the sub files/folders in $path, add the -Recurse switch: