Skip to content

Instantly share code, notes, and snippets.

Salah Alkhwlani yemenifree

Block or report user

Report or block yemenifree

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View google-tags.html
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5FXXK2T');</script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5FXXK2T"
View homebrew_multiple_mysql_versions.md

Multiple MySQL Versions with Homebrew

For homebrew version 0.9.5.

brew -v # => Homebrew 0.9.5

Install the current version of mysql.

# Install current mysql version
brew install mysql
@yemenifree
yemenifree / HasSetUpOnce.php
Last active Mar 26, 2018
run setUp once for all test methods after app boot
View HasSetUpOnce.php
<?php
namespace Tests\Traits\Common;
trait HasSetUpOnce
{
/**
* flag to save setUp status when run test methods.
*
* @var bool
@yemenifree
yemenifree / .md
Created Jan 30, 2018 — forked from SethCalkins/.md
Fix for .app "is damaged and can't be opened"
View .md

This is a fix for MAC OS Complaining about Damaged App

Run Following on Application

Example

xattr -rc /Applications/MyApp.app
@yemenifree
yemenifree / .htaccess
Created Nov 26, 2017
basic speed htaccess
View .htaccess
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
# Set up caching on media files for 1 year (forever?)
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>
@yemenifree
yemenifree / .php_cs
Last active Nov 19, 2017
Laravel 5.x php-cs-fixer v2 config file
View .php_cs
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('bootstrap')
->exclude('storage')
->exclude('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->notName('_ide_helper.php')
You can’t perform that action at this time.