Skip to content

Instantly share code, notes, and snippets.

View ericktedeschi's full-sized avatar

Erick Belluci Tedeschi ericktedeschi

View GitHub Profile
<?php
namespace Riskforge\Entities;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
use Hateoas\Configuration\Annotation as Hateoas;
/**
* @Serializer\XmlRoot("asset")
@ericktedeschi
ericktedeschi / gist:1379281
Created November 19, 2011 19:54
oneline - wordpress plugin verification
below the wp_plugins.txt file was used from original cms-explorer package.
xargs -a wp_plugins.txt -P5 -I XXX bash -c "result=\$(curl -If \"http://targetsite.com/XXX\" | grep \"200 OK\"); if [ \$(expr match \"\$result\" \".*200 OK.*\") != \"0\" ]; then echo \"Existe....: XXX\"; else echo \"Nao Existe: XXX\"; fi" > resultado-targetsite.txt
@ericktedeschi
ericktedeschi / .vimrc
Created October 27, 2011 16:53
Vim - My .vimrc
" syntax highlighting
set bg=light
syntax on
set ruler
set number
set smarttab
set fileformats=unix,dos,mac " support all three, in this order
set formatoptions=tcqor " t=text, c=comments, q=format with "gq", o,r=autoinsert comment leader
set cindent " indent on cinwords