Skip to content

Instantly share code, notes, and snippets.

View Brugarolas's full-sized avatar

Andrés Brugarolas Brugarolas

View GitHub Profile
@Brugarolas
Brugarolas / cleanEdge-shadertoy.glsl
Created September 18, 2023 00:27 — forked from torcado194/cleanEdge-shadertoy.glsl
cleanEdge, a pixel art upscaling algorithm for clean rotations
/*** MIT LICENSE
Copyright (c) 2022 torcado
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
@Brugarolas
Brugarolas / rust-command-line-utilities.markdown
Created November 30, 2023 14:37 — forked from sts10/rust-command-line-utilities.markdown
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
https://encode.su/threads/3015-Oodle-Lossless-Image-compression
https://aras-p.info/blog/2023/02/01/Float-Compression-3-Filters/
https://github.com/veluca93/fpnge/blob/926df95bce7bd1affaa0163572ac6f0ae692eb95/fpnge.cc#L619
https://www.investopedia.com/terms/a/autocorrelation.asp
https://ruby0x1.github.io/machinery_blog_archive/post/data-structures-part-2-indices/index.html
@Brugarolas
Brugarolas / tiny_fiber.h
Created February 28, 2024 00:47 — forked from JiayinCao/tiny_fiber.h
Tiny Fiber ( A razor thin cross platform fiber library )
/*
MIT License
Copyright (c) 2023 Jiayin Cao
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@Brugarolas
Brugarolas / convert2arch_x64.sh
Created March 8, 2024 23:40 — forked from zengxinhui/convert2arch_x64.sh
Replace Oracle Cloud Linux with Arch Linux remotely
[09/23/2023]
Refs:
1. http://mirror.cs.pitt.edu/archlinux/iso/2023.09.01/archlinux-bootstrap-2023.09.01-x86_64.tar.gz
2. https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/x86_64/alpine-virt-3.18.0-x86_64.iso
3. https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely
4. https://wiki.archlinux.org/index.php/installation_guide#Configure_the_system
See also:
1. Convert to Debian https://gist.github.com/zengxinhui/ee0ad6b7c7f99e2ead6cd0d2bd6641fd
@Brugarolas
Brugarolas / convert2arch_arm.sh
Created March 8, 2024 23:41 — forked from zengxinhui/convert2arch_arm.sh
Replace Oracle Cloud Linux with Arch Linux ARM remotely
[09/23/2023]
Refs:
1. http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
2. https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/aarch64/alpine-virt-3.18.0-aarch64.iso
3. https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely
4. https://wiki.archlinux.org/index.php/installation_guide#Configure_the_system
5. https://archlinuxarm.org/platforms/armv8/generic
See also:
@Brugarolas
Brugarolas / nerd_fonts.md
Created March 15, 2024 19:46 — forked from davidteren/nerd_fonts.md
Install Nerd Fonts via Homebrew [updated & fixed]
@Brugarolas
Brugarolas / ParkingLot.zig
Created March 20, 2024 15:42 — forked from kprotty/ParkingLot.zig
Small & Fast synchronization primitives for Zig
pub fn ParkingLot(comptime Config: type) type {
return struct {
pub const Lock: type = Config.Lock;
pub const Event: type = Config.Event;
pub const nanotime: fn() u64 = switch (@hasDecl(Config, "nanotime")) {
true => Config.nanotime,
@Brugarolas
Brugarolas / atomics.md
Created May 5, 2024 22:44 — forked from Azoy/atomics.md
Low-Level Atomic Operations