Skip to content

Instantly share code, notes, and snippets.

View curkle's full-sized avatar

Curkle curkle

  • Curkle Inc.
  • Toronto
View GitHub Profile
@curkle
curkle / gist:71f6270f87f5eddf5949263ff7d077ae
Last active January 23, 2018 05:26
Mangeto 2 CloudFront Setup
sample htaccess:
<IfModule mod_rewrite.c>
Header add Access-Control-Allow-Origin: "*"
Header add Access-Control-Allow-Headers: "Content-Type"
Header add Access-Control-Allow-Headers: "x-requested-with"
RewriteEngine on
RewriteBase /
</IfModule>
@curkle
curkle / watchdog.sh
Last active August 29, 2015 14:19 — forked from vodolaz095/watchdog.sh
#!/bin/bash
# Service watchdog script
# Put in crontab to automatially restart services (and optionally email you) if they die for some reason.
# Note: You need to run this as root otherwise you won't be able to restart services.
#
# Example crontab usage:
#
# Strict check for apache2 service every 5 minutes, pipe results to /dev/null
# */5 * * * * sh /root/watchdog.sh apache2 "" > /dev/null
#