Skip to content

Instantly share code, notes, and snippets.

View himanshuteotia's full-sized avatar
🎯
Focusing

Himanshu Teotia himanshuteotia

🎯
Focusing
View GitHub Profile
@himanshuteotia
himanshuteotia / index.html
Created October 26, 2017 13:16
Bootstrap Reodring
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
acclamation
accommodative
accommodative
achievable
achievable
acumen
admiringly
adorer
adoringly
adroit
@himanshuteotia
himanshuteotia / whatsapp.js
Last active April 11, 2022 13:29
Whatsapp script to automate the messages whenever person come online it will start sending the messages
let onlineClass = "YmixP";
let start = true;
let replyMessages = ["Hi", "Hello"];
let deleteClass = "SgIJV"
// Replace My Contact Name with the name
// of your WhatsApp contact or group e.g. title="Rahul"
let name = "Mummy";
setInterval(() => {
let express = require("express");
let request = require("request");
const ffmpeg = require("fluent-ffmpeg");
const fs = require("fs");
let track =
"https://cdn.fbsbx.com/v/t59.3654-21/52113399_803146416702766_1003332990597595136_n.mp4/audioclip-1551778334000-1950.mp4?_nc_cat=105&_nc_ht=cdn.fbsbx.com&oh=07e065c73899d3dd825828f4ce019138&oe=5C80FE67"; //your path to source file
async function createFile(track) {
new Promise((resolve, reject) => {
ffmpeg(track)
@himanshuteotia
himanshuteotia / combine.js
Created May 30, 2019 09:42
combine multiple xlsx files in a directory and save them into one file
var xlsx = require("xlsx");
var fs = require("fs");
function readFileToJson(filename) {
var wb = xlsx.readFile(filename);
var firstTabName = wb.SheetNames[0];
var ws = wb.Sheets[firstTabName];
var data = xlsx.utils.sheet_to_json(ws);
return data;
}
@himanshuteotia
himanshuteotia / login with csrf token
Created August 22, 2019 03:31
Login through coding (csrf token + cookies )
const request = require('request-promise');
const cheerio = require('cheerio');
(async () => {
console.log(`Initial request to get the csrf_token value..`);
let initialRequest = await request({
uri:'http://quotes.toscrape.com/login',
method: 'GET',

After this command we dont need add sudo before docker command in linux

sudo chmod 666 /var/run/docker.sock

Rasa docker

docker run -v myrasa:/app rasa/rasa init --no-prompt

What is FULL-TEXT SEARCH? What does FULL-TEXT SEARCH mean? FULL-TEXT SEARCH meaning - FULL-TEXT SEARCH definition - FULL-TEXT SEARCH explanation.
In text retrieval, full-text search refers to techniques for searching a single computer-stored document or a collection in a full text database. Full-text search is distinguished from searches based on metadata or on parts of the original texts represented in databases (such as titles, abstracts, selected sections, or bibliographical references).
In a full-text search, a search engine examines all of the words in every stored document as it tries to match search criteria (for example, text specified by a user). Full-text-searching techniques became common in online bibliographic databases in the 1990s. Many websites and application programs (such as word processing software) provide full-text-search capabilities. Some web search engines, such as AltaVista, employ full-text-search techniques, while others index only a portion of the web pages examined by their in
import { Connection, createConnection } from 'mongoose'
// import { log } from './logger'
const connectionOptions = {
dbName: 'app'
}
const MONGO_URL: string = process.env.MONGO_URL
console.log('MONGO_URL: ', MONGO_URL)
export const db: Connection = createConnection(MONGO_URL, connectionOptions)