Skip to content

Instantly share code, notes, and snippets.

View pleonex's full-sized avatar
🛠️
Breaking formats

Benito Palacios Sánchez pleonex

🛠️
Breaking formats
View GitHub Profile
@pleonex
pleonex / LogoGBA.cs
Last active April 24, 2022 20:42
GBA and DS copyright logo decrypt and encrypt classes
// ----------------------------------------------------------------------
// <copyright file="LogoGBA.cs" company="none">
// Copyright (C) 2013
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
@pleonex
pleonex / Zelda gimp plugin
Created September 6, 2013 17:32
Plug-in to create an interactive world map of "The Legend of Zelda" game for NES device. It works under Gimp 2.8.
#!/usr/bin/python
# MAP CREATOR
# by pleoNeX -- Version 1.2 -- 29/07/2013
from gimpfu import *
import os
# Constants
SCREENSHOT_PATH = '/var/run/media/benito/DATA/Juegos/Zelda/virtuanes097e/snapshot/'
OUTPUT_PATH = '/home/benito/'
OUTPUT_NAME = 'map'
@pleonex
pleonex / PIC_perifericos.c
Created November 28, 2013 02:58
Ejercicio 6.3 de práctica 6 de la asignatura "Sistemas Electrónicos Digitales". Ejemplo de uso de microcontrolador PIC con periféricos usando I2C y RS232.
/****************************************************
** Ejercicio 6.3 - Práctica 6 - SED *
** *
** Programado por Benito Palacios Sánchez - 2013 *
****************************************************/
#include "../../lib/18F4520.h"
#device ADC=16
#fuses HS, WDT2048
#use delay(clock=8MHZ, restart_wdt)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, bits=8)
@pleonex
pleonex / do_quiz.py
Created December 19, 2013 09:53
Script para realizar prueba de exámenes tipo test.
#!/usr/bin/python
'''
do_quiz.py is a script to read and test true/false questions.
Questions in the external file must have the following format:
X. Question T
where 'X' is a unique question number, 'Question' is the question and
'T' is the question result.
Copyright (C) 2013 Benito Palacios (benito356@gmail.com)
@pleonex
pleonex / print.sh
Created March 15, 2014 20:59
Script para imprimr un PDF a doble cara
#!/bin/bash
#####################################
# Script para imprimir a doble cara #
# v1.0 #
# by pleonex #
#####################################
# Depende de: lp, pdftk
# Opciones dependientes de impresora: HP Color LaserJet 2600n
# Comprueba la de su impresora mediante: lpoptions -l -p impresora
@pleonex
pleonex / LAYTON1.xml
Created July 8, 2014 15:01
Plugin for Tahaxan program. My first work in the RomHacking world.
<?xml version="1.0" encoding="UTF-8" ?>
<game>
<info>
<title>LAYTON 1</title>
</info>
<formats>
<format pattern="gardenman_n\.bin$">
<file_type>Imagen</file_type>
<type>Bitmap</type>
<compressed>False</compressed>
@pleonex
pleonex / YesFm-NonStop.user.js
Last active August 29, 2015 14:06
Script de GreaseMonkey para que las radios de Yes FM no se detengan a preguntar si queremos seguir escuchando.
// ==UserScript==
// @name Yes FM Non-Stop
// @namespace tag:benito356@gmail.com,2014-09-21:YesFMNonStop
// @description No más ventanas de "Haz click en Aceptar para continuar"
// @include http://www.yes.fm/star/*
// @include http://www.yes.fm/player/star/*
// @version 1
// @grant none
// @license GPL V2
// ==/UserScript==
@pleonex
pleonex / ninostring.py
Created September 28, 2014 01:03
Encode / Decode a string with the Ninokuni default encoding table.
#!/bin/python
"""
ninostring.py: Encode / Decode a string with the Ninokuni default table.
Copyright (C) 2014 pleonex
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
@pleonex
pleonex / csgo_error.log
Created October 20, 2014 05:55
CS:GO Error log
Running Steam on fedora 20 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steamwebhelper)/version(20140922201705)
Installing breakpad exception handler for appid(steamwebhelper)/version(1411417025)
Installing breakpad exception handler for appid(steamwebhelper)/version(20140922201705)
Installing breakpad exception handler for appid(steamwebhelper)/version(1411417025)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
@pleonex
pleonex / LongTweeting.py
Created January 31, 2015 11:48
Gets the text from file and publish into several tweets.
#!/bin/python
# -*- coding: UTF-8 -*-
import twitter
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
TOKEN_KEY = ""
TOKEN_SECRET = ""
FILE = "filename"