Search is not available for this dataset
filename stringlengths 5 114 | module_name stringlengths 8 67 | content stringlengths 0 282M |
|---|---|---|
z.psm1 | z-1.1.14 | $safehome = if (![String]::IsNullOrWhiteSpace($env:XDG_CACHE_HOME)) {
$env:XDG_CACHE_HOME
} elseif (![String]::IsNullOrWhiteSpace($env:HOME)) {
$env:HOME
} else {
$env:USERPROFILE
}
$cdHistory = Join-Path -Path $safehome -ChildPath '\.cdHistory'
# The user can set $Z_UsePushLocation to $true to co... |
z-pushd.psm1 | z-pushd-0.0.1 | $safehome = if ([String]::IsNullOrWhiteSpace($Env:HOME)) { $env:USERPROFILE } else { $Env:HOME }
$cdHistory = Join-Path -Path $safehome -ChildPath '\.cdHistory'
<#
.SYNOPSIS
Tracks your most used directories, based on 'frecency'. This is done by storing your CD command history and ranking it over time.
.DESCR... |
z-pushd.psd1 | z-pushd-0.0.1 | #
# Module manifest for module 'z-push'
#
# Generated by: Le Tuan Hai
#
# Generated on: 22-Mar-23
#
@{
# Script module or binary module file associated with this manifest.
RootModule = 'z-pushd.psm1'
# Version number of this module.
ModuleVersion = '0.0.1'
# Supported PSEditions
# CompatiblePSEditi... |
zWindowsUpdate.psm1 | zWindowsUpdate-1.2.0 | ### Module - zWindowsUpdate
# Task settings
$WU_TaskName = 'zWindowsUpdate'
$WU_TaskDescription = 'Windows update task created by zWindowsUpdate PowerShell module'
$WU_TaskWorkingDirectory = 'C:\Program Files\zWindowsUpdate' # Folder is deleted when running Remove-zWUTask
# File names
$WU_ScriptFileNa... |
zWUScript.ps1 | zWindowsUpdate-1.2.0 | ### Module - zWindowsUpdate
<#
.NOTES
######################
mail@nimbus117.co.uk
######################
.SYNOPSIS
Search for, download and install windows updates.
.DESCRIPTION
By default this script will search for, download and install all software updates but will not reboot the co... |
zWindowsUpdate.psd1 | zWindowsUpdate-1.2.0 | #
# Module manifest for module 'PSGet_zWindowsUpdate'
#
# Generated by: nimbus117
#
# Generated on: 29/03/2018
#
@{
# Script module or binary module file associated with this manifest.
RootModule = 'zWindowsUpdate.psm1'
# Version number of this module.
ModuleVersion = '1.2'
# Supported PSEditions
#... |
Show-Calendar.ps1 | zaicadmintools-1.0.5 | <#
.Synopsis
Displays a visual repedreswentation of a calendar..
.Description
Displays a visual representation of a cqwealendar. This function supports multiple months
and lets you hightylight specific date ranges or days.
.Parameter Start
The first month to display.
.Parameter End
The last month to d... |
ZaicAdminTools.psd1 | zaicadmintools-1.0.5 | #
# Module manifest for module 'ZaicAdminTools'
#
# Generated by: Pawel Jarosz
#
# Generated on: 07.04.2017
#
@{
# Script module or binary module file associated with this manifest.
RootModule = 'ZaicAdminTools.psm1'
# Version number of this module.
ModuleVersion = '1.0.5'
# Supported PSEditions
# CompatiblePSEditi... |
ZaicAdminTools.psm1 | zaicadmintools-1.0.5 | #Get public and private function definition files.
$Public = @( Get-ChildItem -Recurse -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue)
$Private = @( Get-ChildItem -Recurse -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue )
#Dot source the files
Foreach($import in @($Public +... |
Get-ArchiveItem.ps1 | ziphelper-0.2.2 | function Get-ArchiveItem {
<#
.SYNOPSIS
Returns archive items from the archive file
.DESCRIPTION
Returns a list of archive files from the archive. Returns item contents as a byte array when specific items are provided.
.PARAMETER Path
Archive Path
.PARAMETER Item
Path to existing items inside... |
Remove-ArchiveItem.ps1 | ziphelper-0.2.2 | Function Remove-ArchiveItem {
<#
.SYNOPSIS
Removes one or more items from the archive
.DESCRIPTION
Remove specific file or folder from the existing archive
.PARAMETER Path
Archive path
.PARAMETER Item
Archived item: file or folder
.EXAMPLE
Remove-ArchiveItem -Path c:\temp\myarchive.zip... |
Expand-ArchiveItem.ps1 | ziphelper-0.2.2 | Function Expand-ArchiveItem {
<#
.SYNOPSIS
Extracts one or more items from the archive
.DESCRIPTION
Extract specific file or folder from the existing archive
.PARAMETER Path
Archive path
.PARAMETER DestinationPath
Destination folder to put the item into
.PARAMETER Item
Archived item... |
Add-ArchiveItem.ps1 | ziphelper-0.2.2 | Function Add-ArchiveItem {
<#
.SYNOPSIS
Adds one or more items to the archive
.DESCRIPTION
Adds specific file or folder to the existing archive
.PARAMETER Path
Archive path
.PARAMETER Item
Archived item: file or folder
.EXAMPLE
# Put two txt files into archive.zip\inner_folder\path\
... |
ZipHelper.class.ps1 | ziphelper-0.2.2 | using namespace System.IO
using namespace System.IO.Compression
class ZipHelper {
# Returns file contents as a binary array
static [byte[]] GetBinaryFile ([string]$fileName) {
$stream = [System.IO.File]::Open($fileName, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read, [System.IO.FileShare]::ReadWrit... |
ziphelper.psm1 | ziphelper-0.2.2 | Add-Type -AssemblyName System.IO.Compression
Add-Type -AssemblyName System.IO.Compression.FileSystem
foreach ($class in (Get-Item $PSScriptRoot\classes\*.ps1)) {
. $class.FullName
}
foreach ($function in (Get-Item $PSScriptRoot\functions\*.ps1)) {
. $function.FullName
} |
ziphelper.psd1 | ziphelper-0.2.2 | @{
# Script module or binary module file associated with this manifest
RootModule = 'ziphelper.psm1'
# Version number of this module.
ModuleVersion = '0.2.2'
# ID used to uniquely identify this module
GUID = '97dac4a3-82a1-42e0-aec4-1aee66797120'
# Author of this module
Author = 'Kirill K... |
ZorkOut.ps1 | zorkify-0.0.1 | $Results = @{
Success = @(
'Very good. Now you can go to the second grade.',
'Wheeeeeee!!!!!',
'Do you expect me to applaud?'
'Naturally!'
)
Warning = @(
'It is pitch black. You are likely to be eaten by a Grue.',
"You are in a maze of twisty passages, all ali... |
deploy.psdeploy.ps1 | zorkify-0.0.1 | # Generic module deployment.
#
# ASSUMPTIONS:
#
# * folder structure either like:
#
# - RepoFolder
# - This PSDeploy file
# - ModuleName
# - ModuleName.psd1
#
# OR the less preferable:
# - RepoFolder
# - RepoFolder.psd1
#
# * Nuget key in $ENV:NugetApiKey
#
# * Set-BuildEnvironment from BuildHel... |
Zorkify.psm1 | zorkify-0.0.1 | $FunctionList = Get-ChildItem -Path $PSScriptRoot\Functions
foreach ($Function in $FunctionList) {
Write-Verbose -Message ('Importing function file: {0}' -f $Function.FullName)
. $Function.FullName
} |
psake.ps1 | zorkify-0.0.1 | # PSake makes variables declared here available in other scriptblocks
# Init some things
Properties {
# Find the build folder based on build system
$ProjectRoot = $ENV:BHProjectPath
if(-not $ProjectRoot)
{
$ProjectRoot = $PSScriptRoot
}
$Timestamp = Get-date -uformat... |
build.ps1 | zorkify-0.0.1 | function Resolve-Module {
[Cmdletbinding()]
param(
[Parameter(Mandatory)]
[string[]]$Name
)
Process {
foreach ($ModuleName in $Name) {
$Module = Get-Module -Name $ModuleName -ListAvailable
Write-Verbose -Message "Resolving Module $($ModuleName)"
... |
Zorkify.psd1 | zorkify-0.0.1 | #
# Module manifest for module 'Zorkify'
#
# Generated by: Joshua Barton
#
# Generated on: 11/14/2016
#
@{
# Script module or binary module file associated with this manifest.
RootModule = 'Zorkify.psm1'
# Version number of this module.
ModuleVersion = '0.0.1'
# Supported PSEditions
# CompatiblePSE... |
Zorkify.Tests.ps1 | zorkify-0.0.1 | if(-not $ENV:BHProjectPath){
Set-BuildEnvironment -Path $PSScriptRoot\..
}
Remove-Module $ENV:BHProjectName -ErrorAction SilentlyContinue
Import-Module (Join-Path $ENV:BHProjectPath $ENV:BHProjectName) -Force
Describe -Name 'Zorkify' {
Context -Name 'Output Script ZorkOut.ps1' {
$ScriptPath = Join-Path... |
Zorkify.ps1 | zorkify-0.0.1 | function Zorkify () {
<#
.SYNOPSIS
A goofy script to return Zork quotes instead of actual errors or warnings
.DESCRIPTION
A goofy script to return Zork quotes instead of actual errors or warnings
.PARAMETER Command
Command/Script to run. Implemented with Invoke-Exp... |
zxsh-functions.ps1 | zxsh-0.0.8 | <#
.Description
This script defines the functions that are integrated in the usage of zxsh.
Declared functions:
1. Set-Title
2. Prompt
3. Get-EmptyFolders
4. Reset-Color
5. Get-IntegrityHash
#>
<#
.SYNOPSIS
Set-Title
.DESCRIPTION
Set title o... |
zxsh.psm1 | zxsh-0.0.8 | <#
.Description
Main (basic) module
Sections:
1. Script variable(s) declaration
2. Script variable(s) initialization
3. Source function(s)
4. Define alias(es)
5. Module member export definitions
#>
########################################
# 1. Script variable... |
zxsh.psd1 | zxsh-0.0.8 | #
# Module manifest for module 'zxsh'
#
# Generated by: Ong Zhi XIan
#
# Generated on: 2020-04-27
#
@{
# Script module or binary module file associated with this manifest.
RootModule = 'zxsh'
# Version number of this module.
ModuleVersion = '0.0.8'
# Supported PSEditions
CompatiblePSEditions = @("C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.