import os import resend from dotenv import load_dotenv
load_dotenv()
resend.api_key = os.environ["RESEND_API_KEY"]
f: bytes = open(
import os import resend from dotenv import load_dotenv
load_dotenv()
resend.api_key = os.environ["RESEND_API_KEY"]
f: bytes = open(
| Sub MergeCSVFiles() | |
| Dim FolderPath As String | |
| Dim FileName As String | |
| Dim WS As Worksheet | |
| Dim WB As Workbook | |
| Dim LastRow As Long | |
| Dim DataRange As Range | |
| Dim TargetRow As Long | |
| ' Prompt the user to select a folder |
| ################################################################################################################# | |
| # | |
| # Version 1.4 February 2016 | |
| # Robert Pearman (WSSMB MVP) | |
| # TitleRequired.com | |
| # Script to Automated Email Reminders when Users Passwords due to Expire. | |
| # | |
| # Requires: Windows PowerShell Module for Active Directory | |
| # | |
| # For assistance and ideas, visit the TechNet Gallery Q&A Page. http://gallery.technet.microsoft.com/Password-Expiry-Email-177c3e27/view/Discussions#content |
You need brew installed on your Mac inorder to install powershell. Get brew from https://brew.sh or download it from here https://github.com/Homebrew/brew/releases/tag/4.1.24
On Mac copy the script below and paste in your terminal - it is that simple.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"| # Import the Active Directory module if not already loaded | |
| if (!(Get-Module -Name ActiveDirectory)) { | |
| Import-Module ActiveDirectory | |
| } | |
| # Get all users where PasswordNeverExpires is set to true and account is enabled | |
| $users = Get-ADUser -Filter { PasswordNeverExpires -eq $true -and Enabled -eq $true } -Properties PasswordNeverExpires | |
| # Export to CSV | |
| $users | Select-Object SamAccountName, PasswordNeverExpires | Export-Csv -Path C:\temp\PasswordNeverExpiresUsers.csv -NoTypeInformation |
| import uuid | |
| class Booking(models.Model): | |
| booking_no = models.CharField(primary_key=True, default=uuid.uuid4().hex[:5].upper(), max_length=50, editable=False) | |
| def __str__(self): | |
| return str(self.booking_no) |
| Guadalcanal | |
| ADO | |
| ADO HAILALUA | |
| ALIGATOR CREEK | |
| AO | |
| AREATAKIKI | |
| BAHOVU | |
| BELAHA | |
| BEMUTA | |
| BIRAO |
| #!/bin/bash | |
| ## Install ISPConfig 3.x on Debian 9 64Bits | |
| ## ISPConfig3 3.x + Apache2 + Debian 9 64Bits | |
| ## VM HD 50GB, swap 2GB, / 20GB, /var/www all | |
| ## Filesystem ext4 | |
| ## Run as root | |
| ## Link: https://www.howtoforge.com/tutorial/perfect-server-debian-9-stretch-apache-bind-dovecot-ispconfig-3-1 | |
| # Check if user has root privileges |