Skip to content

Instantly share code, notes, and snippets.

View arnobk's full-sized avatar
🎯
Focusing

Arnob Karmokar arnobk

🎯
Focusing
View GitHub Profile
@arnobk
arnobk / bash_terminal_shortcuts.md
Created November 22, 2023 07:00
Bash Terminal Shortcuts

Bash Terminal Shortcuts

Cursor Movements

  • Ctrl + A: Moves cursor to start of the line.
  • Ctrl + E: Moves cursor to end of the line.
  • Alt + F: Moves one word forward.
  • Alt + B: Moves one word back.

Deleting Text

@arnobk
arnobk / Remove videos from Youtube Watch Later playlist.md
Created January 22, 2023 15:18 — forked from astamicu/Remove videos from Youtube Watch Later playlist.md
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@arnobk
arnobk / script.py
Created June 25, 2022 16:38
bdtickets
import requests
url = 'https://api.bdtickets.com:20102/v1/coaches/search'
payload = '{"fromStationId":"5ffb5909b086d27be1901df3","toStationId":"5ffb5909b086d27be1901e61","date":"2022-06-30"}'
headers = {'content-type': 'application/json', 'Accept-Charset': 'UTF-8'}
r = requests.post(url, data=payload, headers=headers)
available_buses = r.json()["data"]
#print(len(available_buses))
@arnobk
arnobk / service_install_fresh_by_arnob.me.cmd
Last active July 30, 2022 09:16
GoodByeDPI No Blacklist No DNS
@ECHO OFF
PUSHD "%~dp0"
set _arch=x86
IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" (set _arch=x86_64)
IF DEFINED PROCESSOR_ARCHITEW6432 (set _arch=x86_64)
echo Mod By Arnob Karmokar.
echo This script should be run with administrator privileges.
echo Right click - run as administrator.
echo Press any key if you're running it as administrator.
@arnobk
arnobk / fix_bangla_ocr.gs
Created April 29, 2020 09:29
Fix Bangla OCR Broken Font Problem via Google App Script
function mySnR() {
var templateID = "1hfqqqn3CVcPX774PagfLXjuLE1skLu9DV0m7wDGrvdU";
var documentID = DriveApp.getFileById(templateID).getId();
var document = DocumentApp.openById(documentID);
document.replaceText("খাে","খো");
document.replaceText("গাে","গো");
document.replaceText("ঘাে","ঘো");
document.replaceText("ছাে","ছো");
document.replaceText("তাে","তো");
document.replaceText("নাে","নো");
@arnobk
arnobk / sort_nafi.m
Created March 1, 2020 19:02
Matlab Code for sorting array using bubble sort algorithm
close all
clear all
clc
data1 = [2 5 4 5 4 4 1 3];
data2 = [.02 .13 .14 .63 .53 .11 .22 .26];
for i= 1:length(data1) - 1
for j = 1:length(data1) - 1
if(data1(j)>data1(j+1))
@arnobk
arnobk / 1a.cpp
Last active October 12, 2017 23:17
Semester Final Question Solve | EEE 2109 | SPRING 2017 | Programming Language
/*
LINE 1: Wrong header. Correct Header <iostream>.
LINE 2: Missing namespace declearation.
LINE 3: Missing Main Function Scope.
LINE 5: Wrong operator for cout. Correct one "<<".
Missing cout operator before endl.
LINE 6: Wrong operator for cin. Correct One ">>".
Variable a,b not decleared.
LINE 8: Semicolon after if statement.
LINE 10: Condition on else statement.