Skip to content

Instantly share code, notes, and snippets.

@tuscanicz
tuscanicz / bash_profile
Last active March 29, 2016 15:33
Symfony2/Tracy - bash profile helpers
# 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
<?php
namespace KutnyLib\RabbitMq;
use PhpAmqpLib\Connection\AbstractConnection;
class AmqpChannelFactory
{
private $connection;
@tuscanicz
tuscanicz / testfile.php
Created June 10, 2019 18:14
Enum usage example
<?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;