Set the url with ?XDEBUG_SESSION_START=PHPSTORM and set a header Cookie: XDEBUG_SESSION=PHPSTORM
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
Possible values for ext-name: | |
bcmath | |
bz2 | |
calendar | |
ctype | |
curl | |
dba | |
dom | |
enchant |
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 | |
/** | |
* Content from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes | |
**/ | |
return array( | |
100 => 'Continue', | |
101 => 'Switching Protocols', | |
102 => 'Processing', // WebDAV; RFC 2518 | |
200 => 'OK', |
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
# Set up a VPN Server (PPTP) on AWS | |
1. Create a EC2 instance using `Ubuntu 14.04`. | |
2. In `Secure Group Inbound Rules`, add a `SSH Rule(TCP, Port 22, 0.0.0.0/0)` and a `Custom TCP Rule(TCP, Port 1723, 0.0.0.0/0)`. | |
3. Optional: Associate a Elastic IP with the instance. | |
4. SSH into the instance. | |
5. `sudo apt-get install pptpd`. | |
6. `sudo vim /etc/pptpd.conf`. Uncomment `localip 192.168.0.1` and `remoteip 192.168.0.234-238,192.168.0.245`. | |
7. `sudo vim /etc/ppp/pptpd-options`. Uncomment `ms-dns` and `ms-wins`. Change the IP to Google's DNS like this: | |
``` |
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
import { Component, Input } from '@angular/core'; | |
@Component({ | |
selector: 'example', | |
template: `{{data}}` // getting `data` in the template will call the getter method! | |
}) | |
export class ExampleCoponent { | |
private dataInternal: number; | |
@Input() set data(data: 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
import { Pipe, PipeTransform } from '@angular/core'; | |
// Epochs | |
const epochs: any = [ | |
['year', 31536000], | |
['month', 2592000], | |
['day', 86400], | |
['hour', 3600], | |
['minute', 60], | |
['second', 1] |