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
email_message = EmailMultiAlternatives( | |
subject='subject', | |
body='some text', | |
from_email='[email protected]', | |
to=['example@example'], | |
) | |
email_message.attach_alternative(render_to_string('email.html', context), 'text/html') | |
email_message.mixed_subtype = 'related' | |
# Image |
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
rsync -havzP -e "ssh -i /home/deploy/xxxxx.pem" [email protected]:/home/deploy/complete-path/ /home/deploy/complete-path/ |
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
create sequence enrollment_enrollmentcompany_id_seq; | |
select max(id) from enrollment_enrollmentcompany; | |
select setval('enrollment_enrollmentcompany_id_seq', 609, true); | |
alter table enrollment_enrollmentcompany alter column id set default nextval('enrollment_enrollmentcompany_id_seq'); | |
-- Option 2 | |
CREATE sequence enrollment_enrollmentcompany_id_seq owned by enrollment_enrollmentcompany.id; | |
SELECT setval(pg_get_serial_sequence('"enrollment_enrollmentcompany"','id'), coalesce(max("id"), 1), max("id") IS NOT null) FROM "enrollment_enrollmentcompany"; | |
ALTER TABLE "enrollment_enrollmentcompany" ALTER COLUMN "id" SET DEFAULT nextval(pg_get_serial_sequence('"enrollment_enrollmentcompany"','id')); |
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
geo $limited { | |
default 1; | |
xxx.xxx.xxx/xx 0; | |
} | |
map $limited $limit { | |
1 $binary_remote_addr; | |
0 ""; | |
} |
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
RELEASE=$1 | |
mkdir /tmp/iosevka-font/$RELEASE | |
cd /tmp/iosevka-font/$RELEASE | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-$RELEASE.zip | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-aile-$RELEASE.zip | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-etoile-$RELEASE.zip | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-fixed-$RELEASE.zip | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-fixed-slab-$RELEASE.zip | |
wget https://github.com/be5invis/Iosevka/releases/download/v$RELEASE/ttf-iosevka-slab-$RELEASE.zip |
OlderNewer