This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code generated by openapi-embed. DO NOT EDIT. | |
package {{.PackageName}} | |
import ( | |
"embed" | |
"io/fs" | |
) | |
//go:embed {{.Filename}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/rand" | |
"encoding/json" | |
"fmt" | |
"log" | |
"math/big" | |
"net/http" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function throwaway-postgres() { | |
local port | |
port="$((RANDOM%1000+40000))" | |
docker info >/dev/null || return 1 | |
if ! docker run \ | |
--rm \ | |
--detach \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Catch any exceptions, log them and rethrow the exception | |
* | |
* @see \Vendor\Library\Class::sendRequest() | |
* @param $subject | |
* @param callable $next | |
* @param mixed ...$args | |
* @return mixed | |
* @throws \Throwable |