Skip to content

Instantly share code, notes, and snippets.

View jeffhigham-f3's full-sized avatar

Jeff Higham jeffhigham-f3

View GitHub Profile
@jeffhigham-f3
jeffhigham-f3 / api.your-strapi-instance.com.conf
Last active November 29, 2023 18:03
Strapi Nginx Proxy + Certbot
server {
server_name api.your-strapi-instance.com;
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/api.your-strapi-instance.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/api.your-strapi-instance.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location / {
@jeffhigham-f3
jeffhigham-f3 / countries
Created August 30, 2021 11:17 — forked from kalinchernev/countries
Plain text list of countries
Afghanistan
Albania
Algeria
Andorra
Angola
Antigua & Deps
Argentina
Armenia
Australia
Austria
@jeffhigham-f3
jeffhigham-f3 / mysqlbackup.sh
Last active February 24, 2024 17:07
Mysql Database Backup & Rotation Script
#!/bin/bash
## Author: Jeff Higham <jeff@f3code.com>, <jeffhigham@gmail.com>
## Gist: https://gist.github.com/jeffhigham-f3/3b94d508269e614f1f2e701ada8239cc
##
## Usage: mysqlbackup
##
## BEGIN EDITING
# timestamp for backups
@jeffhigham-f3
jeffhigham-f3 / auth.dart
Last active September 12, 2020 16:09 — forked from nikhilmufc7/auth.dart
Firebase Flutter Platform Exception Codes
// Error Codes for SignUp
ERROR_OPERATION_NOT_ALLOWED` - Indicates that Anonymous accounts are not enabled.
ERROR_WEAK_PASSWORD - If the password is not strong enough.
ERROR_INVALID_EMAIL` - If the email address is malformed.
ERROR_EMAIL_ALREADY_IN_USE - If the email is already in use by a different account.
ERROR_INVALID_CREDENTIAL` - If the [email] address is malformed.
// sending password reset email
ERROR_INVALID_EMAIL` - If the [email] address is malformed.