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 / notebook-yarhly.ipynb
Last active December 12, 2023 10:16
Test using Jupyter Notebooks and VS Code Polyglot extension to create a Yarhl converter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pleonex
pleonex / Bmg2Messages.cs
Created September 18, 2023 13:09
Nintendo DS BMG text format deserializer
// Copyright(c) 2023 SceneGate
//
// 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 all
@pleonex
pleonex / StreamHexDumper.cs
Last active July 14, 2022 10:06
Text-base hexadecimal viewer of the content of a Stream for C#
static string DumpStreamToHexString(Stream stream, long startPosition, int length)
{
const int BytesPerRow = 0x10;
const char horizontalBar = '─'; // or '|' for non-Unicode terminals
const char verticalBar = '│'; // or '-' for non-Unicode terminals
const char crossBar = '┼'; // or '|' for non-Unicode terminals
byte[] buffer = new byte[length];
int read = stream.Read(buffer);
@pleonex
pleonex / vikio.py
Created November 16, 2020 23:20
Script to download videos and subtitles from Viki
import youtube_dl
url = 'THE_URL'
def download_episode(ydl, url):
"""Download the info (url in MPD) to get the URL and update the title."""
info = ydl.extract_info(url, download=False, process=False)
print(f"**{info['title']}**")
# Download substitles
@pleonex
pleonex / conky.conf
Created August 21, 2017 07:50
My conky configuration tested in Fedora 26 with KDE
conky.config = {
-- -- Conky settings -- #
background = true,
update_interval = 1,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
@pleonex
pleonex / ios_apps.md
Created December 19, 2015 19:30
List of installed apps in my iPhone 4

Principal

Columna 1 Columna 2 Columna 3 Columna 4
Calendario Reloj Cámara Fotos
Books GranadaBus Google Maps Ivoox
Runstatic Diario Calculadora Ajustes
Teléfono App Store Notas -
Mail Telegram Twitter Chrome
@pleonex
pleonex / LambdaParser.cs
Created November 9, 2015 00:30
Simple Lambda2SQL converter
//
// Program.cs
//
// Author:
// Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com>
//
// Copyright (c) 2015 Benito Palacios Sánchez (c) 2015
//
// 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
@pleonex
pleonex / Reinstall printer.bat
Created February 5, 2015 18:50
Reinstall a HP Network Printer
@echo off
echo Cleaing printer queue. . .
net stop spooler > null
del /F /Q C:\WINDOWS\system32\spool\PRINTERS\*
net start spooler > null
echo Uninstalling printer. . .
printui.exe /dl /n "HP Officejet 6000"
timeout 5 /nobreak > null
@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"
@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