Cron - программа-демон, предназначенная для выполнения заданий в определенное время, или через определенные промежутки времени.Название cron образовано от греческого слова χρόνος (хрόнос) — время (по-английски — cronos). Разработчик cron, Кен Томпсон (англ. Ken Thompson). Для редактирования заданий используется утилита crontab.
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
Taken from packagist.org | |
Packages with a master branch update since June 1st 2018: 98977 | |
Of those, package having requires on PHP extensions: 11676 (11.79%) | |
As only ~12% of packages declare their extension requirements, | |
and even then it might not be a complete list, take all this with | |
a big grain of salt, it is informative but definitely not a | |
complete picture of the most used extensions. |
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
<?php | |
namespace AppBundle\Doctrine; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\DBAL\Driver\PDOPgSql\Driver as PDOPgSqlDriver; | |
use Doctrine\ORM\NativeQuery; | |
class PgSqlNativeQueryCursor | |
{ |
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
<?php | |
final class Singleton | |
{ | |
private static $instance; | |
public static function getInstance() | |
{ | |
if (null === self::$instance) { | |
self::$instance = new self(); |
- Необходимо создать ssh ключ и добавить его в настройки профиля GitHub, которому пренадлежит нужный репозиторий, если это не было сделано ранее.
Tip: вы можете использовать данный скрипт для создания и добавления SSH ключа.
- Указать url приватного репозитория в composer.json следующим образом:
"repositories": [
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 | |
set -e | |
if [ -d ~/.local/share/JetBrains/Toolbox ]; then | |
echo "JetBrains Toolbox is already installed!" | |
exit 0 | |
fi | |
echo "Start installation..." |
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
<?php | |
class Item | |
{ | |
private $cost = 100; | |
public function getTotal($discount = 7) { | |
return $this->cost *(100+$discount)/100; | |
} | |
} |
^
= Ctrl
key
M
= Alt
key
^G (F1) Display this help text
^X (F2) Close the current file buffer / Exit from nano
^O (F3) Write the current file to disk
^J (F4) Justify the current paragraph
^R (F5) Insert another file into the current one