Coder Social home page Coder Social logo

powershell-scripts's Introduction

Backup

Backup is a simple powershell script for making backups of given directory. It copies new files, checks for changes based on date modified, and removes remains. After each run u get separate log.txt with list of all operations that have been done. U can exclude specific files or extensions from backup.

filter

$exclude = @("*.bak", "*.lck", "*.lic", "*.TMP", "*.tmp", ".run", "cert.pem")

log

| Date:               | Type:  | Base file:                     | Backup file:                   |
| 10/17/2020 23:58:39 | COPY   | Y:\a.txt                       |  X:\a.txt                      |
| 10/17/2020 23:58:40 | COPY   | Y:\test\b.png                  |  X:\test\b.png                 |
| 10/17/2020 23:58:39 | UPDATE | Y:\c.txt                       |  X:\c.txt                      |
| 10/17/2020 23:58:40 | DELETE | Y:\test\b.png                  |  X:\test\b.png                 |

Processor boost

This script can help you easily enable or disable processor turbo boost option. When you don't need extra processing power you can turn it off, and make your fans spin slower, decreasing loudness of the device.

Power plan option

# Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced)
# Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (High performance)
# Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver)

$GUID  =  "381b4222-f694-41f0-9685-ff5bb260df2e"

Depending on what power plan option you are currently running, you have to set GUID variable to match your settings.

Usage

Copy repository to your machine, in root project director is all set up shortcut that can be used e.g. to pin quick toogle to taskbar. When clicked, message box will show up information if boost is on or off.

To make it look nicer, you can add custom shortcut icon from icons folder, so when you pin it to your taskbar you will know what this shortcut is for.

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.