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
/** | |
* Проверяет, есть ли у класса определенный extended параметр | |
* | |
* @Route("/extend-field/", name="crm_debug_extend_field") | |
*/ | |
public function extendFieldAction() | |
{ | |
/** @var ConfigManager $em */ | |
$cm = $this->get('oro_entity_config.config_manager'); |
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
vendor/bin/phpunit ./src | |
clear && vendor/bin/phpunit src --testdox |
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
sudo systemctl disable bluetooth.service | |
sudo systemctl enable bluetooth.service |
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
sudo nmcli connection import type openvpn file FILE_NAME | |
https://askubuntu.com/questions/760345/cannot-import-saved-openvpn-configuration-file-in-ubuntu-16-04-lts |
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
docker-compose ps | |
docker-compose up -d --build --remove-orphans | |
docker-compose stop | |
docker-compose stop && docker-compose up -d --build --remove-orphans | |
docker-compose down && docker-compose pull && docker-compose build --pull && docker-compose up -d --build --remove-orphans | |
docker-compose pull |
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
tar -czf cache.tar.gz ../cache/ | |
tar -czf vendor.tar.gz ../vendor/ | |
tar -czf node_modules.tar.gz ./node_modules/ |
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
faketime "2019-03-08 12:00:00" date |
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
# Backup: | |
mysqldump -h HOST -u USER -pPASSWORD DATABASE | gzip > /backup.sql.gz | |
mysqldump --no-data -h HOST -u USER -pPASSWORD DATABASE | gzip > /backup.sql.gz | |
mysqldump -h HOST -u USER -pPASSWORD DATABASE TABLE1 TABLE2 | gzip > /backup.sql.gz | |
# Restore | |
gunzip < backup.sql.gz | mysql -h HOST -u USER -pPASSWORD DATABASE |
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
docker system prune -a --volumes |