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
{% load widget_tweaks %} | |
{% for hidden_field in form.hidden_fields %} | |
{{ hidden_field }} | |
{% endfor %} | |
{% if form.non_field_errors %} | |
<div class="alert alert-danger" role="alert"> | |
{% for error in form.non_field_errors %} | |
{{ error }} |
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
# Example which shows how to reach nested ansible variable which is partially different. | |
# Run that plabook with ansible-playbook -e "env=test" ansible-nested-variable.yml | |
--- | |
# | |
- hosts: localhost | |
connection : ssh | |
gather_facts: no | |
vars: | |
cidr_blocks: | |
vpc_production_cidr_block: "10.10.0.0/28" |
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
# views.py | |
# Example inspired by: https://www.ianlewis.org/en/kubernetes-health-checks-django | |
def readiness(request): | |
try: | |
from django.db import connections | |
for name in connections: | |
cursor = connections[name].cursor() | |
cursor.execute("SELECT 1;") | |
row = cursor.fetchone() |
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
Afghanistan, Aland Islands, Albania, Algeria, American Samoa, Andorra, Angola, Anguilla, Antarctica, Antigua And Barbuda, Argentina, Armenia, Aruba, Australia, Austria, Azerbaijan, Bahamas, Bahrain, Bangladesh, Barbados, Belarus, Belgium, Belize, Benin, Bermuda, Bhutan, Bolivia, Bosnia And Herzegovina, Botswana, Bouvet Island, Brazil, British Indian Ocean Territory, Brunei Darussalam, Bulgaria, Burkina Faso, Burundi, Cambodia, Cameroon, Canada, Cape Verde, Cayman Islands, Central African Republic, Chad, Chile, China, Christmas Island, Cocos (Keeling) Islands, Colombia, Comoros, Republic of Congo, Democratic Republic of Congo, Cook Islands, Costa Rica, Côte d’Ivoire, Croatia, Cuba, Cyprus, Czech Republic, Denmark, Djibouti, Dominica, Dominican Republic, Ecuador, Egypt, El Salvador, Equatorial Guinea, Eritrea, Estonia, Ethiopia, Falkland Islands (Malvinas), Faroe Islands, Fiji, Finland, France, French Guiana, French Polynesia, French Southern Territories, Gabon, Gambia, Georgia, Germany, Ghana, Gibraltar, Greec |
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
The basic command is: | |
git log | |
For a better and less verbose output use: | |
git log --pretty=oneline | |
To show only a partial prefix (instead of showing the full commit), use: |
OlderNewer