Skip to content

Instantly share code, notes, and snippets.

View lushkant's full-sized avatar
🎯
Focusing

Krishna Kant Chourasiya lushkant

🎯
Focusing
View GitHub Profile
@lushkant
lushkant / functions.php
Last active April 20, 2024 17:18
RSFV plugin filter for updating allowed html and attributes array.
<?php
add_filter(
'rsfv_allowed_html',
function ( $allowed_html ) {
$allowed_html['a']['data-aboid'] = array();
$allowed_html['a']['data-productid'] = array();
return $allowed_html;
}
@lushkant
lushkant / jira-aide-jql.html
Created April 4, 2024 12:30
In post content
<div class="et-l et-l--post twybee-single-post">
<div class="et_builder_inner_content et_pb_gutters3">
<div class="et_pb_section et_pb_section_0 et_pb_with_background et_section_specialty">
<div class="et_pb_row">
<div class="et_pb_column et_pb_column_1_2 et_pb_column_0 et_pb_css_mix_blend_mode_passthrough et_pb_column_empty"></div>
<div class="et_pb_column et_pb_column_1_2 et_pb_column_1 et_pb_specialty_column et_pb_css_mix_blend_mode_passthrough et-last-child">
<div id="JQL" class="et_pb_row_inner et_pb_row_inner_0">
<div class="et_pb_column et_pb_column_4_4 et_pb_column_inner et_pb_column_inner_0 et-last-child">
<div id="1" class="et_pb_module et_pb_text et_pb_text_0 1 et_pb_text_align_left et_pb_bg_layout_light">
<div class="et_pb_text_inner">
@lushkant
lushkant / output.html
Created June 30, 2021 06:04
An AMP html output generated by ws editor
<html amp="" lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"/><script async="" src="https://cdn.ampproject.org/v0.js"></script><script async="" src="https://cdn.ampproject.org/v0/amp-story-1.0.js" custom-element="amp-story"></script><link href="https://fonts.googleapis.com/css2?display=swap&amp;family=Chivo%3Awght%40900&amp;family=Bungee" rel="stylesheet"/><style amp-boilerplate="">body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibili
@lushkant
lushkant / users.json
Created June 27, 2021 11:32
[GET] /users - Response Data
[
{
"id": 1,
"name": "editor",
"url": "http://mediabrew.local",
"description": "",
"link": "http://mediabrew.local/author/editor/",
"slug": "editor",
"avatar_urls": {
"24": "http://0.gravatar.com/avatar/c2b06ae950033b392998ada50767b50e?s=24&d=mm&r=g",
@lushkant
lushkant / updateMedia.json
Created June 27, 2021 11:26
[POST] /media/{id} - Response Data
{
"id": 26,
"date": "2021-06-26T05:32:32",
"date_gmt": "2021-06-26T05:32:32",
"guid": {
"rendered": "http://mediabrew.local/wp-content/uploads/2021/06/brew.jpg",
"raw": "http://mediabrew.local/wp-content/uploads/2021/06/brew.jpg"
},
"modified": "2021-06-27T11:23:38",
"modified_gmt": "2021-06-27T11:23:38",
@lushkant
lushkant / deleteMedia.json
Created June 27, 2021 11:21
[DELETE] /pages/{id}/lock - Response Data
{
"deleted": true,
"previous": {
"id": 33,
"date": "2021-06-27T11:05:34",
"date_gmt": "2021-06-27T11:05:34",
"guid": {
"rendered": "http://mediabrew.local/wp-content/uploads/2021/06/1614407792144-copy.png",
"raw": "http://mediabrew.local/wp-content/uploads/2021/06/1614407792144-copy.png"
},
@lushkant
lushkant / formData
Last active June 27, 2021 11:20
[POST] /media - Sent Data [This is the body of the request in an window.FormData instance]
-----------------------------50700447931692487561965646074
Content-Disposition: form-data; name="file"; filename="image.png"
Content-Type: image/png
‰PNG

���
IHDR��~��Ž���½Zœ(�� �IDATx”½åw#ɚí=_îé.6‰™™Ù–Å`ْ,3ƒÐv±‹«»‹«ûœÓpæv¿kG*mWOϬ{?ìõDDfF¦dPDüb?ú‡ƒ!ôx<:Áý^_DÖ)»×í‰2±õ³£cqîýÞ�÷»¼~$ŽÉÇÅ5Ý>õ‡x8èãѐ}õ…¤¶ûƒŽ¸ßë
ñøÝã#<è÷.Îç1¶3²ñ^÷XˆçÞïõpï˜ÏÄ~¤çcäó 1Ü?D÷@¨»}�êhs‡›»8ܖt¼»ª·ˆÑqƒÃC¡áÑFÇÇxpr‚{Ã!N{=œt»èîíáp{{;»Ø\ßÀÆú*ë5¤bQÄBAdÓ)Ì&˜KƐMőË$Q˜K£4?‹jaJ­…*šõ
Úõ*֖°»ÚFoo'G»¸×;ÀƒÁΎð ßÅãÑ�ç'Ë÷â^W:v²¿ ª¿½‰£õì./a»ÕZoT±R+a¹Rj•rX˜ŸCu6ùha§6£½F&Í Lê)˜Ô“pšTðXµÚuðððè§àÓN ŸB@7)¢]y NõØU·a™¹«â&Ú Ø40+oÁ¢º
@lushkant
lushkant / uploadMedia.json
Created June 27, 2021 11:09
[POST] /media - Response Data
{
"id": 33,
"date": "2021-06-27T11:05:34",
"date_gmt": "2021-06-27T11:05:34",
"guid": {
"rendered": "http://mediabrew.local/wp-content/uploads/2021/06/1614407792144-copy.png",
"raw": "http://mediabrew.local/wp-content/uploads/2021/06/1614407792144-copy.png"
},
"modified": "2021-06-27T11:05:38",
"modified_gmt": "2021-06-27T11:05:38",
@lushkant
lushkant / customPageTemplates.json
Created June 27, 2021 10:59
[GET] /templates - Response Data
{
"body": [
{
"id": 32,
"date": "2021-06-27T10:57:32",
"date_gmt": "2021-06-27T10:57:32",
"guid": {
"rendered": "http://mediabrew.local/?web-story-page=32",
"raw": "http://mediabrew.local/?web-story-page=32"
},
@lushkant
lushkant / deleteCustomPageTemplate.json
Created June 27, 2021 10:56
[DELETE] /templates/{id} - Response Data
{
"deleted": true,
"previous": {
"id": 27,
"date": "2021-06-26T05:37:47",
"date_gmt": "2021-06-26T05:37:47",
"guid": {
"rendered": "http://mediabrew.local/?web-story-page=27",
"raw": "http://mediabrew.local/?web-story-page=27"
},