Skip to content

Instantly share code, notes, and snippets.

@sucotronic
sucotronic / correos.php
Created April 29, 2015 11:07
comprobar correos automaticamente
<?php
$curl = curl_init('http://aplicacionesweb.correos.es/localizadorenvios/track.asp?numero=PQ46TX0400262980150010A&idiomaCorreos=es_ES');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10');
$html = curl_exec($curl);
curl_close($curl);
$dom = new DOMDocument();
@$dom->loadHTML($html);
@sucotronic
sucotronic / GzipCompress.php
Created May 16, 2016 09:40
zf1 plugin to directly output gzip data
/**
* $front = Zend_Controller_Front::getInstance();
* $front->registerPlugin(new MR_Plugin_GzipCompress());
*/
class Plugin_GzipCompress extends Zend_Controller_Plugin_Abstract
{
public function postDispatch(Zend_Controller_Request_Abstract $request)
{
$response = $this->getResponse();
@sucotronic
sucotronic / .vimrc
Last active July 6, 2016 12:09
.vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=$HOME/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
@sucotronic
sucotronic / google-suggestions.rb
Created December 15, 2016 17:32 — forked from jehrhardt/google-suggestions.rb
Get suggestions from Google's completion API like http://ubersuggest.org
# Copyright © 2014 Jan Ehrhardt
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
roms/
roms//X6S
roms//X6
roms//arcade
roms//arcade/005.zip
roms//arcade/10yard.zip
roms//arcade/1941.zip
roms//arcade/1942.zip
roms//arcade/1943.zip
roms//arcade/1943kai.zip