Very simple relative time formatting:
Save as Get-FolderSize.ps1
The Go embed package lets you embed files into the compiled application, so you don’t need to publish templates separately. Of course there are advantages and disadvantages to this approach. Here we’re storing the templates in a map, with constants for the keys. The default behavior is to only parse the template on demand when […]
Nice handwritten CSS cheat sheet over at prathkum.gumroad.com – well worth the buck.
Head over to webdevsimplified.com for a CSS Box Model cheat sheet.
Zips all directories within a directory into a target
ImageMagick needs to be installed, including legacy tools, and in the path Takes files with the format yyyyMMdd.jpg in the current directory, and adds a stamp to the bottom-right corner in the MMM dd yyyy format. Creates a new file named “stamped.yyyyMMdd.jpg”
Opens a file for editing in a particular editor, then once that process is closed, copies the file to a location for backup.