Skip to content

Instantly share code, notes, and snippets.

View iamphilrae's full-sized avatar

Phil Rae iamphilrae

View GitHub Profile
(function ($) {
/* Twitter Bootstrap Message Helper
** Usage: Just select an element with `alert` class and then pass this object for options.
** Example: $("#messagebox").message({text: "Hello world!", type: "error"});
** Author: Afshin Mehrabani <>
** Date: Monday, 08 October 2012
$.fn.message = function(options) {
//remove all previous bootstrap alert box classes
this[0].className = this[0].className.replace(/alert-(success|error|warning|info)/g , '');
iamphilrae / AWS S3 Public Bucket Policy
Created July 5, 2017 12:47
AWS S3 Public Bucket Policy
"Principal": {
"AWS": "*"
iamphilrae / MySQL Join Types
Last active November 4, 2019 14:22
MySQL Join Types
iamphilrae / HTML Maintenance Page
Created April 22, 2021 11:24
HTML Maintenance Page
<!doctype html>
<html lang="en">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex,nofollow">
iamphilrae / Laravel Clear Cache Commands
Created November 4, 2019 14:28
Laravel Clear Cache Commands
# Config Cache
php artisan config:clear
# Application Cache
php artisan cache:clear
# Route Cache
php artisan route:cache
# View Cache
iamphilrae / phpMyAdmin Export Filename Template, Including Date and Time
Last active April 3, 2024 20:30
phpMyAdmin Export Filename Template, Including Date and Time