Skip to content

Instantly share code, notes, and snippets.

View staticf0x's full-sized avatar

Riley staticf0x

View GitHub Profile
@sts10
sts10 / rust-command-line-utilities.markdown
Last active May 7, 2024 08:15
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
@Speedy37
Speedy37 / userChrome.css
Last active June 2, 2021 08:54
[Proton] button to tabs, sound icon, menu padding
/** Add small space at the top */
.tab-stack {
margin-top: 4px;
}
/** Make tabs looks like tabs not buttons */
/* attach tabs to the toolbar */
.tab-background {
margin: 0px !important;
border-bottom-left-radius: 0 !important;
@RedRoserade
RedRoserade / docker-fedora-33-dns.md
Last active February 15, 2024 14:54
Working around Docker DNS issues on Fedora 33. Adapted from https://stackoverflow.com/a/60113249

Problem

Docker on Fedora 33 has issues with systemd-resolved. This causes DNS issues when, for example, connecting VPNs, because it'll use the wrong DNS server, especially if you have several configured. The one from systemd-resolved is ignored since it's a 127.0.0.X address.

This causes containers to not be able to resolve addresses on the private network (VPN).

Solution

Use dnsmasq to listen on docker0 and forward DNS requests to systemd-resolved running on 127.0.0.53.

@timvisee
timvisee / falsehoods-programming-time-list.md
Last active May 6, 2024 20:05
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).