Will & Skill Developers

Will & Skill Developers


Thoughts, snippets and ideas from the team at Will & Skill AB, Stockholm.

Tags


avrt
Hassan Mian
Author

Hassan Mian

Don't let someone else's opinion of you become your reality. - Les Brown

Generate SSH keys

At Will & Skill we use SSH Keys to connect to our servers. To generate a SSH Keys please follow the step below 1. Start Terminal Navigate to your .ssh folder cd ~/.ssh If the folder doesn't exist, create on: mkdir ~/.ssh 2. Generate SSH Key ssh-keygen -t rsa -b 4096 -C "your_email@example.c…

Hassan Mian Hassan Mian

Unique image name

This should be used as default since all our projects stores files on S3 buckets def unique_image_name(instance, filename): # Prepends unique epoch timestamp on image filename directory = 'mysupercoolmodel/image' epoch_time = int(time.time()) path = u"{}/{}-{}".format(direc…

Hassan Mian Hassan Mian