Separately compress all sub folders

7-ZipI started using WordPress for this blog when it launched in June 2011 until last year when, with Gutenberg on the horizon, I migrated to ClassicPress. This migration was easy as ClassicPress is a hard-fork of WordPress 4.9. As part od the migration I opted to rewrite all of my plugins to improve them and make them more secure.

I have 32 publically available plugins for ClassicPress. I’ve recently made changes to all of the plugins which means I need to make a release of them.

This partly done by committing the changes to Git Hub and making a tag, but you also need to add a zip file. There are commands to do this automatically on GitHub, but I am quote new so am opting to create the zips myself and upload them.

To do this I wanted to automatically compress all of the plugin folders, but exclude any hidden folders (such as the .git folder). I did some exploring and found the required command on Stack Overflow using 7-zip:

for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a -xr!.git\ -xr!*~ "%%X.zip" "%%X\"

The question which had previously been asked was this one and the two answers I used were this and this.

Prepare New SD Card For Raspberry Pi OS: Conclusion

Raspberry PiThis post is part of the series on preparing a new SD card to install a new Raspberry Pi operating system; this series is a sub-series of the Adventures with a Raspberry Pi.

With the SD Card Formatter tool, it is easy to create a bootable SD card for the Raspberry Pi.

I’ve used the tool to install NOOBS, but there are a number of other OSes available. However, if you go with NOOBS, it includes a few different operating systems, some of which allow additional software to be installed (suchas Rasbian Lite which I used when installing a Pi-hole).

Adventures With A Raspberry Pi

Adventures With A Raspberry Pi
Building The Raspberry Pi: CanaKit Raspberry Pi 3 B+ Complete Starter Kit
Building The Raspberry Pi: Raspberry Pi Build
Building The Raspberry Pi: Install Operating System
Building The Raspberry Pi: First Run
Building The Raspberry Pi: System Configuration Tool
Building The Raspberry Pi: Enable SSH For Remote Access
Building The Raspberry Pi: Securing the Raspberry Pi
Building The Raspberry Pi: Conclusion
Installing Pi-hole On A Raspberry Pi: What is Pi-hole?
Installing Pi-hole On A Raspberry Pi: Install Pi-hole
Installing Pi-hole On A Raspberry Pi: Change Pi-hole Admin Password
Installing Pi-hole On A Raspberry Pi: Configure Network to use Pi-hole
Using Pi-hole On A Raspberry Pi: Blocked Adverts
Using Pi-hole On A Raspberry Pi: Admin Interface
Using Pi-hole On A Raspberry Pi: Disabling Pi-hole
Using Pi-hole On A Raspberry Pi: Whitelisting a Site
Using Pi-hole On A Raspberry Pi: Update Blocklists
Using Pi-hole On A Raspberry Pi: Maintain Blocklists
Using Pi-hole On A Raspberry Pi: Change DNS Servers
Using Pi-hole On A Raspberry Pi: Connecting With SSH
Using Pi-hole On A Raspberry Pi: Updating the Pi-hole
Using Pi-hole On A Raspberry Pi: Conclusion
What Else Can I Use It For?
Prepare New SD Card For Raspberry Pi OS: Download SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Format SD Card
Prepare New SD Card For Raspberry Pi OS: Download NOOBS
Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card
Prepare New SD Card For Raspberry Pi OS: Conclusion

Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card

Raspberry PiThis post is part of the series on preparing a new SD card to install a new Raspberry Pi operating system; this series is a sub-series of the Adventures with a Raspberry Pi.

With NOOBS downloaded, extract the files from the zip file:

NOOBS zip file

Continue reading “Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card”

Prepare New SD Card For Raspberry Pi OS: Download NOOBS

Raspberry PiThis post is part of the series on preparing a new SD card to install a new Raspberry Pi operating system; this series is a sub-series of the Adventures with a Raspberry Pi.

You have two options for operating systems available directly from Raspberry Pi; NOOBS and Raspbian.

NOOBS is the New Out Of Box Software which contains several operating systems accessible via an easy to use launcher.

Raspbian is the full Raspberry Pi operating system.

I have opted to use NOOBS for my micro-SD card as it includes a recovery console (hold down the shift key during boot). Download NOOBS from the Raspberry Pi downloads page. Click the large NOOBS image:

NOOBS download page

Continue reading “Prepare New SD Card For Raspberry Pi OS: Download NOOBS”

Prepare New SD Card For Raspberry Pi OS: Format SD Card

Raspberry PiThis post is part of the series on preparing a new SD card to install a new Raspberry Pi operating system; this series is a sub-series of the Adventures with a Raspberry Pi.

With the SD Card Formatter Installed, it is time to format the SD card. Place the SD card into the card reader and launch SD Card Formatter from the Windows start menu.

Make sure the corrected card is selected and mark Overwrite Format and then click Next:

SD Card Formatter

Continue reading “Prepare New SD Card For Raspberry Pi OS: Format SD Card”

Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter

Raspberry PiThis post is part of the series on preparing a new SD card to install a new Raspberry Pi operating system; this series is a sub-series of the Adventures with a Raspberry Pi.

With the SD Memory Card Formatter downloaded, we can now install it.

Extract and launch the application from the downloaded zip file:

Downloaded and extracted application

Continue reading “Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter”

Prepare New SD Card For Raspberry Pi OS: Download SD Card Formatter

Raspberry PiThis post is part of the series on preparing a new SD card to install a new Raspberry Pi operating system; this series is a sub-series of the Adventures with a Raspberry Pi.

I am using a large capacity micro-SD card for install the new OS and it is recommended to use the SD Memory Card Formatter from the SD Association.

You can download the tool from here. Scroll down to the bottom of the page and click the blue For Windows button.

Continue reading “Prepare New SD Card For Raspberry Pi OS: Download SD Card Formatter”

Disable AutoSave OneDrive and SharePoint Online Files by Default on Excel

OneDriveI recently got a new laptop at work which meant getting all applications installed. Previously I’d had Microsoft Office 2016 installed; on the new laptop I got Microsoft Office 365 which came with AutoSave enabled by default in all of the applications, such as Excel and Word, for files opened from SharePoint Online:

Microsoft Excel autosave on

Continue reading “Disable AutoSave OneDrive and SharePoint Online Files by Default on Excel”

Install New Theme In Notepad++

Notepad++I did a post a little while ago on changing the theme in Notepad++, which was brought about by preferring to use dark themes in a lot of apps (such as Outlook.com and here on azurecurve|Ramblings of a Dynamics GP Consultant). With Notepad++ I’ve found that I don’t actually like any of the default dark themes so took a look round to see if I could add a new one.

Fortunately, it is possible and there are a number of themes people have created which can be downloaded and used. In this post, I’m going to show how to install and use a new theme.

The theme I have decided to try is Dracula:

Dracula: A dark theme for Notepad++ and 50+ apps

Continue reading “Install New Theme In Notepad++”