Skip to content

Instantly share code, notes, and snippets.

View FTKhanFT's full-sized avatar
🌏
Working for the community

Tanvir Ahmed Khan FTKhanFT

🌏
Working for the community
View GitHub Profile
@FTKhanFT
FTKhanFT / deploy.sh
Last active January 26, 2025 18:14
Deploy NodeJs/TS/Any Js framework app in ubuntu using pm2. Also supports Prisma ORM. Uses git url or project directory. Uses ecosystem.config.js file in the project directory to handle the pm2 management.
#!/bin/bash
# Author: Tanvir Ahmed Khan
# License: MIT License
# Github: https://github.com/ftkhanft
# Website: https://rrad.ltd
# Before running this make sure you have the ecosystem.config.js file in your project directory you cloned or in the git repo that you want to deploy. Referance file added below this script.
# Use the setup script added below this script or directly run in terminal:
# curl -s -L https://gist.githubusercontent.com/FTKhanFT/b87ef1bcfff51814b45815ad708fdcc1/raw/4f47ef626f2865b601cb81d628e4c89f04db1604/setup_script.sh | bash
@FTKhanFT
FTKhanFT / 3d_lut.sh
Created December 6, 2023 12:28 — forked from jordanwesthoff/3d_lut.sh
Applying 3D LUT's in FFMPEG
#!/bin/bash
ffmpeg -i input -vf lut3d=<lut file> -c:a copy output
@FTKhanFT
FTKhanFT / keys.txt
Created June 12, 2023 10:35 — forked from f0r34chb3t4/keys.txt
Proxifier.txt
Portable Version KEYS:
P6Z3T-UYJC9-YAK3F-APN9M-6ZDSD
FGZPK-93CWX-Q33Y6-D5URV-YXC3X
9CZQX-9YAQA-PF33L-XVUQH-NSD48
8RZ3L-H3Y5L-W2RY5-Z5M8N-C7Z2U
CCZNU-LW3LF-K9V2T-MYZFF-94667
EWZM6-3W4UX-KH922-C96GK-VGBH2
Standard Version KEYS:
4AZNW-S2YHE-LLMWM-J6EL8-7QKDL
@FTKhanFT
FTKhanFT / RemoveDups_MongoDb.txt
Created June 19, 2021 06:45
Delete Any duplicate documents in a collection in Mongo DB in less than seconds with aggregation.
var duplicates = [];
db.getCollection('CollectionName').aggregate([ // CollectionName = Your collection name
{ $match: {
name: { "$ne": '' } // discard selection criteria
}},
{ $group: {
_id: { FieldName: "$FieldName"}, // FieldName = Matching field; can be grouped on multiple properties
dups: { "$addToSet": "$_id" }, // _id
count: { "$sum": 1 }
}},
@FTKhanFT
FTKhanFT / cache_x_example.dart
Last active February 5, 2021 23:30
How to use cache_x package from the Example project
import 'package:cache_x/cache_x.dart';
import 'package:flutter/material.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Initialize password
// Password length must be 128/192/256 bits
// You can use the password of 16 character,24 character or 32 character.
String password = 'CBoaDQIQAgceGg8dFAkMDBEOECEZCxg=';
{"lastUpload":"2021-02-24T14:40:21.470Z","extensionVersion":"v3.4.3"}
Organization name: [email protected]
Serial Key: eNrzzU/OLi0odswsqslJTa3IzHJIz03MzNFLzs+tMTQyNrcwsTQyAIEa5xpDAIFxDy8k
@FTKhanFT
FTKhanFT / archinstallguide.md
Created December 6, 2019 00:24
Arch Linux Installation Guide

Arch Linux Installation Guide

This guide will show step-by-step how to install Arch Linux on UEFI mode.

Table of Contents

  • Bootable Flash Drive
  • BIOS
  • Pre-installation
    • Set Keyboard Layout
    • Check boot mode
  • Update System Clock
@FTKhanFT
FTKhanFT / setup.sh
Created October 13, 2019 12:04 — forked from jjvillavicencio/setup.sh
Install Android SDK on Windows Bash (WSL)
cd /home/<user>/
sudo apt-get install unzip
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d Android
rm sdk-tools-linux-4333796.zip
sudo apt-get install -y lib32z1 openjdk-8-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc
cd Android/tools/bin
@FTKhanFT
FTKhanFT / installJdkTarGzUbuntu.sh
Created April 20, 2019 05:09 — forked from filipelenfers/installJdkTarGzUbuntu.sh
Install JDK from tar.gz Ubuntu
#Login as root
sudo su
#create jdk directory
mkdir /opt/jdk
#uncompress, change to your file name
tar -zxf jdk-8u5-linux-x64.tar.gz -C /opt/jdk
#check if files are there