Skip to content

Instantly share code, notes, and snippets.

View hberson's full-sized avatar

Henry Berson Saint-Juste hberson

View GitHub Profile
// Control Flow
// Baisc Control Flow
var isReady = false;
if (isReady) {
console.log("The user is ready to sign up.");
} else {
console.log("The user is not ready to sign up.");
export default ({ env }) => ({
upload: {
config: {
provider: "strapi-provider-upload-aws-s3-advanced",
providerOptions: {
accessKeyId: env("AWS_S3_ACCESS_KEY_ID"),
secretAccessKey: env("AWS_S3_ACCESS_SECRET"),
region: env("AWS_REGION"),
params: {
Bucket: env("AWS_BUCKET_NAME"),
@hberson
hberson / gist:9b0cd071359811a7d8c9100d054f1102
Created September 29, 2023 14:42
strapi s3 middleware
module.exports = ({ env }) => [
"strapi::errors",
"strapi::security",
"strapi::cors",
"strapi::poweredBy",
"strapi::logger",
"strapi::query",
"strapi::body",
"strapi::session",
"strapi::favicon",
@hberson
hberson / gist:fa7b62ec817d405068ca0e8f27adfd7a
Created September 28, 2023 15:17
Use to wait for db connection
#!/usr/bin/env sh
#
# Compare a command exit status to some given number(s) for a period of time.
CMD_NAME="${0##*/}"
CMD=""
STATUS=0
TIME=10
TIME_START=0
QUIET=0
@hberson
hberson / cssNamedColors.csv
Last active July 9, 2023 01:38
CSS Named Colors
Keyword RGB hex value
aliceblue #f0f8ff
antiquewhite #faebd7
aqua #00ffff
aquamarine #7fffd4
azure #f0ffff
beige #f5f5dc
bisque #ffe4c4
black #000000
blanchedalmond #ffebcd
@hberson
hberson / multiple_ssh_setting.md
Created April 1, 2023 04:52 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"