Skip to content

Instantly share code, notes, and snippets.

Working from home

Santhosh NC SanthoshNC

Working from home
View GitHub Profile
SanthoshNC / gist:477d60b1f9bc58d5f98ad82e79cac703
Created November 13, 2020 15:56 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:477d60b1f9bc58d5f98ad82e79cac703


:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
View gist:0bcd72c698f9f1abb6cb0368537da6f7
# Install pip
sudo apt install python3-pip
# using pip (pip3)
pip install diagrams
SanthoshNC / gist:d2474ddb269b6cb822f9c6e447fe0b42
Last active August 6, 2021 16:28
Command to check Python3 version
View gist:d2474ddb269b6cb822f9c6e447fe0b42
# To check python version
python3 -V (or) python3 --version
from diagrams import Diagram # importing diagram package
from import EC2 # importing AWS EC2 resource
with Diagram("Simple Diagram"): # "Simple Diagram" is the name of the diagram. The image will be stored as "simple_diagram.png"
EC2("web") # An icon of EC2 will be generated with the name "web"
View gist:8f7da061b3d06fc0cfb09a374e21d116
python3 # To run the file to generate diagram
ls -lrt # To check the files. A file called simple_diagram.png will be generated in the directory
View gist:620819eafe60c0f94421bfc92354f295
xdg-open simple_diagram.png # Opens the generated diagram in default image viewver.