Coder Social home page Coder Social logo

ps-miscellany's Introduction

Overview

This project represents a collection of different PowerShell scripts I've written to solve various problems. It didn't seem to make sense to create new projects for each one, so I've included all of them together into one, miscellaneous project. I'll be adding more scripts over time, more than likely.

Calculate-Age.ps1

Suppose I want to calculate how old someone was at the time of a particular event, such as when that person died? Well, getting the "years old" is relatively easy; however, it takes a little bit more effort to calculate the remaining months and days after that. Here's a script that does just that.

Convert-ExcelToCSV.psm1

PowerShell module to make it easy to convert Excel worksheets to CSV files. To add even more convenience, check out the files ConvertToCSV.reg and ConvertToCSV_Excel.Sheet.8.reg. These files will modify your Registry such that, when you right click on an Excel file, you'll get the option ConvertToCSV in the context menu. Selecting that option will then kick off the Convert-ExcelToCSV cmdlet and convert the worksheets within the selected Excel file to CSV files.

copy_mp3s_for_car.ps1

This script reads an inventory file of my music catalog, applies whatever filters I want to it, and writes the results to a destination path such as a flash drive. It works in conjunction with the script, generate_music_inventory_file.ps1.

generate_music_inventory_file.ps1

This script is a modified version of the script, organize_mp3s.ps1. The script basically has a single purpose: it inventories my digitized music and writes information on each song to a single JSON file. Check out my sample inventory file for an example.

organize_mp3s.ps1

This script catalogs my entire digitized music catalog and then allows me copy certain files over to a flash drive by whatever selection criteria I choose, such as genre. This script has no third party dependencies: I use the shell.application COM object to gather ID3 tag information on all my MP3 files (not for a lack of trying: I tried to use several of the open source .NET ID3 libraries out on github, nuget, and sourceforge, but could get none of them to work).

ps-miscellany's People

Contributors

brad-do avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.