This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.
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
| Para acessar a configuração no PHPStorm: ctrl + shift + A -> type: run debug -> Add Configuration -> + -> PHP Built-in Web Server | |
| se você tem um script server.php (para simular o mod_rewrite do apache*, roteador inicial) você deve marcar a opção "Use route script" | |
| em "interpreter options" coloque: -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 | |
| o resultado será: php -S localhost:8000 -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 |
{
"rulesDirectory": [
"node_modules/codelyzer"
],
"rules": {
"arrow-return-shorthand": true,
"callable-types": true,
"class-name": true,
-- "comment-format": [
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
| #!/bin/bash | |
| # SQL Server Driver Installer for Laravel Homestead | |
| # | |
| # This script downloads, compiles, and installs the PHP 7 extension | |
| # files for both the native sqlsrv and the PDO pdo_sqlsrv drivers. | |
| # Get the Microsoft Driver Source Code from Github | |
| cd ~ | |
| git clone https://github.com/Microsoft/msphpsql.git | |
| cd msphpsql |
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
| Installing Laravel 5.2 on Ubuntu 16.04 and Apache2 | |
| This post will document how I installed Laravel 5.2, on Apache2 on an Ubuntu 16.04 server. Will will also install MySQL, as we will need a database, and PHP which is required by Laravel. This will be the starting point of most of my posts, so if you’re following along from scratch…this is “scratch!” | |
| First thing you need, of course, is the Ubuntu 16.04 server, with an SSH connection. Follow these excellent instructions and get yourself sorted out with one. Make sure you also give the server a static IP address (step 8., in the linked instructions). Come back when you’re done. | |
| … | |
| Welcome back! Lets get started. |
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 | |
| $view = new View($this, false); | |
| $view->set(compact('some', 'vars')); | |
| $html = $view->render('view_name'); |
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
| (_|_)(_|_)(_|_) | |
| (_|_)(_|_)(_|_)(_|_) | |
| (_|_) (_|_) (_|_) | |
| (_|_)(_|_)(_|_)(_|_)(_|_) | |
| (_|_)(_|_)(_|_)(_|_) | |
| (_|_)(_|_)(_|_) | |
| (_|_)(_|_) | |
| (_|_) |
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
| cat >> $HOME/.bashrc <<EOF | |
| export PATH=$PATH:/usr/local/zend/bin:/usr/local/zend/sbin | |
| EOF | |
| reboot |
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
| # Apache configuration file | |
| # httpd.apache.org/docs/2.2/mod/quickreference.html | |
| # Note .htaccess files are an overhead, this logic should be in your Apache config if possible | |
| # httpd.apache.org/docs/2.2/howto/htaccess.html | |
| # Techniques in here adapted from all over, including: | |
| # Kroc Camen: camendesign.com/.htaccess | |
| # perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ | |
| # Sample .htaccess file of CMS MODx: modxcms.com |
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
| $(document).ready(function() { | |
| $("#txtboxToFilter").keydown(function(event) { | |
| // Allow: backspace, delete, tab, escape, and enter | |
| if ( event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 || event.keyCode == 13 || | |
| // Allow: Ctrl+A | |
| (event.keyCode == 65 && event.ctrlKey === true) || | |
| // Allow: home, end, left, right | |
| (event.keyCode >= 35 && event.keyCode <= 39)) { | |
| // let it happen, don't do anything | |
| return; |
NewerOlder