Skip to content

Instantly share code, notes, and snippets.

View ConsumerCommand.php
declare(strict_types = 1);
namespace App\Kafka;
use RdKafka;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
srigi / Base62.php
Created Jun 29, 2017
UUID (hex) to base62 and vice-versa
View Base62.php
class Base62
const BASE_OCT = 8;
const BASE_DEC = 10;
const BASE_HEX = 16;
const BASE_62 = 62;
srigi / gist:f81ce80d5c5c8f815e40
Created Jun 7, 2014
cloc statistics by commit
View gist:f81ce80d5c5c8f815e40
# !/bin/bash
initialCommit=`git rev-parse HEAD` # commit of the repository before we start the work
# use sed to remove duplicate lines with commit ID, git-rev-list not fully accepting my format, arrrgh
if [[ $1 = "--help" || $1 = "-h" ]]; then
echo "Generate 'cloc per commit' stats from a GIT repository by following the parent links from the given commit."
srigi / gist:1565135
Created Jan 5, 2012
10 New Year’s Resolutions Every Web Developer Should Make
View gist:1565135
10 New Year’s Resolutions Every Web Developer Should Make
1 - Learn a New Language, Framework or Methodology
We must continue learning about the latest technologies.
2 - Get Better At What You Know
Set aside some time to also focus on existing languages and software.