Skip to content

Instantly share code, notes, and snippets.

@thangdaoduc
thangdaoduc / clean_all_svgs.sh
Created May 18, 2022 02:57 — forked from j3j5/clean_all_svgs.sh
Apply SVG Cleaner to all the SVGs on a given folder
# https://github.com/RazrFalcon/svgcleaner/ must be installed
find . -type f -name "*.svg" | sudo xargs -I file svgcleaner file file
@thangdaoduc
thangdaoduc / nginx.conf
Created June 10, 2021 09:05 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = grantdavis
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = YES
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
APPLE_INTERNAL_DIR = /AppleInternal
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation