Re-indent with PhpStorm
PhpStorm->Code->Reformat Code
or
Ctrl+Shift+Alt+L and click Reformat file
PhpStorm->Code->Reformat Code
or
Ctrl+Shift+Alt+L and click Reformat file
Checkout from other branch
git checkout develop /path/to/file.php |
Checkout from HEAD
git checkout HEAD -- /path/to/file.php |
Before PHP 7:
if (isset($inputData)) { $param = $inputData; } else { $param = 'default'; } |
In PHP 7:
$param = $inputData ?? 'default'; |
or
$param = $inputData ?? $someData ?? 'default'; |
ol { counter-reset: list; } ol > li { list-style: none; } ol > li:before { content: counter(list) ") "; counter-increment: list; } |
Output:
1) Number1
2) Number2
3) Number3
git reset --hard origin/develop |
git diff origin/develop..HEAD |
git log origin/develop..HEAD |
Your server itself will not have a big stack installed, like LAMP: all your server needs to know is how to run docker containers.
If you deploy an app with a vulnerability and hackers gain root, they will only have root inside a single docker container, and can’t get at your host system.
If you want, you can run any number of docker containers on a single server by setting up a reverse proxy like nginx or haproxy
<script type="text/javascript"> ... $parent = $('#yourobject').parent(); $child = $('#yourobject').children(':first'); ... </script> |
[Ctrl] + [Super] + [Space]
Super: on some keyboards it has Windows logo
$HOME/.config/monitors.xml
Example:
<monitors version="1"> <configuration> <clone>no</clone> <output name="eDP-1"> <vendor>BOE</vendor> <product>0x0653</product> <serial>0x00000000</serial> <width>1920</width> <height>1080</height> <rate>60</rate> <x>3840</x> <y>0</y> <rotation>normal</rotation> <reflect_x>no</reflect_x> <reflect_y>no</reflect_y> <primary>no</primary> </output> <output name="DP-1"> <vendor>BNQ</vendor> <product>0x8016</product> <serial>0x00005445</serial> <width>1920</width> <height>1080</height> <rate>60</rate> <x>1920</x> <y>0</y> <rotation>normal</rotation> <reflect_x>no</reflect_x> <reflect_y>no</reflect_y> <primary>yes</primary> </output> </configuration> </monitors> |