Skip to content

Instantly share code, notes, and snippets.

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
@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
@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 / 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 / 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);
import cv2
import numpy as np
canny = rho = threshold = minLen = maxGap = None
def draw():
lines = cv2.HoughLinesP(canny, rho, np.pi / 180,
threshold, None, minLen, maxGap)
dst = cv2.cvtColor(canny, cv2.COLOR_GRAY2BGR)
@sucotronic
sucotronic / kreta3.sh
Created November 22, 2013 17:13
sends broadcast packet to discover Kreta2 kimaldi devices on a network
# Broadcast message to discover if there are kimaldi Kreta3 devices on a network
echo -n 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | perl -pe 's/([0-9a-f]{2})/chr hex $1/gie' | socat - UDP-DATAGRAM:255.255.255.255:2000,broadcast,sourceport=2001
#!/bin/sh
rtmpdump -r "rtmp://ondacerogeofms35livefs.fplive.net:1935/ondacerogeofms35live-live" -a "ondacerogeofms35live-live" -f "LNX 11,2,202,310" -W "http://www.ondamelodia.es/swf/AUPlayer.swf" -p "http://www.ondamelodia.es/" -y "stream-ondamelodia" --live -b 10000 | mplayer -cache 400 -cache-min 50 -af volnorm=2 -
@sucotronic
sucotronic / tkinter_pygame.py
Created September 24, 2013 15:54
stub about tkinter and pygame
from Tkinter import *
import threading
import pygame
master = Tk()
v = StringVar()
def callback():
print "click!"
v.set("clicao!!")
@sucotronic
sucotronic / sendRaw.sh
Created September 18, 2013 14:28
send raw bytes (have to bin hex) by UDP to an ip and port
#!/bin/bash
echo -n 022364018095 | perl -pe 's/([0-9a-f]{2})/chr hex $1/gie' | nc -4u -q1 -p5001 192.168.0.100 5000