Skip to content

Instantly share code, notes, and snippets.

View meleu's full-sized avatar
👨‍💻
Coding...

meleu meleu

👨‍💻
Coding...
View GitHub Profile
@meleu
meleu / hunter.md
Last active November 16, 2017 19:12
Cheevos Hunter description.

The debug/plugins folder has one subfolder or file for each Hunter's functionality.

The simple functionalities are implemented in a file. Examples:

  • info.cpp: show core info.
  • memeditor.cpp: show the memory editor.
  • cheats.cpp: allow the use of cheats in order to help the cheevos development (it would be useful if the user could load the cheats from RetroArch database and turn on/off a cheevo needed to help with cheevos development).

[XXX: ACHO QUE ISSO PRECISA DE UMA EXPLICAÇÃO MELHOR]

  • hunter/: allows the core memory scan looking for specific values. Memory snapshots can be generated, and filters created from the comparison between bytes with values, or between snapshots, or between filters...
@meleu
meleu / RALibretro-changes.md
Created April 13, 2018 02:59
Files changed on RALibretro dir structure

These are the changes I did on RALibretro directory structure that may affect the Visual Studio solution:

  • all files unrelated to RALibretro were removed.
  • all files under the previous RALibretro dir are now at root dir of the repo
  • RA_Integration:
    • RA_Integration files are now under src/RA_Integration as a submodule
    • the RA_Integration submodule is already linked to the raintegration_only branch
  • edited the Makefile to reflect the changes related to the RA_Integration new paths mentioned above
  • RA_Implementation.[cpp|h]:
  • deleted RALibretro/src/RA_Integration/RA_Implementation.h (we'll use the one in the RA_Integration dir tree).
@meleu
meleu / rarch-on-rpie.md
Last active April 16, 2018 20:14
compiling RetroArch for a RetroPie x86 setup

Note: the --enable-vulkan and --disable-ffmpeg are optional

./configure --prefix="/opt/retropie/emulators/retroarch" \
    --disable-sdl --enable-sdl2 --disable-oss --disable-al --disable-jack --enable-vulkan --disable-ffmpeg
make clean
make
sudo make install
@meleu
meleu / raweb-locally.md
Last active April 21, 2018 22:06
Steps taken to run RAWeb (framework branch) locally

Here are the steps I (meleu) took to run the RAWeb (framework branch) locally on my Linux machine. Smart readers can probably use a similar approach to do the same on Windows.

Download and Install XAMPP

Check here: https://www.apachefriends.org/download.html

Note: prefer to download the pack with PHP 7.2+

@meleu
meleu / radiscord.md
Last active April 26, 2018 01:02
reorganization of RA discord channels

Reorganizing RA channels in our discord server. Between parentheses is the previous channel's name)

- get-verified
- general
- help-me
- botspam

COMMUNITY
- devs
@meleu
meleu / imagick-lampp.md
Created November 18, 2018 10:57
Installing ImageMagick (imagick) in LAMPP

sudo apt-get install libmagickwand-dev

sudo /opt/lampp/bin/pecl install imagick

sudo vim /opt/lampp/etc/php.ini

add extension=imagick.so to the php.ini

@meleu
meleu / retroarch-cheevos.log
Created January 18, 2019 20:05
grep -i cheevos retroarch.log
[INFO] [rCHEEVOS]: testing SNES (8Mb padding)
[INFO] [rCHEEVOS]: got game id 0
[INFO] [rCHEEVOS]: testing NES (discards VROM)
[INFO] [rCHEEVOS]: got game id 0
[INFO] [rCHEEVOS]: got game id 0
[INFO] [rCHEEVOS]: got game id 0
[INFO] [rCHEEVOS]: got game id 0
[INFO] [rCHEEVOS]: got game id 0
[INFO] [rCHEEVOS]: got game id 0
[INFO] [rCHEEVOS]: got game id 0
@meleu
meleu / md-toc.sh
Last active February 16, 2022 18:36
bash script to create a Table of Contents from a Markdown file
#!/bin/bash
# md-toc.sh
############
# Generates a Table of Contents getting a markdown file as input.
#
# Inspiration for this script:
# https://medium.com/@acrodriguez/one-liner-to-generate-a-markdown-toc-f5292112fd14
#
# The list of invalid chars is probably incomplete, but is good enough for my
# current needs.
@meleu
meleu / code-review-checklist.md
Last active February 6, 2019 15:59
Code Review Checklist

This is a list of things that I (meleu) check when someone ask me to have their Achievement set reviewed.

Quite frequently the set is for a game that I don't know very well (or don't know at all), then I created a list of items that can be checked by using what we have available on the website, namely: Code Notes, Titles, Descriptions and achievement's logic.

Some items here are not exactly strict rules, but points that I look at and give advices when applicable.

(Special thanks to Keltron3030, televandalist and BenGhazi for suggesting more items to this list.)

Code Notes

@meleu
meleu / myFirstTelegramBot.js
Created April 25, 2019 16:06
learning telegram bot
const TelegramBot = require('node-telegram-bot-api');
const TOKEN = 'BLABLEBLIBLOBLU';
const bot = new TelegramBot(TOKEN, {polling: true});
const botoesSimNao = {
inline_keyboard: [
[
{text: 'Sim', callback_data: 'sim'},
{text: 'Não', callback_data: 'nao'},