This file contains hidden or 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
import https from "https"; | |
import fs from "fs"; | |
import axios from "axios"; | |
const CERT_URL = | |
`https://api.zerossl.com/certificates/${certificateId}/download/return?access_key=${accessKey}`; | |
const run = async () => { | |
const res = await axios.get(CERT_URL); |
This file contains hidden or 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
create or replace function generate_uuid_v4_timestamp() | |
returns uuid | |
as $$ | |
declare | |
ts_text text; | |
uuid_text text; | |
begin | |
ts_text = to_char(clock_timestamp() at time zone 'utc', 'YYYYMMDDHH24MISSUS'); | |
uuid_text = gen_random_uuid()::text; | |
return concat( |