- 5 Mark (Otto Lilienthal) 1973
- 5 Mark (Philipp Reis) 1974
- 5 Mark (Thomas Mann) 1975
- 5 Mark (Friedrich Gottlieb Klopstock) 1978
- 5 Mark (Albert Einstein) 1979
- 5 Mark (Adolph von Menzel) 1980
- 5 Mark (Tilman Riemenschneider) 1981
- 5 Mark (Friedrich Froebel) 1982
- 5 Mark (Goethes Weimar Cottage) 1982
- 5 Mark (Wartburg Castle) 1982-1983
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
| #!/bin/sh | |
| for ip in $(seq 1 254); do ping -c 1 192.168.21.$ip -t 2 &>/dev/null; [ $? -eq 0 ] && echo "192.168.21.$ip UP" || : ; done |
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
| # https://blog.hypertrack.io/2016/10/08/dealing-with-database-transactions-in-django-celery/ | |
| # @shared_task(base=TransactionAwareTask, bind=True, max_retries=settings.EVENT_MAX_RETRIES) | |
| # def push_event(self, event_id): | |
| # event = Event.objects.get(id=event_id) | |
| class TransactionAwareTask(Task): | |
| ''' | |
| Task class which is aware of django db transactions and only executes tasks | |
| after transaction has been committed | |
| ''' |
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
| from django.db.models.signals import post_init | |
| def track_data(*fields): | |
| """ | |
| Tracks property changes on a model instance. | |
| The changed list of properties is refreshed on model initialization | |
| and save. | |
| >>> @track_data('name') |
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
| """ | |
| Logical deletion for Django models. Uses is_void flag | |
| to hide discarded items from queries. Overrides delete | |
| methods to set flag and soft-delete instead of removing | |
| rows from the database. | |
| """ | |
| from django.apps import apps | |
| from django.contrib.admin.utils import NestedObjects | |
| from django.db import models | |
| from django.db.models import signals |
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
| net.ipv4.ip_forward = 1 | |
| net.ipv4.conf.all.send_redirects = 0 | |
| net.ipv4.conf.default.send_redirects = 0 | |
| net.ipv4.conf.eth0.send_redirects = 0 | |
| net.ipv4.conf.lo.send_redirects = 0 | |
| net.ipv4.conf.all.accept_redirects = 0 | |
| net.ipv4.conf.default.accept_redirects = 0 | |
| net.ipv4.conf.eth0.accept_redirects = 0 | |
| net.ipv4.conf.lo.accept_redirects = 0 | |
| net.ipv4.tcp_fastopen = 0x403 |
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
| WITH table_scans as ( | |
| SELECT relid, | |
| tables.idx_scan + tables.seq_scan as all_scans, | |
| ( tables.n_tup_ins + tables.n_tup_upd + tables.n_tup_del ) as writes, | |
| pg_relation_size(relid) as table_size | |
| FROM pg_stat_user_tables as tables | |
| ), | |
| all_writes as ( | |
| SELECT sum(writes) as total_writes | |
| FROM table_scans |
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
| sub vcl_recv { | |
| # unless sessionid/csrftoken is in the request, don't pass ANY cookies (referral_source, utm, etc) | |
| if (req.request == "GET" && (req.url ~ "^/static" || (req.http.cookie !~ "sessionid" && req.http.cookie !~ "csrftoken"))) { | |
| remove req.http.Cookie; | |
| } | |
| # normalize accept-encoding to account for different browsers | |
| # see: https://www.varnish-cache.org/trac/wiki/VCLExampleNormalizeAcceptEncoding | |
| if (req.http.Accept-Encoding) { | |
| if (req.http.Accept-Encoding ~ "gzip") { |