Skip to content

Instantly share code, notes, and snippets.

View j3rr7's full-sized avatar

Jeremy j3rr7

View GitHub Profile
@ibaifarina
ibaifarina / tauri_icon_gen.py
Created July 25, 2022 20:28
Automatically generate all different icons from a base image for a Tauri Application. It also creates the .ico and .icns files for both Windows and macOS.
"""
Generate icons for a Tauri Application
----------------------
By Ibai Farina
For correct functionality, the base logo should be 512x512 or larger (keeping the aspect ratio).
"""
__title__ = 'Tauri Icon Generator'
__author__ = 'Ibai Farina'
__license__ = 'MIT'
@hongkongkiwi
hongkongkiwi / ubuntu_fastest_package_mirror
Created June 20, 2022 04:49
One liner to find the fastest ubuntu mirror
curl -s http://mirrors.ubuntu.com/mirrors.txt | xargs -n1 -I {} sh -c 'echo `curl -r 0-102400 -s -w %{speed_download} -o /dev/null {}/ls-lR.gz` {}' | sort -g -r | head -1 | awk '{ print $2 }'