php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" &&
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" &&
php composer-setup.php &&
php -r "unlink('composer-setup.php');"
sudo docker run -p 8080:3000 -v $(pwd):/var/www -w "/var/www" node npm start
-p $p1:$p2- p - port
- $p1 - host port
- $p2 - container port
-v $folder_1:$folder_2
- v - volume
is_bool()Boolean One of the two special values, true or falseis_integer()Integer A whole number. Alias of is_int() and is_long()is_double()Double A floating point number (a number with a decimal point). Aliasof is_float()is_string()String Character datais_object()Object An objectis_array()Array An arrayis_resource()Resource A handle for identifying and working with external resources
Declaring class properties or methods as static makes them accessible without needing an instantiation of the class. A property declared as static can not be accessed with an instantiated class object (though a static method can).
self - self from the root
parent - parent of the class
static - true self for exact class, static is more agile than self, super useful for inheritance issues
cat /etc/passwd - list system users
root:xD928Jhs7sH32:0:0:root:/root:/bin/bash newuser:Xv8Q981g71oKK:1000:100:John Smith:/home/newuser:/bin/bash
pattern - account:password:UID:GID:GECOS:directory:shell
account — имя пользователя
password — зашифрованный пароль пользователя
UID — идентификационный номер пользователя
GID — идентификационный номер основной группы пользователя