Skip to content

Instantly share code, notes, and snippets.

View ashlineldridge's full-sized avatar

Ashlin Eldridge ashlineldridge

  • Melbourne, Australia
View GitHub Profile
@sts10
sts10 / rust-command-line-utilities.markdown
Last active October 30, 2025 03:46
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
@cherti
cherti / alert.sh
Created December 9, 2016 13:47
send a dummy alert to prometheus-alertmanager
#!/bin/bash
name=$RANDOM
url='http://localhost:9093/api/v1/alerts'
echo "firing up alert $name"
# change url o
curl -XPOST $url -d "[{
\"status\": \"firing\",
@mgoodness
mgoodness / k8s-svc-annotations.md
Last active September 7, 2024 16:25
AWS ELB-related annotations for Kubernetes Services (as of v1.12.0)
  • service.beta.kubernetes.io/aws-load-balancer-access-log-emit-interval (in minutes)
  • service.beta.kubernetes.io/aws-load-balancer-access-log-enabled (true|false)
  • service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-name
  • service.beta.kubernetes.io/aws-load-balancer-access-log-s3-bucket-prefix
  • service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags (comma-separated list of key=value)
  • service.beta.kubernetes.io/aws-load-balancer-backend-protocol (http|https|ssl|tcp)
  • service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled (true|false)
@Kimundi
Kimundi / java_rust_generic.md
Last active May 29, 2025 17:22
A light comparison between Rust and Java generics and type system features.

Introduction

If you are familiar with Java's generics, and are coming to Rust, you might be lead to assume that its generics are working the same way.

However, due to the different type systems, and different implementation details, there are quite a few differences between generic code in both languages.

This document tries to give a short summary about those differences:

Core functionality

Java

@jasonm23
jasonm23 / mac-frame-adjust.el
Last active February 14, 2021 21:27
This is something I use to move my emacs frame around (I generally only have one open, albeit with 10-100 buffers open.) the `global-set-key` bindings at the bottom will be clearer documentation than any convoluted explanation. That said, it'll move / size the frame around the largest display, here's the shonky bit, the assumption is the largest…
;; mac-frame-adjust.el - emacs-mac-port frame-adjust tool.
;; lots of preset frame size/positions in a convenient library.
;; Author: Jason Milkins
;; Requires: dash.el, s.el, cl-lib.el
;; Emacs Mac-Port, frame adjuster - for my personal use only.
;; because it's not very good ;)
;; No warranty or support are offered.
;; However, it's licenced under the MIT Licence
(require 'cl-lib)