-
Headless Script - Call a script file with a headless terminal window
-
Call Powershell - Call a powershell script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Generate a new ignore file via 'gitignore.io' | |
.LINK | |
https://www.toptal.com/developers/gitignore | |
#> | |
#Requires -Version 3.0 | |
Function New-Gitignore { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script will recursively delete empty directories. | |
Script will default to the current directory, | |
Handled input with care, | |
A successful operation CANNOT be undone! | |
""" | |
import argparse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Create Directories and move files for each files extension. | |
#> | |
param([string]$Directory = $PWD) | |
function Move-File($x, $foldername) { | |
If (!(Test-Path $Directory\$foldername)) { | |
New-Item -ItemType Directory -Path $Directory -Name $foldername -ErrorAction Ignore | Out-Null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script located in '.vscode\' | |
# Testing repos are in 'Github\" | |
$Git = Get-Command git.exe | |
$Path = "$PSScriptRoot\..\Github\" | |
$Backup = "$PSScriptRoot\GitList.txt" | |
$Repos = @() | |
Get-ChildItem $Path -Directory | ForEach-Object { | |
if (Test-Path "$($_)\.git") { |
Personal collection of basic examples / scripts.
FFmpeg Documentation
A complete, cross-platform solution to record, convert and stream audio and video.
NewerOlder