Skip to content

Instantly share code, notes, and snippets.

View fnLog0's full-sized avatar
🎯
Focusing

Nasim Akhtar fnLog0

🎯
Focusing
View GitHub Profile
@fnLog0
fnLog0 / download_youtube.sh
Last active January 3, 2025 10:23
YouTube Playlist to MP3 Downloader (macOS) 🎵
#!/bin/bash
# Function to check if yt-dlp is installed
check_yt_dlp() {
if ! command -v yt-dlp &>/dev/null; then
echo "yt-dlp not found. Installing it now..."
brew install yt-dlp
brew install ffmpeg
fi
}
@fnLog0
fnLog0 / delete-node-modules.sh
Created December 9, 2024 15:31
clean node-modules and .next
#!/bin/bash
# Directories to search and delete
TARGETS=("node_modules" ".next")
echo "Searching for ${TARGETS[*]} directories..."
# Find all target directories
found_dirs=$(find . \( -name "node_modules" -o -name ".next" \) -type d -prune)
@fnLog0
fnLog0 / keybase.md
Last active September 28, 2023 07:22

Keybase proof

I hereby claim:

  • I am fnlog0 on github.
  • I am fnlog0 (https://keybase.io/fnlog0) on keybase.
  • I have a public key ASCul9z1wfKr4jyNJBO3s2yMU1Jr8HI9Y6cz9k--u46MLwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am devnasim on github.
  • I am devnasim (https://keybase.io/devnasim) on keybase.
  • I have a public key ASAL0-znv84nkDwGoXJ99q6gC6GHJ_m3FkFIbrKLr9fdOQo

To claim this, I am signing this object:

@fnLog0
fnLog0 / font.sh
Created February 4, 2019 12:06
Google Font Installation Shell Script for Linux
sudo apt-get install fonts-cantarell, ttf-ubuntu-font-family, git
srcdir="/tmp/google-fonts"
pkgdir="/usr/share/fonts/truetype/google-fonts"
giturl="git://github.com/google/fonts.git"
mkdir $srcdir
cd $srcdir
echo "Cloning Git repository..."
git clone $giturl
@fnLog0
fnLog0 / goibibo-api-parser.js
Last active May 28, 2018 05:35
Goibibo public API data Normlization
import fetch from 'node-fetch';
import { map } from 'lodash';
const apiKey = 'API_Key';
const appID = 'App_Id';
const baseURL = 'http://developer.goibibo.com/api';
export default {
<head>
<link href="http://vjs.zencdn.net/6.6.3/video-js.css" rel="stylesheet">
<!-- If you'd like to support IE8 -->
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script>
</head>
<body>
<video id="my-video" controls class="video-js" controls preload="auto" width="640" height="264"
poster="https://images.pexels.com/photos/248797/pexels-photo-248797.jpeg?auto=compress&cs=tinysrgb&h=350.jpg" data-setup="{}">
@fnLog0
fnLog0 / gitcommand
Last active October 12, 2017 04:44
git init <directory>
(Create empty Git repo in specified directory. Run with no arguments
to initialize the current directory as a git repository.)
git clone <repo>
(Clone repo located at <repo> onto local machine. Original repo can be
located on the local filesystem or on a remote machine via HTTP or SSH .)
git config user.name <name>