Skip to content

Instantly share code, notes, and snippets.

View akash-gajjar's full-sized avatar
🎯
Focusing

Aakash Gajjar akash-gajjar

🎯
Focusing
View GitHub Profile
@akash-gajjar
akash-gajjar / tldv.py
Last active June 25, 2024 18:28
Download videos from TLDV.io
from datetime import datetime
from os import system
import requests
import json
## Please install ffmpeg before running this script and make sure it's in your PATH
## brew install ffmpeg
## Please install requests before running this script
## pip3 install requests
@akash-gajjar
akash-gajjar / PULL_REQUEST_TEMPLATE.md
Created May 3, 2023 12:19
PULL_REQUEST_TEMPLATE.md
@akash-gajjar
akash-gajjar / backup-restore.sh
Last active June 22, 2023 12:42
A script to perform backup and restore operations for a MongoDB database.
#!/bin/bash
# Script: backup-restore.sh
# Description: A script to perform backup and restore operations for a MongoDB database.
# Author: Aakash Gajjar
# Last modified: 2023-06-03
# S3 bucket to upload database backup file
bucketName=""
[
{
'$match': {
'driver_id': new ObjectId('657953b26a91175eb8b6bc93'),
'load_id': {
'$exists': true,
'$nin': [
'', null
]
}
@akash-gajjar
akash-gajjar / driver_timeline.js
Created January 31, 2024 07:15
Driver Change in Vehicle name using MongoDB query
[
{
$match: {
driver_id: ObjectId(
"656d9b8c6a91175eb8c3ea3a"
),
vehicle_name: { $nin: ["", "0", null] },
// vehicle_name: "5405"
},
},
{
"$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/schema-catalog.json",
"version": 1,
"schemas": [
{
"name": "1Password SSH Agent Config",
"description": "Configuration file for the 1Password SSH agent",
"fileMatch": ["**/1password/ssh/agent.toml"],
"url": "https://developer.1password.com/schema/ssh-agent-config.json"
},
@akash-gajjar
akash-gajjar / sample.json
Created March 15, 2024 12:04
assembly ai output
This file has been truncated, but you can view the full file.
{
"success": true,
"data": {
"transcript": {
"id": "0b45ec57-83af-4947-87e3-567803c308f6",
"language_model": "assemblyai_default",
"acoustic_model": "assemblyai_default",
"language_code": "en_us",
"status": "completed",
"audio_url": "https://cdn.assemblyai.com/upload/4e3e11d1-7537-4909-b6fa-17268f0df170",
@akash-gajjar
akash-gajjar / assembly.speaker-utterances.json
Created March 18, 2024 05:59
assembly.speaker-utterances.json
{
"success": true,
"data": {
"utterances": [
{
"speaker": "A",
"sentences": [
{
"confidence": 0.87960375,
"end": 3150,
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier', 'import'],
extends: [
'eslint:recommended',