This file contains hidden or 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
| ### Commands that need Execution | |
| - sudo apt-get install apache2 && a2enmod ssl && service apache2 restart && mkdir /etc/apache2/ssl | |
| - sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt | |
| In the second command you can change the number of days. Here is one year only. | |
| From The questions you see after executing the second command the most important is the "Common Name". I personally put my static ip there. | |
| - sudo nano /etc/apache2/sites-available/default-ssl.conf |
This file contains hidden or 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
| *** executing a function after the user has stopped typing for a specified amount of time *** | |
| *** From http://stackoverflow.com/questions/1909441/jquery-keyup-delay *** | |
| var delay = (function(){ | |
| var timer = 0; | |
| return function(callback, ms){ | |
| clearTimeout (timer); | |
| timer = setTimeout(callback, ms); | |
| }; | |
| })(); |
This file contains hidden or 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
| compass create public -r zurb-foundation --using foundation | |
| Command info = Go to /var/www/project and then run the command, so it can create the structure in the public folder(laravel) | |
| In case of Virtual machine or working with a shared folder an error like "Errno::ETXTBSY on line ["897"]" Text file busy - may occur | |
| To solve this enter a line in the config.rb of the folder that do the "compass watch" | |
| Extra line |
This file contains hidden or 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
| Example | |
| @foreach ($invoice->items->load(['product'=> function($q){$q->withTrashed();}]) as $item){ | |
| // do stuff | |
| } |
This file contains hidden or 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
| yum install dejavu-lgc-sans-fonts | |
| This solved anything. |
This file contains hidden or 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
| 1. upload all files to /home/user/public_html | |
| 2. edit /var/cpanel/userdata/$username/$domain.com | |
| 3. change the document root path from public_html to public_html/public | |
| 4. /scripts/rebuildhttpdconf | |
| Done! |
This file contains hidden or 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
| function money($amount){ | |
| setlocale(LC_MONETARY, 'el_GR.UTF-8'); | |
| return money_format("%!n",$amount); | |
| } |
This file contains hidden or 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
| ############################################################################### | |
| ## The Master .htaccess | |
| ## | |
| ## Version 2.5 (proposed) - May 16th, 2011 | |
| ## | |
| ## ---------- | |
| ## This file is designed to be the template .htaccess file to put on your new | |
| ## sites, increasing your site's security and performance. It is not meant to | |
| ## be just dropped in your site, though. You should go through all of its | |
| ## sections and modify it to match your site. Most notably, all instances of |
This file contains hidden or 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
| ########################################## | |
| # NEW HTML5 DOC | |
| ########################################## | |
| <!doctype html> | |
| <html lang="en-US"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Default Page Title</title> | |
| <link rel="shortcut icon" href="favicon.ico"> |
This file contains hidden or 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
| # Filter Manufacturers shorting by name ASC | |
| FILE : administrator\components\com_virtuemart\models\manufacturer.php | |
| LINE: around 103 | |
| REPLACE: | |
| $query = "SELECT `virtuemart_manufacturer_id` AS `value`, `mf_name` AS text, '' AS disable | |
| FROM `#__virtuemart_manufacturers_".VMLANG."`"; |