Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am yommu on github.
  • I am mujoosmanovic (https://keybase.io/mujoosmanovic) on keybase.
  • I have a public key whose fingerprint is EC3B D354 B0DC A6C6 72C7 5098 7E09 D7A3 4C2D 0452

To claim this, I am signing this object:

@yommu
yommu / cors-apache.cfg
Created March 8, 2017 10:04 — forked from chales/cors-apache.cfg
Apache directive for a CORS to be used in a vhost or htaccess
<IfModule mod_headers.c>
# Enter possible domains and a cathcall regex for the subdomain.
SetEnvIf Origin "^http(s)?://(.+\.)?(domain1\.com|domain2\.com|domain3\.com)$" AllowOrigin=$0
Header always set Access-Control-Allow-Origin "%{AllowOrigin}e" env=AllowOrigin
Header merge Vary "Origin"
Header always append Access-Control-Max-Age "1000"
Header always append Access-Control-Allow-Headers "X-Requested-With, Content-Type, Origin, Authorization, Accept, Accept-Encoding, \
if-modified-since, pragma, cache-control"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
@yommu
yommu / .bash_profile
Created March 8, 2017 10:01 — forked from chales/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management