Bind the external virtual switch to VMnet8.
To enable SSH Agent automatically on Windows, start PowerShell as an Administrator and run the following commands:
# Make sure you're running as an Administrator
Set-Service ssh-agent -StartupType Automatic
Start-Service ssh-agent
This file contains hidden or 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
--- | |
# | |
# Dump DNS Zone file from a zone hosted by Digital Ocean | |
# | |
- hosts: localhost | |
connection: local | |
gather_facts: false | |
vars: | |
oauth_token: "redacted-api-key-from-digital-ocean" |
PAM session fail for users with an expired account
sudo whoami
sudo: pam_open_session: System error
sudo: policy plugin failed session initialization
Check if the password for the account has expired
This file contains hidden or 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 a bucket that contains versions. | |
Author: John Auld | |
''' | |
import boto3 | |
my_bucket = 'replace-with-aws-s3-bucket-name' | |
delete_bucket = False | |
delete_versions = False |