Open EC2 Cloud9
$ sudo service mysqld start
$ /usr/libexec/mysql55/mysql_secure_installation
comment - if first time Set root password? [Y/n] $ Y
Remove anonymous users? [Y/n] $ Y
| """ | |
| TIFF to PDF Converter | |
| Convert single-page or multi-page TIFF/TIF files into a PDF. | |
| Features: | |
| - Supports .tif and .tiff files | |
| - Supports multi-page TIFFs | |
| - Handles truncated/corrupted TIFFs when possible | |
| - Preserves page order |
| { | |
| "_meta": { | |
| "title": "IPL Complete Dataset 2008–2025", | |
| "version": "2.0", | |
| "last_updated": "2025-06-03", | |
| "seasons_covered": 18, | |
| "notes": [ | |
| "Points tables reflect final league-stage standings before playoffs.", | |
| "2019 had 8 teams; 2022–2025 had 10 teams.", | |
| "2021 split across India (first half) and UAE (second half) due to COVID-19.", |
| const protobuf = require('protobufjs'); | |
| // Load the generated Person class | |
| const root = protobuf.loadSync('person.proto'); | |
| root.resolveAll(); | |
| // console.log("root ", root) | |
| if (!root) { | |
| console.error('Failed to load person.proto'); | |
| process.exit(1); | |
| } |
| # Install Required Library | |
| # pip install pymupdf | |
| # -------------------------------------------- | |
| import fitz # PyMuPDF | |
| def highlight_text_in_pdf(pdf_path, output_path, targets): | |
| pdf_document = fitz.open(pdf_path) |
| // As per Oct 2024 | |
| // On click of caption icon on youtube player, a API (https://www.youtube.com/api/timedtext) will get trigger, check in network tab. | |
| // Get the response and pass that payload in below javascript function | |
| // **payload and API might get change in future. | |
| function getCaption(payload) { | |
| const concatenatedString = payload.events | |
| .flatMap(event => event.segs ? event.segs.map(seg => seg.utf8) : []) | |
| .join(''); |
| // it is written for below structure | |
| <pre> | |
| <code> | |
| ----some----code---- | |
| </code> | |
| <pre> | |
| function CopyToClipboard(params) { |
| const obj = { | |
| name: "Paddy", | |
| address: { | |
| town: "Lerum", | |
| country: "Sweden" | |
| } | |
| } | |
| function deepClone(obj) { | |
| return {...obj} |
Open EC2 Cloud9
$ sudo service mysqld start
$ /usr/libexec/mysql55/mysql_secure_installation
comment - if first time Set root password? [Y/n] $ Y
Remove anonymous users? [Y/n] $ Y