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 / 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 / extractor.rs
Last active April 23, 2024 10:26
a clerk webhook verifier for axum
///! An [axum](https://docs.rs/axum) extractor for [Clerk webhooks](https://clerk.com/docs/integration/webhooks).
use axum::{
body::Bytes,
extract::FromRequest,
http::{Request, StatusCode},
response::{IntoResponse, Response},
};
// TODO: replace with your config
use happycamper_util::config::CONFIG;
use serde::{Deserialize, Serialize};
@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="."