Skip to content

Instantly share code, notes, and snippets.

View qgy18's full-sized avatar
😀

Jerry Qu qgy18

😀
View GitHub Profile
@qgy18
qgy18 / index.js
Created March 23, 2024 05:15
update certificate to tencent cdn
const fs = require('fs');
const tencentcloud = require('tencentcloud-sdk-nodejs');
const TENCENTCLOUD_SECRET_ID = 'your secret id';
const TENCENTCLOUD_SECRET_KEY = 'your secret key';
const CERTIFICATE_PUBLIC_KEY_FILE = 'your public cert file';
const CERTIFICATE_PRIVATE_KEY_FILE = 'your private cert file';
const CERTIFICATE_DOMAIN = 'your domain';
#!/bin/bash
isDir()
{
local dirName=$1
if [ -d $dirName ]; then
echo true
else
echo false
fi