Skip to content

Instantly share code, notes, and snippets.

View Fyko's full-sized avatar
🏠
Working from home

Carter Fyko

🏠
Working from home
View GitHub Profile
@Fyko
Fyko / Cargo.toml
Last active October 21, 2023 00:01
meilisearch sdk panic reproducable example
[package]
name = "meili-panic"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "meili-panic"
path = "main.rs"
[dependencies]
@Fyko
Fyko / README.md
Last active October 23, 2023 05:19
A script to prepend a commit to a list in a PR body section.

This is a script we use for prepend commits to our automated kube-flux staging->main PR.

Usage

$ cpanm DateTime
$ content="<!--START_SECTION:commits--><!--END_SECTION:commits-->"
$ content=$(perl ./update_commits_section.pl $content 'https://github.com/you/yours/commit/b47f8c0' "masked link content") # run this multiple times
$ echo $content

Keybase proof

I hereby claim:

  • I am fyko on github.
  • I am fyko (https://keybase.io/fyko) on keybase.
  • I have a public key ASCqOEO-DMy-WPFLLS6li_cDsdy45hs4cQZfx30Ug9Qitwo

To claim this, I am signing this object:

@Fyko
Fyko / delete_target_dirs.sh
Last active May 17, 2024 02:34
a shell script to delete Rust's `target` directory everywhere
#!/bin/sh
CYAN="\033[36m"
GREEN="\033[32m"
RESET="\033[0m"
total_size=0
count=0
BASE_DIR="."