This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Yet2Do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import requests | |
os.chdir('reels') | |
try: | |
li = int(sorted(os.listdir('./dels'))[-1].split('.')[0]) | |
except FileNotFoundError: li = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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"' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DISTRIB_ID=Ubuntu | |
DISTRIB_RELEASE=18.04 | |
DISTRIB_CODENAME=bionic | |
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS [really BOSS linux]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |