git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%s" -i -E --grep="Merge branch" --invert-grep
Reference
#!/bin/bash | |
# author: | |
# cmcginty https://stackoverflow.com/a/29997111/7742737 | |
# example: | |
# ./import-pem.sh TrustedCAs.PEM changeit truststore.jks | |
PEM_FILE=$1 | |
PASSWORD=$2 | |
KEYSTORE=$3 |
git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%s" -i -E --grep="Merge branch" --invert-grep
Reference
Based on https://github.com/git-lfs/git-lfs/wiki/Installation#rhelcentos
cat /etc/os-release
# https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-browser#browser-allowinprivate | |
# https://github.com/MicrosoftDocs/windows-itpro-docs/blob/master/browsers/edge/includes/allow-inprivate-browsing-include.md | |
$path = 'HKLM:\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main' | |
if (Test-Path $path) { | |
New-ItemProperty -Path $path -Name AllowInPrivate -PropertyType DWORD -Value 0 -Force | |
}else{ | |
New-Item -Path $path -Force | | |
New-ItemProperty -Name AllowInPrivate -PropertyType DWORD -Value 0 -Force |
############################################################################## | |
$From = "my_email@gmail.com" | |
$To = "your_email@yahoo.com.com" | |
$Cc = "friend_email@outlook.com" | |
#$Attachment = "C:\temp\Some file.txt" | |
$Subject = "Email Subject" | |
$Body = "Insert body text here" | |
$SMTPServer = "smtp.gmail.com" | |
$SMTPPort = "587" |
# http://dev.chromium.org/administrators/policy-list-3#IncognitoModeAvailability | |
$path = 'HKLM:\SOFTWARE\Policies\Google\Chrome' | |
if (Test-Path $path) { | |
New-ItemProperty -Path $path -Name IncognitoModeAvailability -PropertyType DWORD -Value 1 -Force | |
}else{ | |
New-Item -Path HKLM:\SOFTWARE\Policies\Google\Chrome\ -Force | | |
New-ItemProperty -Name IncognitoModeAvailability -PropertyType DWORD -Value 1 -Force | |
} |
## Get list of all AD Computer Objects | |
#Get-ADComputer -filter * -Properties dnshostname,operatingsystem | sort Name | select Name,DNSHostName,OperatingSystem | |
## Export list of all AD Computer Objects inlcuding Ipv4Address property | |
#Get-ADComputer -filter * -Properties dnshostname,operatingsystem,ipv4address | sort Name | select Name,DNSHostName,Ipv4Address,OperatingSystem | out-file C:\Users\david.urrutia\Desktop\computerIpList.txt | |
## Get list of all Windows Server computers | |
#Get-ADComputer -filter {operatingsystem -like "*server*"} -Properties dnshostname,operatingsystem | sort Name | select Name,DNSHostName,OperatingSystem | |
## Get list of all Windows Server computers |
$outlook = New-Object -comObject Outlook.Application | |
$mail = $outlook.CreateItem(0) | |
$mail.To = "user@gmail.com;user2@company.com" | |
$mail.Cc = "user3@gmail.com;user4@company.com" | |
$mail.Bcc = "user5@gmail.com;user6@company.com" | |
$mail.Subject = "MY SUBJECT" | |
$mail.Body = "Dear Mr. Boss,`n`nHere is the report you requested.`n`nPlease let me know if you have any questions.`n`nSincerely,`nMY NAME`nTITLE`nCONTACT INFO`nCONTACT INFO`nCONTACT INFO" | |
$mail.Attachments.Add("C:\Users\MYPROFILE\Desktop\FILE.PDF") | |
$mail.save() |
<# | |
.Synopsis | |
Joins new Windows server to a Windows domain on AWS | |
.DESCRIPTION | |
Sets local DNS entries to DNS server(s) by IP (Set-DnsClientServerAddress) | |
Enables "Use this connection's DNS suffix in DNS registration" (Set-DnsClient) | |
Appends domain DNS suffix (WMI) | |
Adds server to domain in specified OU and renames server (Add-Computer) | |
.EXAMPLE | |
Log on to new server |
# CapturePackets.ps1 | |
# TShark.exe must be installed on the target computer. TShark is part of the Wireshark installation. | |
# Author: David U. | Operations | |
$capFile = "Capture-" + (Get-Date -Format yyyyMMddHHmm) + ".pcap" | |
&"C:\Program Files\Wireshark\tshark.exe" -a filesize:32000 -w "$capfile" |