sudo tail -f /var/log/syslog | grep CRON
sudo crontab -e
sudo crontab -l
| DB::statement("ALTER TABLE roles CHANGE COLUMN role role ENUM('system admin', 'super admin', 'admin staff', 'instructor', 'customer', 'gym member', 'swim member')"); |
| CREATE TABLE IF NOT EXISTS `evaluations` ( | |
| `user_id` INT unsigned NOT NULL, -- ID пользователя | |
| `department_id` INT unsigned NOT NULL, -- ID департамента | |
| `gender` TINYINT(1) NOT NULL, -- 1 — мужчина, 0 — женщина | |
| `value` INT NOT NULL) | |
| ENGINE = innodb | |
| DEFAULT CHARSET=utf8; | |
| -- Условие: | |
| -- Выбрать без join-ов и подзапросов все департаменты, |
| imap jj <Esc> | |
| set timeoutlen=1000 | |
| set autochdir | |
| set·lcs+=space:· | |
| set·list | |
| autocmd BufEnter * silent! lcd %:p:h |
| location ~* ^.+\.(rss|atom|jpg|jpeg|gif|png|ico|rtf|js|css)$ { | |
| expires max; | |
| } | |
| gzip on; | |
| gzip_comp_level 5; | |
| gzip_disable "msie6"; | |
| gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon; |
| create database <database-name> collate utf8_bin; | |
| create user <user-name> identified by '<password>'; | |
| grant all privileges on <database-name>.* to <user-name>; | |
| grant process on *.* to <user-name>; |
| openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -clcerts -nokeys -out domain.crt | |
| openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -nocerts -nodes -out domain.rsa | |
| server { | |
| listen 443 ssl; | |
| server_name domain.com www.domain.com; | |
| ssl_certificate /path/to/your/CRT_file/domain.crt; | |
| ssl_certificate_key /path/to/your/RSA_file/domain.rsa; | |
| root /mnt/coming-soon/bushbeans; |
| {"lastUpload":"2020-07-08T08:41:29.939Z","extensionVersion":"v3.4.3"} |
| sudo sysctl -w vm.max_map_count=262144 |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="/home/{USER}/.oh-my-zsh" | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |