This file contains 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 | |
declare(strict_types = 1); | |
class ClientAppStatusEnum extends \Tuscanicz\Enum | |
{ | |
public const STATUS_LOCKED = 0; | |
public const STATUS_ACTIVE = 1; | |
public const STATUS_TEMPORARY_DISABLED = 2; |
This file contains 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 KutnyLib\RabbitMq; | |
use PhpAmqpLib\Connection\AbstractConnection; | |
class AmqpChannelFactory | |
{ | |
private $connection; |
This file contains 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
# error logs | |
alias err="cat var/logs/error.log" | |
alias exc="cat var/logs/exception.log" | |
alias logs="ls -la var/logs/" | |
alias lasterr="ls var/logs/exception--20* | tail -1 | xargs open" | |
exceptiondownloader() { | |
mkdir ~/Downloads/remote-exceptions | |
scp collabim-production:/vol/www/serpo/current/var/logs/$1 ~/Downloads/remote-exceptions/ | |
open ~/Downloads/remote-exceptions/$1 |