Skip to content

Instantly share code, notes, and snippets.

View himanshu-dixit's full-sized avatar
🦖
Focusing

Himanshu Dixit himanshu-dixit

🦖
Focusing
View GitHub Profile
[2024-02-16 15:32:57.140 IST] INFO Moving status to processing from initiated {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
"id": "127659000",
"phoneNumber": "+916376004208",
"responseGeneratorId": "127659000"
}
[2024-02-16 15:32:57.140 IST] INFO Moving status to done from processing {
"ResponseSpeed": false,
"callSid": "CAdae2ea839feb7c8f83547d956b58cda4",
@himanshu-dixit
himanshu-dixit / load-test-staging.js
Created October 8, 2023 20:39
load-test-staging.js
import { sleep } from 'k6'
import http from 'k6/http'
// See https://k6.io/docs/using-k6/options
export const options = {
stages: [
{ duration: '1m', target: 50 },
{ duration: '3m', target: 100 },
{ duration: '1m', target: 50 },
],
curl 'https://api.investmint.club/api/v1/feed/media/toggle-curated' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Referer;' \
-H 'X-IM-API-KEY: yLpum7YLhC9aYsPs' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxNjY2NzM2OS1iM2QwLTQ2MDctODc4My0wMzlhZWMxZWRkMWUiLCJpYXQiOjE2OTE2NzIzMzUsImV4cCI6MTY5Njg1NjMzNX0.E8s3gE1oGBa57fXgWtNan0HfjhuDOaJpA2rgFbbExaQ' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) ReactNativeDebugger/0.14.0 Chrome/114.0.5735.199 Electron/25.3.0 Safari/537.36' \
-H 'Content-Type: application/json' \
--data-raw '{"itemId":"83960232-0cd8-4898-a369-11dcf22c4c9a","image":"iVBORw0KGgoAAAANSUhEUgAABQoAAAIlCAYAAACdAMU1AAAAAXNSR0IArs4c6QAA\r\nAGxlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAAB\r\nAAIAAIdpAAQAAAABAAAATgAAAAAAAADYAAAAAQAAANgAAAABAAKgAgAEAAAAAQAA\r\nBQqgAwAEAAAAAQAAAiUAAAAABdbAogAAAAlwSFlzAAAhOAAAITgBRZYxYAAAABxp\r\nRE9UAAAAAgAAAAAAAAETAAAAKAAAARMAAAESAAB6+F3RKpIAAEAASU
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MzgyMzk4MjcsImlzcyI6IkFQSVVhZUVWTjhIU052aCIsImp0aSI6IjIiLCJuYmYiOjE2MzU2NDc4MjcsInN1YiI6IjIiLCJ2aWRlbyI6eyJyb29tIjoibXlyb29tIiwicm9vbUpvaW4iOnRydWV9fQ.J6UOgidJP0h6GWqjs7tm5Gs2taPw1DcMRWJzOXitzOg
{
"name":{
"value":"test name",
"editable":false
},
"isSpecialSchedule":{
"value":true,
"editable":false
},
"applicableDays":[
<html xmlns="http://www.w3.org/1999/xhtml"><head> <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&amp;display=swap" rel="stylesheet"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0;"> <meta name="format-detection" content="telephone=no"> <!-- Responsive Mobile-First Email Template by Konstantin Savchenko, 2015. https://github.com/konsav/email-templates/ --> <style> /* Reset styles */ body { margin: 0; padding: 0; min-width: 100%; width: 100% !important; height: 100% !important;} body, table, td, div, p, a { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; line-height: 100%; } table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-collapse: collapse !important; border-spacing: 0; } img { border: 0; line-height: 100%; outline: none; text-decoration: no
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&amp;display=swap" rel="stylesheet">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0;">
<meta name="format-detection" content="telephone=no">
<style>
/* Reset styles */
body { margin: 0; padding: 0; min-width: 100%; width: 100% !important; height: 100% !important;}
body, table, td, div, p, a { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; line-height: 100%; }
@himanshu-dixit
himanshu-dixit / DomainConfig.json
Last active March 25, 2020 11:56
DomainConfig.json
{
"showCitiesList": true,
"userSubsriptionBox": {
"show": false
},
"showCheckoutFlow": true,
"privacyPolicy": {
"link": "/privacy-policy",
"show": true
},
{ component_id: '20717522',
linked_component_id: '20717522',
product_id: '27',
product_code: 'TE_4069_27',
date_id: '46090',
date_code: '',
start_date: '2019-12-13',
end_date: '2019-12-13',
local_payment: '0',
customer_payment: '0',
"use strict";
var readlineSync = require('readline-sync');
import IndexOther from './other';
class Index{
name:String;
constructor(name) {
// super(props);
this.name= name;
}