Skip to content

Instantly share code, notes, and snippets.

@lauris
lauris / latvian-ip-address-blocks
Created May 4, 2013 09:36
IP address blocks assigned to Latvia
159.148.0.0/16
85.254.0.0/17
85.254.128.0/18
79.135.128.0/19
62.84.0.0/19
194.8.42.0/24
195.244.128.0/20
85.234.160.0/19
84.38.128.0/20
91.188.32.0/19
<?php
namespace Foobar\NewsBundle\Listener;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Foobar\NewsBundle\Entity\Item;
use Foobar\NewsBundle\Entity\Subscriber;
/**
<?php
namespace Foobar\NewsBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Foobar\NewsBundle\Entity\Item;
use Foobar\NewsBundle\Entity\Subscriber;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Validator\Constraints\Email;
@lauris
lauris / .vimrc
Created January 1, 2012 22:52
vimrc
set fileencodings=utf-8
set title
set encoding=utf-8
set showcmd
set showmode
set cmdheight=1
set autoread
set cursorline