This file contains hidden or 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 | |
def create_html_file(input_dir, output_file): | |
with open(output_file, 'w', encoding='utf-8') as outfile: | |
outfile.write('''<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>HTML Book</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<style> |
This file contains hidden or 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
git clone https://github.com/fishaudio/fish-speech | |
cd fish-speech | |
py -3.10 -m venv venv | |
.\venv\Scripts\activate | |
python -m pip install --upgrade pip | |
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu121 | |
pip install -e . | |
pip install https://github.com/AnyaCoder/fish-speech/releases/download/v0.1.0/triton_windows-0.1.0-py3-none-any.whl |
This file contains hidden or 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/bash | |
sudo apt install g++ make autoconf automake libtool pkg-config nasm git meson | |
mkdir builds | |
cd builds/ | |
ls | |
git clone --branch release-3.0.5 https://github.com/sekrit-twc/zimg.git | |
cd zimg/ |
This file contains hidden or 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 requests | |
from translator.basetranslator import basetrans | |
class TS(basetrans): | |
def translate(self,content): | |
result = "" | |
host = "127.0.0.1" | |
port = "5444" |
This file contains hidden or 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
@echo off | |
@setlocal enableextensions enabledelayedexpansion | |
set exclude=_COMPRESSED_ | |
for /f "tokens=*" %%a in ('dir . /b') do ( | |
set fname=%%~na | |
set ext=%%~xa | |
if !ext!==.mp4 ( | |
echo !fname!!ext! | |
echo.!fname! | findstr /C:"!exclude!">nul && ( |
This file contains hidden or 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/env python | |
import os | |
import re | |
import argparse | |
import concurrent | |
import subprocess | |
import uuid | |
import torch # cuda: 1.13.1+cu117 |
This file contains hidden or 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 sqlite3 | |
import time | |
from bs4 import BeautifulSoup | |
ids = set() | |
user = os.environ['USERPROFILE'].replace("\\", "/") | |
adr = u"file:" + user + u"/AppData/Local/Microsoft/Windows/Notifications/wpndatabase.db?mode=ro" |
This file contains hidden or 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/bash | |
folder="preview"; | |
declare -a formats=("png" "jpg" "jpeg" "bmp" "webp"); | |
#mkdir "$folder"; | |
echo "push service: scanning $folder/ ..."; | |
for ext in "${formats[@]}"; do | |
for file in *."$ext"; do | |
if [ -f "$file" ]; then | |
new_file="$folder/${file%.*}.jpg"; | |
if ! [ -f "./$new_file" ]; then |
This file contains hidden or 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
/_prmt.lnk | |
/_absr.lnk |
This file contains hidden or 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
@ECHO OFF | |
rem chcp 1251 | |
set input_folder="C:\Users\fnx\GoogleDrive\Books" | |
set output_folder="F:\Books" | |
echo input_folder: %input_folder% | |
echo input_folder: %output_folder% | |
echo | |
echo -------------------------------------------- | |
echo in: | |
dir /a %input_folder% |
NewerOlder