Skip to content

Instantly share code, notes, and snippets.

student, open for hire :)

Lucas Luro02

student, open for hire :)
View GitHub Profile
# Written for Python 3.7
from __future__ import annotations
from typing import Callable
def and_x(a: bool, b: bool) -> bool:
return a and b
def or_x(a: bool, b: bool) -> bool:
Luro02 /
Last active Feb 10, 2019
A little tutorial for future ubuntu users, that have a fucked up apt/dpkg database and want to fix it

The Problem:

After some time the package database might get broken because you installed some incomplete stuff or did some installations manually, without thinking what you were doing. Now you get a warning everytime you run an apt-command, or even worse: it refuses to install anything.

How I fixed it:

run the following commands:

sudo bash

mv /var/lib/dpkg/status /var/lib/dpkg/status_bkup

check under what name it is installed:
$ dkpkg -l | devkitpro
it either outputs nothing -> not installed
or it ouputs the package name
$ sudo dpkg -P devkitpro-pacman
that's it now you can reinstall it and it should work again :3
Luro02 / export.json
Created Jul 16, 2018
A huge JSON file containing all entries from here: , that will give you the ability to easily batch process the database! Happy Cracking :)
View export.json
This file has been truncated, but you can view the full file.
"1133": {
"url": "",
"description": "First off don't give me that \"cr*pware\" things.\nYes, it's written in VB + P-Code, and all you need to do is find one serial.\nOh could someone rate it?!?",
"difficulty": 2,
"platform": "Windows",
"language": "(Visual) Basic",
"published": "2005-03-08T00:00:00",
"downloads": 1235,
Luro02 / hosts.txt
Last active Mar 12, 2021
A blocklist for the Amazon Fire devices, that should block (some) telemetry...
View hosts.txt
# Amazon Fire (HD 8) Blocklist (V.1.0)
# Constribute:
# please make a comment under this gist and I'll add it after checking to this list.
# Constributions by:
# Luro02
# Credits:
Luro02 /
Created Jul 2, 2018
Very early stage of a possible way to install H-encore....
#!/usr/bin/env python3
Do whatever you want with it...
I am too lazy to make it compatible on other platforms or create a gui...
this thing works and it should do the job for some people/may be a help for
someone who is working on this:
Made by Luro02 in under 2 hours (I know, impressive)
import os
Luro02 /
Last active Apr 17, 2021
Have fun with it :), v1.0 ; works fine for me at least....
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# -- does the same thing as PSDLE does...
# Copyright (C) 2018 Gnarmagon
# 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.
Luro02 /
Created Feb 13, 2018
partially working implementation of how the PSVita creates PDB's....
#!/usr/bin/env python3
def create_pdb(filename, title, location, pkg_link, icon_path, temp_dat, cid, date='Wed, 16 Apr 2008 11:11:41 GMT'):
title = 'Ape Quest'
location = 'ux0:pspemu/bgdl/0000010d'
pkg_name = 'cCC53YedwIstMh54hhulsqmHmlLCMr4He9aKSNFGRTDNGvcUgcqpqbAcFU25tJC8PN1ksFVqlErDjeHYyijpCfqHD5WSAu6qqEDlt.pkg'
pkg_link = ''
icon_path = 'ux0:bgdl/t/0000010d/icon.png'
Luro02 / avctomp4.cmd
Created Jan 24, 2018
some scripts that help extracting and converting some file formats (avc video files and farc files)
View avctomp4.cmd
for %%i in (*.avc) do (
ffmpeg -i "%%i" -codec copy "%%~ni.mp4"
Luro02 / install_dep.bat
Last active Mar 30, 2018
if you never installed python or don't have panda + wget installed (python3 modules) then execute the install_dep.bat first
View install_dep.bat
@echo off
WHERE python
IF NOT EXIST Anaconda3-5.0.1-Windows-x86_64.exe wget --no-check-certificate
start /wait Anaconda3-5.0.1-Windows-x86_64.exe
echo press a button if the installer closed !
IF NOT EXIST wget --no-check-certificate