Skip to content

Instantly share code, notes, and snippets.

View luislasonbra's full-sized avatar

luis luislasonbra

View GitHub Profile
@luislasonbra
luislasonbra / espn-api-list.md
Created January 9, 2026 14:58 — forked from nntrn/espn-api-list.md
List of nfl endpoints for ESPN's API

List of NFL API Endpoints

This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:

/*
utiliza este comando desde la terminal para compilarlo
'gcc -o basic_calculator basic_calculator.c'
y este para ejecutarlo (mac/linux) './basic_calculator'
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#include <unistd.h>
@luislasonbra
luislasonbra / tutorial02.c
Created May 21, 2019 14:13 — forked from shaobin0604/tutorial02.c
ffmpeg tutorial02.c
// tutorial02.c
// A pedagogical video player that will stream through every video frame as fast as it can.
//
// Code based on FFplay, Copyright (c) 2003 Fabrice Bellard,
// and a tutorial by Martin Bohme (boehme@inb.uni-luebeckREMOVETHIS.de)
// Tested on Gentoo, CVS version 5/01/07 compiled with GCC 4.1.1
// Use
//
// gcc -o tutorial02 tutorial02.c -lavformat -lavcodec -lz -lm -lswscale `sdl-config --cflags --libs`
// to build (assuming libavformat and libavcodec are correctly installed,
import java.io.*;
import java.util.*;
// codigo para ejecutarlo, en una consola de comandos o cmd
// javac Test.java && java Test
// https://gist.github.com/luislasonbra/202165410e7de06ec72308616f70b425
public class Test {
static final int CAR_PRICE = 2000; // tarifa por auto.
static final int MOTORCYCLE_PRICE = 1000; // tarifa por motocicleta.
static int max_car_parquing = 20; // maximo de cupos para carros.

How to find savedata exploits

Since the release of h-encore you might be wondering how such an user entry point is even possible. It is possible because games that were developed with an SDK around 3.00 and lower were compiled as a statically linked executable, thus its loading address is always the same and it cannot be relocated to an other region, which means that if we have an exploit in such a game, we can happily do ROP and don't need to deal with ASLR. They also don't have stack protection enabled by default, so stack smashing is the easiest way to trigger user ROP execution. Savedata exploits are more powerful than WebKit exploits in terms of available syscalls. The reason for that is after firmware 3.30 or so, Sony introduced sceKernelInhibitLoadingModule in their browser, which prevented us from loading additional modules. This limitation is crucial, since this was the only to get syscalls, as they are randomized at boot.

*Note that the following guide is written for people with few knowledg

@luislasonbra
luislasonbra / shadows.java
Created April 1, 2018 17:35 — forked from mattdesl/shadows.java
2D shadows in LibGDX
static Vector2 L = new Vector2();
static Vector2 N = new Vector2();
static Vector2 tmp = new Vector2();
static Vector2[] points = new Vector2[] {
new Vector2(), new Vector2(), new Vector2(), new Vector2()
};
static Vector2[] tmpBoundary = new Vector2[] {
new Vector2(), new Vector2()
};
@luislasonbra
luislasonbra / ShadowTest.java
Created April 1, 2018 17:35 — forked from mattdesl/ShadowTest.java
Simple Dynamic Shadows in Java2D
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Polygon;
import java.awt.RadialGradientPaint;
import java.awt.RenderingHints;
import java.awt.Shape;
@luislasonbra
luislasonbra / Usage.cs
Created March 30, 2018 16:21 — forked from jcdickinson/Usage.cs
Verlet Integrator
static void Main(string[] args)
{
var accel = new Vector2(0, 9.81f);
var previous = VerletState.Zero;
var current = new VerletState(Vector2.Zero, Vector2.Zero, 0.1f, ref previous, ref accel);
var next = VerletState.Zero;
for (var i = 0; i < 1000; i++)
{
Verlet.Integrate(Integrator, ref previous, ref current, 0.1f, ref next);
@luislasonbra
luislasonbra / roundedrect.lua
Created October 14, 2017 04:05 — forked from SpotlightKid/roundedrect.lua
Draw rectangles with rounded corners with LÖVE (http://love2d.org)
--- Draw rectangles with rounded corners with LÖVE (http://love2d.org)
local modname = ...
local M = {}
_G[modname] = M
package.loaded[modname] = M
local ipairs = ipairs
local lg = love.graphics
local PI = math.pi
local sin = math.sin