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
cp file.txt{,.bak} | |
#quick and dirty | |
#http://www.commandlinefu.com/ |
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
Pull Synchornisation (I want new infos) | |
repadmin /syncall /AeD | |
Push Synch (I have infos) | |
repadmin /syncall /APeD | |
A = All Partitions | |
e = Enterprise (Cross Site) |
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
sudo vim /etc/postfix/virtual | |
<-- | |
#Mail recepient Mail forwarder | |
contact@mydomain.com myself@gmail.com | |
# forward all emails | |
@mydomain.com mystaff@gmail.com | |
--> | |
sudo postmap /etc/postfix/virtual |
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
#Delete all mails in every mailbox with the Subject "Summer Offer" | |
Get-MailBox | Search-Mailbox -SearchQuery "Summer Offer" -DeleteContent | |
#Alternative | |
Get-Mailbox -Server "*Server*" | Search-Mailbox -SearchQuery 'Subject:"*Subject*" and Body:"*Body*"' -DeleteContent |
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
Shutdown VMs: | |
/sbin/shutdown.sh | |
Poweroff the ESXi | |
/sbin/poweroff | |
list all vms: | |
vim-cmd vmsvc/getallvms |
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
1. download powerbroker frome here http://download1.beyondtrust.com/Technical-Support/Downloads/PowerBroker-Identity-Services-Open-Edition/?Pass=True | |
2. sudo chmod a+x {filename} | |
sudo ./pibsfilename.sh | |
3. sudo domainjoin-cli join --disable ssh contoso.local administrator@contoso.local | |
4. sudo vim /etc/pam.d/common-session | |
add: "session [success=ok default=ignore] pam_lsass.so" |
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
# cd /var/up2date/sys | |
# wget ftp://ftp.astaro.com/pub | |
# auisys.plx |
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
#Delete all mails in every mailbox with the Subject "Summer Offer" | |
Get-MailBox | Search-Mailbox -SearchQuery "Summer Offer" -DeleteContent | |
#Alternative | |
Get-Mailbox -Server "*Server*" | Search-Mailbox -SearchQuery 'Subject:"*Subject*" and Body:"*Body*"' -DeleteContent |
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
cls | |
#Login Page for POST | |
$loginPage = "https://www.furaffinity.net/login/" | |
#Get Username | |
$username=read-host "Enter username: " | |
if($username -eq $null) | |
{ | |
Write-host "no User entered" |
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
This is a collection of little powershell things I liked :3 |
NewerOlder