- zlib >= 1.2.11
- Qt 6.5.0
- Despite building headless application, the QT library should be installed
- CMake >= 3.16
- Boost >= 1.76
- libtorrent-rasterbar 1.2.19
- Python >= 3.7.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
import re | |
import os | |
import time | |
import googleapiclient.discovery | |
from datetime import timedelta | |
from functools import reduce | |
API_TEST_CHANNEL = "UC_x5XG1OV2P6uZZ5FSM9Ttw" # Google Developers YouTube channel | |
MAX_RESULTS = 10 |
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
Get-ChildItem | Select-Object -ExpandProperty Name | ForEach-Object { $_.Substring(0, $_.LastIndexOf(".")) } |
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
// ParseDuration | |
let | |
ParseDuration = (duration as text) as nullable time => | |
let | |
minutesText = Text.BetweenDelimiters(duration, "PT", "M"), | |
secondsText = Text.BetweenDelimiters(duration, "M", "S"), | |
minutes = if minutesText <> "" then Number.FromText(minutesText) else 0, | |
seconds = if secondsText <> "" then Number.FromText(secondsText) else 0, | |
time = #time(0, minutes, seconds) | |
in |
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 argparse | |
import os | |
import pandas as pd | |
import requests | |
from requests.adapters import HTTPAdapter, Retry | |
import concurrent.futures | |
from pathlib import Path | |
from tqdm import tqdm | |
from datetime import datetime |
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 http.server import HTTPServer, SimpleHTTPRequestHandler | |
import ssl | |
import socketserver | |
httpd = HTTPServer(('0.0.0.0', 4443), SimpleHTTPRequestHandler) | |
httpd.socket = ssl.wrap_socket (httpd.socket, | |
keyfile=r"C:/Users/username/.certs/key.pem", | |
certfile=r'C:/Users/username/.certs/cert.pem', server_side=True) |
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
yt-dlp.exe --downloader ffmpeg --downloader-args "ffmpeg:-t 40" |
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
$files = Get-ChildItem -Recurse "*.*" | |
foreach ($f in $files) { | |
If ($f.attributes -eq 4199968) { | |
$outfile = $f.FullName | |
$attrs = $f.attributes | |
Write-Output "file: $outFile`nlen: $((Get-Item $f).length)`nattrs: $attrs" | |
Remove-Item $f | |
echo $outfile >> files.txt | |
} |
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 sys | |
import os | |
from pathlib import Path | |
CHUNK_LENGTH = 59 | |
def cut_chunks(file_name=None, resize=False): | |
if not file_name: | |
print("enter file name") |
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
def find_unique(a, b): | |
return [item for item in b if item not in a] | |
a = open("file1.txt", "rb").readlines() | |
b = open("file2.txt", "rb").readlines() | |
with open("out.txt", "wb") as f: | |
unique_lines = find_unique(a, b) | |
for line in unique_lines: |
NewerOlder