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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 7 1800X Eight-Core Processor | |
CPU Family: 0x17 |
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
# Stolen from: | |
# https://github.com/WoLpH/django-admin-generator/blob/develop/django_admin_generator/management/commands/admin_generator.py | |
import re | |
import six | |
from django.core.management import BaseCommand | |
from django.db import models | |
try: # pragma: no cover | |
from django.db.models.loading import get_models |
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
import django | |
django.setup() | |
from django.apps import apps | |
models = apps.get_app_config('app').get_models() | |
for model in models: |
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
import re | |
import django | |
django.setup() | |
from django.apps import apps | |
from django.contrib.contenttypes.fields import GenericForeignKey | |
from django.contrib.postgres.fields import ArrayField |
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
BASE_BRANCH="upgrade" | |
BRANCH=$1 | |
show_help() { | |
echo "./${0} BRANCH_NAME" | |
exit 1 | |
} | |
if ! [[ "$BRANCH" ]]; then | |
show_help |
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
docker exec -ti dotcom_db bash | |
echo ' | |
[mysqld] | |
wait_timeout = 600 | |
max_allowed_packet = 512M' >> /etc/mysql/my.cnf | |
mysqld restart |
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
def bold_unicode_name(): | |
letters = { | |
"a": ("𝗮", "𝗔"), | |
"b": ("𝗯", "𝗕"), | |
"c": ("𝗰", "𝗖"), | |
"d": ("𝗱", "𝗗"), | |
"e": ("𝗲", "𝗘"), | |
"f": ("𝗳", "𝗙"), | |
"g": ("𝗴", "𝗚"), | |
"h": ("𝗵", "𝗛"), |