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
| Magento | |
| Magento is a great platform for your business if you have the development resources; finances and budget and want an scalable system for the future | |
| Pros of Magento | |
| • Open-source so you can tweak it as much as you want with zero licensing fees. | |
| • Feature-rich Packed with features that an Ecommerce store needs in the core code | |
| • Large community of users, developers, and service-providers | |
| • Optimized for large stores | |
| • Multiple Online Stores in One |
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
| Change links to HTTPS static site | |
| cd /path/to/your/website | |
| find ./ -type f -exec sed -i 's/http:/https:/g' {} \; |
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
| # works the same as git from command line on any machine | |
| # will need to connect cloud9 - github via ssh key | |
| # Go here and create a new key https://c9.io/account/ssh | |
| # copy the key | |
| # go to https://github.com/settings/keys set key | |
| wiseguys:~/workspace (master) $ git add . | |
| wiseguys:~/workspace (master) $ git commit -m 'few updates' | |
| blah |
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
| <?php | |
| /** | |
| * Form action attribute. | |
| * | |
| * @return null | |
| */ | |
| function sr_form_action( ) { | |
| global $step; | |
| echo basename( __FILE__ ) . '?step=' . intval( $step + 1 ); |
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
| Top Command Line Tips: Apache Access Log | |
| tail - view the end of file/input, last 10 lines by default. | |
| -f - append new lines as the file grows | |
| head - view the start of a file/input | |
| grep - search a file/input | |
| -E - extended regular expressions | |
| -f - get search patterns from file | |
| sort - err... |
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
| Insecure file upload handling (this is the cause of the most exploited type of vulnerability, arbitrary file upload) | |
| Deserialization of untrusted data | |
| Security issues with functions accessible through WordPress’ AJAX functionality (those are a common source of disclosed vulnerabilities these days) | |
| Persistent cross-site scripting (XSS) vulnerabilities in publicly accessible portions of the plugin | |
| Cross-site request forgery (CSRF) vulnerabilities in the admin portion of plugins | |
| SQL injection vulnerabilities (the code that handles requests to the database) | |
| Reflected cross-site scripting (XSS) vulnerabilities | |
| Lack of protection against unintended direct access of PHP files |
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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{REQUEST_METHOD} ^(HEAD|TRACE|DELETE|TRACK) [NC] | |
| RewriteRule ^(.*)$ — [F,L] | |
| RewriteCond %{QUERY_STRING} \.\.\/ [NC,OR] | |
| RewriteCond %{QUERY_STRING} boot\.ini [NC,OR] | |
| RewriteCond %{QUERY_STRING} tag\= [NC,OR] | |
| RewriteCond %{QUERY_STRING} ftp\: [NC,OR] | |
| RewriteCond %{QUERY_STRING} http\: [NC,OR] |
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
| http://aiplaybook.a16z.com/docs/guides/dl-architectures | |
| https://google.ai/ |
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
| UNBUNTU | |
| /etc/php/5.6/cli/php.ini is for the CLI PHP program, which you found by running php on the terminal. | |
| /etc/php/5.6/cgi/php.ini is for the php-cgi system which isn't specifically used in this setup. | |
| /etc/php/5.6/apache2/php.ini is for the PHP plugin used by Apache. This is the one you need to edit for changes to be applied for your Apache setup. | |
| /etc/php/5.6/fpm/php.ini is for the php5-fpm processor, which is a fastcgi-compatible 'wrapper' for PHP processing (such as to hand off from NGINX to php5-fpm) and runs as a standalone process on the system (unlike the Apache PHP plugin) |