Giter Site home page Giter Site logo

valor-modulis's Introduction

About

Collection of Powershell modules and scripts for everyday tasks. Use at your own risk.

Installation

Using Scoop

  • add this repository as a bucket
    • scoop bucket add valor-modulis https://github.com/wookiefriseur/valor-modulis
  • get a list of modules
    • all modules share a common prefix to make it easier to identify and find them
    • scoop search vm_
  • install a module
    • scoop install vm_hashutils
    • scoop install valor-modulis/vm_hashutils (optional: specify bucket)
  • the module is automatically symlinked to a scoop directory in $ENV:PSModulePath
    • autoimport should trigger when you try to use a function from a module (for instance Get-Hash "Hallo")
    • try to use Import-Module HashUtils if autoimport fails

If you don't have Scoop yet

Invoke-Expression (New-Object net.webclient).DownloadString('https://get.scoop.sh')
Set-Executionpolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Manually

Not recommended, but you can either clone each module separately or all of them recursively and keep them updated like so:

  • git clone --recurse-submodules
  • git pull
  • git submodule update --recursive --remote

After cloning the repository you can add the functions to the current terminal session through:

  • dot sourcing: . script.ps1
  • import if it's a module: Import-Module ModuleName.psm1

For persistent scripts, load them in your psprofile. For automatic module import, put it into one of your $ENV:PSModulePath. Use prefixes in case of naming conflicts.

Uninstalling

Scoop

  • Uninstall providing the Module name:
    • scoop uninstall Get-Hash
    • scoop uninstall valor-modulis/Get-Hash (optional: specify bucket)
  • bucket can be removed as follows:
    • scoop bucket rm valor-modulis

Manually

  • Remove-Module Get-Hash (this will only unload a module)
  • uninstall it in scoop for a more permanent solution

Troubleshooting

Bucket not updating

Can happen if the bucket inside ~\scoop is broken. Easiest way is to just add it again.

  1. remove bucket
  2. cleanup
  3. add bucket again
  4. check
scoop bucket rm valor-modulis
scoop cleanup *
scoop bucket add valor-modulis https://github.com/wookiefriseur/valor-modulis
scoop search vm_

valor-modulis's People

Contributors

actions-user avatar github-actions[bot] avatar wookiefriseur avatar

Watchers

 avatar  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.