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:
#!/bin/sh | |
CYAN="\033[36m" | |
GREEN="\033[32m" | |
RESET="\033[0m" | |
total_size=0 | |
count=0 | |
BASE_DIR="." |
I hereby claim:
To claim this, I am signing this object:
This is a script we use for prepend commits to our automated kube-flux staging->main PR.
$ 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
[package] | |
name = "meili-panic" | |
version = "0.1.0" | |
edition = "2021" | |
[[bin]] | |
name = "meili-panic" | |
path = "main.rs" | |
[dependencies] |
///! 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}; |
I hereby claim:
To claim this, I am signing this object:
sudo wget -O /usr/bin/envup https://gist.githubusercontent.com/Fyko/6bb4e995e58a9605eebdab85b749308d/raw/d9e7edbeae7cd76a9eae683c3926dd12b65c8a87/envup.sh
sudo chmod +x /usr/bin/envup
fn main() { | |
println!("hello world"); | |
} |
#!/usr/bin/env node | |
import { App } from '@serverless-stack/resources'; | |
import { request } from 'undici'; | |
/** eg: `us-west-1`, `us-east-2` */ | |
type AWSRegion = string; | |
/** eg: `18.4.0`, `16.14.0`, `14.17.0` */ | |
type SemVersion = `${number}.${number}.${number}`; | |
/** |
// MIT License - Copyright (c) 2022 PUSHAS PTY LTD. | |
import { ResourceNotFoundException, SecretsManager } from '@aws-sdk/client-secrets-manager'; | |
import { SecretsManagerRotationHandler } from 'aws-lambda'; | |
import fetch from 'node-fetch'; | |
const secretsClient = new SecretsManager({}); | |
export const generateAccessToken = async (roles: string) => { | |
const response = await fetch(`https://${process.env.AUTH0_M2M_DOMAIN}/oauth/token`, { | |
method: 'POST', |