I hereby claim:
- I am flickerfly on github.
- I am josiah (https://keybase.io/josiah) on keybase.
- I have a public key whose fingerprint is 7CB4 B7B7 E9FD 0CC9 F1C7 80EF B368 C6FB 4C9E F4AA
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$accounts = @("name1","name2") | |
ForEach ($account in $accounts) | |
{ | |
Get-WmiObject Win32_Service | where {$_.StartName -like "*$account*"} | |
} #end foreach |
#Select Servers that are not Domain Controllers | |
$computers = Get-ADComputer -Filter { operatingsystem -like "*server*" -and Enabled -eq "True" } | |
Foreach($computer in $computers) | |
{ | |
} #end foreach |
#Put the domain of the computer this script is running on into the $domain variable | |
$domain = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain().Name |
$DomainControllers = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain().DomainControllers |
#!/bin/bash | |
# This is intended to clean up a CentOS or RedHat 6 box for | |
# conversion to a template in VMWare or other environments | |
# Free to use as a reference document, check before you use this | |
# as I can't take responsibility if it breaks something | |
# You may want to simply delete the config files, | |
# I prefer to just remove the MAC record |
$user = apache | |
ps u -u $user | awk '{total+=$3}END{print total}' |
sudo grep "`date "+%b %d"`" /var/log/yum.log | awk '{print $5}' | tr "\n$" ' ' > `date "+%d%b"`.yum |
# Must be run with root permissions | |
# sudo will be sufficient | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi |
[CrashPlan] | |
title=CrashPlan | |
description=CrashPlan is a simple and yet powerful backup solution that does not require a central server for management. | |
ports=4242/tcp |