Skip to content

Instantly share code, notes, and snippets.

View yamasimka83's full-sized avatar

Maksim Lukyanenko yamasimka83

View GitHub Profile
DOCKER
# собрать имейдж с файла Dockerfile
docker build .
# добавить имейджу имя
docker build -t imagename .
# посмотреть все имейджи
docker images
apt update
apt install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
[alias]
ci = commit
co = checkout
st = status
br = branch
lg = log -10 --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative
files = diff-tree --no-commit-id --name-only -r
@yamasimka83
yamasimka83 / ssh-keygen
Last active April 14, 2021 12:11
rsa key
ssh-keygen
cat ~/id_rsa.pub
@yamasimka83
yamasimka83 / mysql new user
Last active April 14, 2021 12:12
mysql new user
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;
@yamasimka83
yamasimka83 / Install xDebug 2.9.8
Last active June 2, 2021 09:31
Install xDebug 2.9.8
git clone git://github.com/xdebug/xdebug.git
git checkout xdebug_2_9
phpize
./configure --enable-xdebug
sudo make install
sudo service apache2 restart
sudo phpenmod xdebug
_____________________________________________________________________________________________________________________________
zend_extension=xdebug.so
______________________________________________________________________________________________________________________________
PHP
sudo apt update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php -y
sudo apt update
sudo apt -y install php7.4 php7.4-fpm php7.4-common php7.4-curl php7.4-mcrypt php7.4-cli php7.4-mysql php7.4-gd php7.4-xml php7.4-json php7.4-intl php-pear php7.4-dev php7.4-common php7.4-mbstring php7.4-zip php7.4-soap php7.4-bcmath php7.4-opcache libapache2-mod-php7.4
sudo apt -y install php7.3 php7.3-fpm php7.3-common php7.3-curl php7.3-cli php7.3-mysql php7.3-gd php7.3-xml php7.3-json php7.3-intl php-pear php7.3-dev php7.3-common php7.3-mbstring php7.3-zip php7.3-soap php7.3-bcmath php7.3-opcache libapache2-mod-php7.3