Skip to content

Instantly share code, notes, and snippets.

View SanthoshNC's full-sized avatar
🏠
Working from home

Santhosh NC SanthoshNC

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

People

: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:
@SanthoshNC
SanthoshNC / gist:d2474ddb269b6cb822f9c6e447fe0b42
Last active August 6, 2021 16:28
Command to check Python3 version
# To check python version
python3 -V (or) python3 --version
# To install graphviz
sudo apt install graphviz
# Install pip
sudo apt install python3-pip
# using pip (pip3)
pip install diagrams
# To install Graphviz
choco install graphviz
# To install Diagrams
pip install diagrams
from diagrams import Diagram # importing diagram package
from diagrams.aws.compute 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"
python3 1_basic_diagram.py # 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
xdg-open simple_diagram.png # Opens the generated diagram in default image viewver.