Skip to content

Instantly share code, notes, and snippets.

View eddiezato's full-sized avatar

eddie.zato eddiezato

  • Toha Heavy Industries
  • Tanelorn
View GitHub Profile
@eddiezato
eddiezato / qbt.sh
Created December 13, 2023 16:16
Build qBittorrent in msys2/clang64
#!/bin/bash
while getopts 'cbd' flag ; do
case "${flag}" in
c) CLNFL=1 ;; # remove folder
b) BLD=1 ;; # build
d) DPL=1 ;; # deploy
esac
done
set -e
@eddiezato
eddiezato / genloss.ps1
Last active November 5, 2024 07:05
PowerShell: script to test generation loss (cjpeg, cjpegli, cjxl)
param (
[Alias('f')][string] $File = '0.png',
[Alias('i')][switch] $Images,
[Alias('v')][switch] $Video
)
function Start-Gen {
param ([string] $Encoder, [string] $InFile, [long] $TargetSize, [string[]] $ExOptions = @(), [string] $Title, [string] $Font, [string] $Color)
$MergeFile = $InFile -replace '\.png$', '_.png'
switch ($Encoder) { 'cjpeg' { $OutExt = '.jpg' }; 'cjpegli' { $OutExt = '.jpg' }; 'avifenc' { $OutExt = '.avif' }; 'cjxl' { $OutExt = '.jxl' }}
$OutFile = $InFile -replace '\.png$', $OutExt
@eddiezato
eddiezato / get_chrome.py
Last active December 12, 2024 03:51
Python: script to download and extract chrome installer
#!/usr/bin/env python3
import glob
import json
import msvcrt
import os
import requests
import shutil
import subprocess