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
Get-Content ComputersToShutdownInOrder.txt | Foreach-Object { Stop-Computer $PSItem -Force; Do { Write-Host "$PSItem still pinging!"; Start-Sleep -s 1 } Until ( ( Test-Connection -Count 1 -Quiet $PSItem ) -eq $False ); Write-Host "$PSItem is down!" } |
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
$From = "spamextract@domain.com" | |
$To = "emailadmins@domain.com" | |
$SmtpServer = "mail.domain.com" | |
$HoldingMailbox = "expungedemails@domain.com" | |
$ErrorActionPreference = "Stop" | |
Write-Host "" | |
Write-Host "Office 365 Mail Extract" -ForegroundColor "Green" | |
Start-Sleep 1 |
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
<?php | |
/** | |
* Display a custom taxonomy dropdown in admin | |
* @author Mike Hemberger | |
* @link http://thestizmedia.com/custom-post-type-filter-admin-custom-taxonomy/ | |
*/ | |
add_action('restrict_manage_posts', 'tsm_filter_post_type_by_taxonomy'); | |
function tsm_filter_post_type_by_taxonomy() { | |
global $typenow; |
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
$Keep = 3 | |
$Today = (Get-Date).DayOfWeek | |
# Cleanup if Monday | |
If ( $Today -eq "Monday" ) { | |
Write-Host "Running TSM cleanup." | |
& tsm maintenance cleanup | |
} |
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
- hosts: tpots | |
remote_user: root | |
gather_facts: yes | |
vars: | |
ansible_python_interpreter: /usr/bin/python3 | |
tpot_web_user: "user" | |
tpot_web_pw: "mypassword" | |
tasks: |
OlderNewer