Giter VIP home page Giter VIP logo

psutils's Introduction

PSUtils

My PowerShell utils
Place it in %MyDocuments%\WindowsPowerShell\Modules and Import-Module PSUtils

  • app — run application (in case of ambiguity between app and cmdlet)

  • json, unjson — encode/decode JSON to/from PSObject

  • clear-clibboard, set-clipboard, out-clipboard, get-clipboard with aliases clear-clip, set-clip, out-clip, get-clip — clipboard utils, out-clip appends data to clipboard when called in foreach

  • get-handle — get handles with SysInternals handle util, returns PSObjects

  • select-match — select-string with two enhancements: allows selecting only matched value (or group), and also can color output

  • colorize — colorize regex-matched parts of string

  • tags — get tags of audio file with TagLib library

  • whereis — locate executable with where util

  • invoke-cmd — invoke .bat file and update environment variables changes

  • screenshot, printscreen — take screenshot with Drawing.Graphics or simulating PrtScr button

  • save-image — save image to file, use it with function above: screenshot | save-image pics

  • timer — run script with interval

  • hash — create hashtable from input, ls | hash Name FullName

  • template — replace variables in text/files, on string input replaces variables '$x = $y...' | template @{x=10;y=(1,2,3)}10 = 1, 10 = 2, 10 = 3, on file/path input — replace variables both in file/path names and in its contents and copies substituted files to destination directory

  • enumerate — convert container to sequence of elements

  • numerate — numerate files, for example ls *.png | sort -Property CreationTime | numerate -Digits 2 will rename to 01.png, 02.png, ... in order of CreationTime. numerate -Digits 2 -Format 'foo {0}' to specify template for new name, result will be foo 01.png etc.

  • watch-path — watch for file creation/changing/deletion in path

  • beep — shortcut for [console]::Beep

  • xpath — query elements from HTML

  • download — download page

  • wreq — invoke web request, returning string result

  • time — measure script block running time

  • unzip, zip, lszip — very simple zip utils in top of 7z

  • codepage — get/set codepage or run block with specified codepage

  • encoding — get/set encoding or run block with specified encoding, it's useful to run some cmd tool with $OutputEncoding set

  • verbose — set $VerbosePreference to Continue within script

  • verbs — get verbs for file

  • path — just GetFolderPath

  • import-profile — reload profile scripts

  • rhistory — search in history

  • environment — get env as hashtable, or set env from hashtable

  • dictionary (alias dict) and gdict — working with simple dictionary in top of JSON

  • wait — wait for process

  • test-ctrlc — throw exception if Ctrl+C pressed

  • record — record screenshots of process

  • animate — make gif-animation for images, uses ImageMagick convert

  • expand — expand string with variables

  • closure — simple closure, convert script to string, then expand and convert back to script

  • fuzzymatch — fuzzy match like sublimetext one

psutils's People

Contributors

mvoidex avatar

Watchers

 avatar  avatar

Forkers

reubenmiller

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.