Skip to content

Instantly share code, notes, and snippets.

View tautrimas's full-sized avatar

Tautrimas Pajarskas tautrimas

View GitHub Profile
set ignorecase
set smartcase
set scrolloff=3 " 3 lines above/below cursor when scrolling
" Emulated Plugins
set surround
" set easymotion
set NERDTree
" Copy to system clipboard as well
@bksunday
bksunday / test-run-failed
Last active December 14, 2017 10:01
When using phpunit and logging output using TAP (from command line but easier from phpunit xml configuration), this script will re-run phpunit with only Wailed tests from last test.
#!/bin/bash
# parses a tap log file from phpunit to find failed tests
#
# This assumes you setup a phpunit.xml (or .dist.xml) so simply add something like the following under <phpunit>
# <logging>
# <log type="tap" target="/tmp/.projectname-phpunit-test-log.tap" />
# </logging>
#
# tap is used instead of json and xml because these log files get big
@rayfranco
rayfranco / GravatarExtension.php
Last active November 6, 2018 05:30
Twig extension filter that convert email into gravatar url, or secure gravatar url
<?php
// Acme\DemoBundle\Twig\GravatarExtension
namespace Acme\DemoBundle\Twig;
class GravatarExtension extends \Twig_Extension
{
private $secure_request = false;