Skip to content

Instantly share code, notes, and snippets.

View mortalis13's full-sized avatar

Roman mortalis13

View GitHub Profile
@mortalis13
mortalis13 / gist:d83aeab3c2bbd04a799b0f7ce79b99ec
Created December 30, 2024 17:22
ffmpeg video recording info
Hardware acceleration methods:
cuda
dxva2
qsv
d3d11va
opencl
vulkan
ffmpeg -h encoder=h264_amf
ffmpeg -h encoder=hevc_amf
@mortalis13
mortalis13 / import_bookmarks.md
Created October 12, 2024 11:50
Import custom bookmark structure into Firefox

Save the snippet as an HTML file and use Import Bookmarks from HTML from the Firefox Library.
This will create folders for each H3 under the global category from H1, and corresponding links (DL -> DT) under the folders.

<H1>Bookmarks Menu</H1>
<DL><p>
  <DT><H3>Folder 1</H3>
  <DL><p>
    <DT><A HREF="https://github.com">Link 1.1</A>
 
@mortalis13
mortalis13 / min-psql.md
Created October 1, 2024 09:05
Minimal psql setup
Web Scraping with Python. 3rd
Introduction to 64 Bit Windows Assembly Programming. 4th
Exam Ref AZ-900. Microsoft Azure Fundamentals. 3rd

Script tested on Windows 10, with all icons visible setting.
Removes an icon by process name from the system tray.

; AutoHotkey v2
; Based on https://www.autohotkey.com/boards/viewtopic.php?p=414590#p414590 "[LIB] TrayIcon - Sean's TrayIcon for Unicode and 64 bit"

TrayIcon_GetTrayBar(sTray := "Shell_TrayWnd") {
  idxTB := "", nTB := ""
  dhw := A_DetectHiddenWindows

Script for changing the font of the title bar in Windows, without modifying registry directly and restarting the session.
Execute it with AutoHotkey v2 (put the code in the file font.ahk and run):

SetFont() {
    static SPI_GETNONCLIENTMETRICS := 0x0029
    static SPI_SETNONCLIENTMETRICS := 0x002A
    static SPIF_UPDATEINIFILE := 0x01
    static SPIF_SENDCHANGE := 0x02

    static StructureSize := 40 + 5 * 92  ; NONCLIENTMETRICS size: fields + 5 LOGFONT instances
  • download code from https://github.com/Anjok07/ultimatevocalremovergui
  • set numpy==1.24.2 in the requirements.txt, as the lower version has conflicts with multiple libraries
  • create venv
  • set SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True, for the warning from the sklearn library
  • pip install wheel, for the playsound issue with OSError: could not get source code
  • pip install -r requirements.txt
  • python UVR.py
@mortalis13
mortalis13 / Configure portable Python (embeddable package).md
Last active June 1, 2024 17:49
Configure portable Python (embeddable package).md
deemix.exe
--------------
-p . - download to current folder
-b 320 - download mp3 320 kbps
-b flac - download flac
config.json
--------------
"maxBitrate": "3"

To downaload an album from Deezer on Android, use deemix library for python:

The tool will ask for arl, which can be copied from the desktop browser (Firefox for example):