This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 | |
B085E65E 2F5F5360 8489D422 FB8FC1AA | |
93F6323C FD7F7544 3F39C318 D95E6480 | |
FCCC7561 8A4A1741 68FA4223 ADCEDE07 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Http; | |
/** | |
* 01 - Set the auth config as usual in app/config/auth.php file. | |
* This example uses Eloquent driver... | |
* | |
* 02 - Create a Middleware for each auth context ex: Admin, Customers. | |
* | |
* 03 - Register the Middlewares in app/Http/Kernel.php routeMiddleware array... | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
আফটার ডিস্কানেট ইউর নেট, এনজয়! :D | |
1. licensed email: c2942269@drdrb.com | |
registration code: 00289623F7B3B81E14AEB526144B6D08 | |
2. licensed email: c2943267@drdrb.com | |
registration code: D772BE0279AFE60AF0E1D2109CA89A19 | |
(10 likes) | |
3. licensed email: iskar@mail.com | |
registration code: F3417231967A385CC355EA57DBCA0932 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker ps -aqf "name=containername" | |
where containername is your container name | |
explanation: | |
-q for quiet. output only the ID | |
-a for all. works even if your container is not running | |
-f for filter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Export: | |
drush sql-dump --gzip > db_backup/db-name_$(date +%Y-%m-%d-%H.%M.%S).sql.gz | |
drush cc all && drush sql-dump > db_backup/db-name-$(date +%Y-%m-%d-%H.%M.%S).sql | |
Import: | |
gunzip -c db_backup/db_name.sql.gz | pv | drush sqlc | |
drush sqlc < db_backup/db_name.sql | |
mysql -u username -p database_name < db.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{REQUEST_URI} ^/sites/default/files/(.*)$ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ http://sites.com/$1 [L,QSA] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To turn on JS Aggregation | |
drush vset preprocess_js 1 --yes | |
// To clear all Cache | |
drush cc all | |
// To disable JS Aggregation | |
drush vset preprocess_js 0 --yes | |
// To clear cache of JS and CSS only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("form :input").each(function(index, elem) { | |
var eId = $(elem).attr("id"); | |
var label = null; | |
if (eId && (label = $(elem).parents("form").find("label[for="+eId+"]")).length == 1) { | |
$(elem).attr("placeholder", $(label).html()); | |
$(label).remove(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Translucent borders | |
*/ | |
body { | |
background: url('http://csssecrets.io/images/stone-art.jpg'); | |
} | |
div { | |
border: 10px solid hsla(0,0%,100%,.5); |