Skip to content

Instantly share code, notes, and snippets.

View nkpro2000's full-sized avatar
💻
Learning....

nkpro2000

💻
Learning....
View GitHub Profile
@nkpro2000
nkpro2000 / create_m3u.py
Created June 22, 2020 19:11
To create playlist.m3u in alphabetical order from directory
from urllib.parse import quote
import os
playlist_name = input("Enter playlist name >")
dir_path = input("Enter directory path >")
dir_path = os.path.abspath(dir_path)
songs = os.listdir(dir_path)
songs = list(map((lambda x:os.path.join(dir_path, x)), songs))
@nkpro2000
nkpro2000 / etc_lsb-release
Last active June 24, 2020 15:06
It solve some issues in BOSS linux by faking as ubuntu
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS [really BOSS linux]"
@nkpro2000
nkpro2000 / ToDownload.ipynb
Created August 7, 2020 21:34 — forked from nkpro2000sr/ToDownload.ipynb
To download large files directly into google drive (later we can split and download)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nkpro2000
nkpro2000 / kodis
Last active June 22, 2022 18:06
Script for KODI IPTV related functions
#!/usr/bin/sh
# Kodi script for IPTV related functions
install () {
sudo pacman -S kodi
echo set these env vars in build function at PKGBUILD
echo 'CFLAGS="$CFLAGS -Wp,-U_GLIBCXX_ASSERTIONS"'
echo 'CXXFLAGS="$CXXFLAGS -Wp,-U_GLIBCXX_ASSERTIONS"'
@nkpro2000
nkpro2000 / reeldels.py
Last active July 4, 2022 20:25
To download reel you saved in facebook from facebook
import os
import json
import requests
os.chdir('reels')
try:
li = int(sorted(os.listdir('./dels'))[-1].split('.')[0])
except FileNotFoundError: li = 0
@nkpro2000
nkpro2000 / norootflatpak.sh
Created June 14, 2023 08:43
Flatpak need no root access, excpet flatpak-system-helper (to access system-wide installtions). This script will remove root access from that too.
#Yet2Do
@nkpro2000
nkpro2000 / do
Created August 29, 2023 12:23
Just to download pkgbuild files of all packages in AUR
#!/bin/sh
get () {
curl 'https://aur.archlinux.org/packages?PP=2500&SB=n&O='"$(echo "($1 - 1) * 2500" |bc)" > "$1.html"
grep -oP --color '(?<="/packages/)[^"]+(?=")' "$1.html" > "$1.list"
}
if test -n "$2"; then
for i in $(seq "$1" "$(qalc -t "ceil ($2 / 2500)")"); do
get "$i"