This file contains 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
Function Remove-ACL { | |
[CmdletBinding(SupportsShouldProcess=$True)] | |
Param( | |
[parameter(Mandatory=$true,ValueFromPipeline=$true,Position=0)] | |
[ValidateNotNullOrEmpty()] | |
[ValidateScript({Test-Path $_ -PathType Container})] | |
[String[]]$Folder, | |
[Switch]$Recurse, | |
[Switch]$ChangeOwner, | |
[String[]]$UserId, |
This file contains 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
function Sandbox { | |
param( | |
[Parameter(Mandatory)] | |
[string]$Name | |
) | |
$yes = New-Object System.Management.Automation.Host.ChoiceDescription '&Yes', 'Allows setting a delay' | |
$no = New-Object System.Management.Automation.Host.ChoiceDescription '&No', 'Does not allow setting a delay' | |
$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no) | |
$result = $host.ui.PromptForChoice('Set Delay?', 'Would you like to set a delay?', $options, 0) |
This file contains 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
// Navigate to https://www.linkedin.com/my-items/saved-jobs/ | |
// Open the browser console, paste the code below into it, press enter to execute the code, then reload the page | |
var fetchJobCount = function(){ | |
let xRs = $x('//a[@data-control-name="myitems_all_savedjobs"]/div[2]'); | |
jc = parseInt(xRs[0].innerText); | |
if ( isNaN(jc) ) { alert('Could not determine "My Jobs" count. Ensure you are running from the "My Jobs" page (url below) \n\nhttps://www.linkedin.com/my-items/saved-jobs/') }; | |
console.log('Total Job Count: ' + jc); |
This file contains 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
:: Created by Phil McCaffrey <[email protected]> | |
:: For updates, usage instructions and more... @see https://gist.github.com/nobesnickr/b2f0af33f2ea8ceaa21cffaa1086e0e9 | |
@echo off | |
cls | |
TITLE Windows Massive Files Deleter | |
setlocal EnableExtensions EnableDelayedExpansion | |
:: Establish Variables | |
set _performDelete="false" |