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
1. Remote VM must have xdebug running | |
vagrant@app:/etc/php/7.0/fpm$ cat conf.d/20-xdebug.ini | |
zend_extension=/usr/lib/php/20151012/xdebug.so | |
xdebug.remote_enable=1 | |
xdebug.remote_autostart=1 | |
xdebug.remote_connect_back=1 | |
xdebug.remote_port=9000 | |
2. VSCode should have the below launch config. |
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
<html> | |
<head> | |
<script type="text/javascript"> | |
function createCookie(name,value,days) { | |
var expires = ""; | |
if (days) { | |
var date = new Date(); | |
date.setTime(date.getTime() + (days*24*60*60*1000)); |
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
jQuery.validator.addMethod("au_phone", function(value, element) { | |
return this.optional(element) || /^(?:\+?(61))? ?(?:\((?=.*\)))?(0?[2-57-8])\)? ?(\d\d(?:[- ](?=\d{3})|(?!\d\d[- ]?\d[- ]))\d\d[- ]?\d[- ]?\d{3})$/.test(value); | |
}, "Invalid phone number"); |
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
// html | |
<label for="year">Год</label> | |
<select name="year" id="year"></select> | |
<label for="month">Месяц</label> | |
<select name="month" id="month"> | |
<option value = "1">01</option> | |
<option value = "2">02</option> | |
<option value = "3">03</option> | |
<option value = "4">04</option> |
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
call plug#begin('~/.vim/plugged') | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'ervandew/supertab' | |
Plug 'shawncplus/phpcomplete.vim' | |
Plug 'tpope/vim-fugitive' | |
Plug 'bling/vim-bufferline' | |
Plug 'mileszs/ack.vim' | |
call plug#end() | |
set nocompatible |
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
// Using a closure | |
$router->add('GET', '/', function() { | |
echo "Hello World"; | |
}); | |
// Using class method mapping | |
$route->add('GET', '/new/route', ClassName::class, 'method'); |
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
app/ - App Diretory | |
config/ | |
routes/ - All route files go in here. | |
routes.php - Default route file. All route files added will be loaded when the app is bootstrapped. | |
services/ - Service bindings | |
services.php | |
bootstrap/ | |
bootstrap.php - Bootstrapping code for the app | |
public/ | |
index.php - Entry point to the web app |
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
options rtl8821ae debug=0 disable_watchdog=N fwlps=N swlps=Y swenc=Y ips=N msi=0 |
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
default: | |
extensions: | |
Behat\MinkExtension: | |
base_url: http://adam-bdd-with-behat.ngrok.io | |
goutte: ~ | |
selenium2: ~ | |
suites: | |
default: | |
contexts: |
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
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |