Skip to content

Instantly share code, notes, and snippets.

View michalpipa's full-sized avatar

Michał Pipa michalpipa

  • Gliwice, Poland
View GitHub Profile
@paulmillr
paulmillr / active.md
Last active August 24, 2026 23:55
Most active GitHub users (by contributions). https://paulmillr.com

Most active GitHub users (git.io/top)

The list would not be updated for now. Don't write comments.

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:

githubUsers
@uwej711
uwej711 / EntityRouter.php
Created March 28, 2012 14:05
EntityRouter
<?php
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\Generator\UrlGenerator;
@beberlei
beberlei / README.md
Created February 8, 2012 08:25
Collection Filters - Readme Driven Development

Filter Language for Collections

Why?

You often need subsets of objects in a collection and want to access them efficiently in your domain model. But you certainly don't want to access the EntityManager or any other object manager here to craft a query. FilterExpressions for collections allow to go back to the database and query for all objects matching the crafted expression. Additionally they also work against in meemory ArrayCollection exactly the same. This way you don't (except for the SQL performance when it haunts you ;)) have to think about the context and can focus on your domain logic.

In Doctrine ORM this will be done by building DQL under the hood, in memory it will be done using Collection#filter(Closure $closure);

Technical Requirements:

@ziadoz
ziadoz / awesome-php.md
Last active August 10, 2026 17:52
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
@weavenet
weavenet / gist:1572391
Created January 6, 2012 21:03
Script to cleanup RHEL5 instance before creating AMI
#!/bin/bash
USER=ec2-user
echo 'Removing host keys'
sudo /bin/rm -rf /etc/ssh/ssh_host*_key*
echo 'Removing ec2-user'
userdel -f $USER ; /bin/rm -rf /home/$USER
@weaverryan
weaverryan / Makefile
Created May 5, 2011 11:36
Example sphinx configuration for rendering the symfony docs
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build -c .
PAPER =
BUILDDIR = build
SOURCE = source
@guenter
guenter / move_to_rds.rb
Created November 11, 2010 02:14
A quick and dirty script to move a database into Amazon RDS (or any other database). Can transfer part of the data beforehand.
require 'fileutils'
start_time = Time.now
SOURCE_DB = {
:name => 'db_name',
:user => 'db_user',
:password => 'db_pass',
:host => 'localhost'