30.11.2020: Updated with the new patchseries and instructions for Windows
02.12.2020: Added tweaks
08.12.2020: Updated with patchseries v4
31.01.2020: Updated with patchseries v6
#!/usr/bin/env bash | |
# | |
# Certbot Nginx Reload | |
# | |
# Let's Encrypt Certbot post hook command for Nginx which checks the updated | |
# configuration files and reloads the server if everything validates. | |
# | |
# Author : Justin Hartman <[email protected]> | |
# Version : 1.0.1 | |
# License : MIT <https://opensource.org/licenses/MIT> |
from django.db.models import Count, Max | |
unique_fields = ['field_1', 'field_2'] | |
duplicates = ( | |
MyModel.objects.values(*unique_fields) | |
.order_by() | |
.annotate(max_id=Max('id'), count_id=Count('id')) | |
.filter(count_id__gt=1) | |
) |
Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.