Skip to content

Instantly share code, notes, and snippets.

@WildDogOne
WildDogOne / backitup.sh
Created August 10, 2015 20:44
Backup copy of a file
cp file.txt{,.bak}
#quick and dirty
#http://www.commandlinefu.com/
Pull Synchornisation (I want new infos)
repadmin /syncall /AeD
Push Synch (I have infos)
repadmin /syncall /APeD
A = All Partitions
e = Enterprise (Cross Site)
@WildDogOne
WildDogOne / Postfix
Last active August 29, 2015 14:25
Mail Ubuntu
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
@WildDogOne
WildDogOne / cleanMailbox.ps1
Last active July 6, 2016 15:17
exchangeManagement
#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
@WildDogOne
WildDogOne / gist:9ede384135eccbbe76e9
Created May 7, 2015 14:51
Gracefull Shutdown of an ESXi
Shutdown VMs:
/sbin/shutdown.sh
Poweroff the ESXi
/sbin/poweroff
list all vms:
vim-cmd vmsvc/getallvms
@WildDogOne
WildDogOne / gist:425e7ba7791593f564da
Last active December 28, 2016 08:24
Install PBIS on Ubuntu 15.04
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"
@WildDogOne
WildDogOne / gist:ab5a0f53e589873a754e
Created May 5, 2015 11:42
Manually Update UTM/SUM
# cd /var/up2date/sys
# wget ftp://ftp.astaro.com/pub
# auisys.plx
@WildDogOne
WildDogOne / deleteMail.ps1
Last active December 1, 2016 06:30
Exchange Tasks
#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
@WildDogOne
WildDogOne / FA_Downloader.ps1
Last active June 22, 2018 20:43
Furaffinity Downloader
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"
@WildDogOne
WildDogOne / Power Snippets
Last active December 28, 2015 01:09
Collection of little powershell things
This is a collection of little powershell things I liked :3