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
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