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
aws ec2 describe-network-interfaces --query NetworkInterfaces\[\].Association.PublicIp | jq -r '.[]' | xargs -I{} nmap -v -A -sV {} |
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
/** | |
* You must enable to Query Log when using Lumen. | |
*/ | |
DB::connection()->enableQueryLog(); | |
$queries = DB::getQueryLog(); | |
$last_query = end($queries); |
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
<?php | |
$builder = MyModel::where('active', 1); | |
$query = str_replace(array('?'), array('\'%s\''), $builder->toSql()); | |
$query = vsprintf($query, $query->getBindings()); | |
dd($query); |
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
pwsh -Command 'Install-Module -Name PSWSMan' | |
pwsh -Command 'Install-Module -Name ExchangeOnlineManagement' | |
sudo pwsh -Command 'Install-WSMan' | |
Connect-ExchangeOnline -UserPrincipalName YOUR_EMAIL_ADDRESS | |
foreach($user in Get-Mailbox -RecipientTypeDetails UserMailbox) { | |
$cal = $user.alias+":\calendar" | |
write-host $cal |
OlderNewer