- Clean pkg cache
- Remove unused packages (orphans)
- Clean cache in /home
- remove old config files
- Find and Remove
- duplicates
- empty files
- empty directories
- broken symlinks
- Имена полей в ответе задавать в
snake_case
(prr_page
,created_at
,system_name
,...) - Для времени использовать
ISO 8601
(формат: YYYY-MM-DDTHH:MM:SSZ) - Отдавать данные (сам контент, поля сущностей, массивы сущностей), помещая их в
data
- GET: /api/users — получить список пользователей;
- GET: /api/users/123 — получить указанного пользователя;
- POST: /api/users — создать нового пользователя;
This file contains hidden or 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
#!/bin/bash | |
# Uninstall old version | |
sudo apt-get remove docker docker-engine docker.io | |
# Update apt package index | |
sudo apt-get update | |
# Install packages to allow apt to use a repo over HTTPS | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
# Add Docker offical GPG Key | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
This file contains hidden or 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
/** | |
This web server serve 2 different type request: [static file] and [dynamic path] | |
[Static file] URL path: /* | |
[Dynamic Path] URL path: /api/* | |
Preparation: | |
1) Create "static-files" directory to place all static file like index.html | |
2) Create "dynamic-files" diectory to place all dynamic or hidden logical files, example invoice.pdf | |
3) Place "index.html" at root of "static-files" directory | |
4) Place "neon.jpg" (any kind of JPEG file) at root of "dynamic-files" directory |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE hibernate-configuration PUBLIC | |
"-//Hibernate/Hibernate Configuration DTD 3.0//EN" | |
"http://hibernate.org/dtd/hibernate-configuration-3.0.dtd"> | |
<hibernate-configuration> | |
<session-factory> | |
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> | |
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/Book</property> | |
<property name="hibernate.connection.username">root</property> | |
<property name="hibernate.connection.password"></property> |