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
from django.db import models | |
class PositiveBigIntergerRelDbTypeMixin(models.PositiveIntegerRelDbTypeMixin): | |
def rel_db_type(self, connection): | |
if connection.features.related_fields_match_type: | |
return self.db_type(connection) | |
else: | |
return models.BigIntegerField().db_type(connection=connection) | |
class PositiveBigIntegerField(PositiveBigIntegerRelDbTypeMixin, models.BigIntegerField): |
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
#! /bin/sh | |
apt-get update | |
apt-get upgrade -y | |
adduser pinfort | |
chmod 701 /home/pinfort | |
mkdir /home/pinfort/.ssh | |
chmod 700 /home/pinfort/.ssh | |
chown pinfort:pinfort /home/pinfort/.ssh | |
vi /home/pinfort/.ssh/authorized_keys | |
chmod 600 /home/pinfort/.ssh/authorized_keys |
OlderNewer