Skip to content

Instantly share code, notes, and snippets.

@TameemS
TameemS / debloatLDPlayer.md
Last active July 22, 2024 04:46
Debloating LDPlayer

Inspired by this

More of my guides: Debloating MEMu - Debloating Nox (Updated)

This mainly applies to LDPlayer9. They will probably work on the low end options (like LDPlayer5) but not guaranteed.

Debloating LDPlayer

This emulator seems to have less stability issues than MEMu. I think we get the shtick that these emulators do spooky stuff.

  1. Download LDPlayer, preferably an offline version from the version history
@MrAch26
MrAch26 / captcha_solver.py
Created December 4, 2022 08:36
Captcha Solver with python
from PIL import Image
from scipy.ndimage import gaussian_filter
import numpy
import pytesseract
from PIL import ImageFilter
def solve_captcha(filename):
# thresold1 on the first stage
th1 = 140
th2 = 140 # threshold after blurring
@frolleks
frolleks / DECOMPILING_AN_ELECTRON_APP.md
Last active July 14, 2024 07:46
How to decompile an Electron app

Let me tell you how easy it is to decompile an Electron app (that's closed source).

Prerequisites

Decompilation

First of all, you find the install path of your Electron app. If you found it, find the resources folder. If you found it, you'll have to install asar globally, by running:

@skoqaq
skoqaq / build4123.sublime4.key
Last active July 20, 2024 14:46
Sublime Text 4 License Key
—– BEGIN LICENSE —–
Mifeng User
Single User License
EA7E-1184812
C0DAA9CD 6BE825B5 FF935692 1750523A
EDF59D3F A3BD6C96 F8D33866 3F1CCCEA
1C25BE4D 25B1C4CC 5110C20E 5246CC42
D232C83B C99CCC42 0E32890C B6CBF018
B1D4C178 2F9DDB16 ABAA74E5 95304BEF
9D0CCFA9 8AF8F8E2 1E0A955E 4771A576
@Axel-Erfurt
Axel-Erfurt / PyQt6_PDFViewer.py
Created March 26, 2022 20:33
Show PDF with PyQt6 QWebengineView
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from PyQt6.QtCore import QUrl
from PyQt6.QtWidgets import QApplication, QMainWindow, QWidget
from PyQt6.QtWebEngineWidgets import QWebEngineView #, QWebEngineSettings
from os import path
class MainWindow(QMainWindow):
def __init__(self):
@ahbanavi
ahbanavi / encryption.php
Last active May 1, 2024 23:18
Encrypt / Decrypt JSON data between Python and PHP using AES 256 GCM
<?php
const PASSPHRASE = ''; // use 'openssl rand -hex 32' to generate key, same with python
function encrypt(array $data): string
{
$data_json_64 = base64_encode(json_encode($data));
$secret_key = hex2bin(PASSPHRASE);
$iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-gcm'));
$tag = '';
$encrypted_64 = openssl_encrypt($data_json_64, 'aes-256-gcm', $secret_key, 0, $iv, $tag);
@pvanfas
pvanfas / Awesome Python.md
Last active July 16, 2024 04:10
A curated list of awesome Python frameworks, libraries, software and resources.
var pljssglobal = [];
var pljssglobalid;
if (window['PlayerjsAsync']) {
setTimeout(PlayerjsAsync, 1)
};
function Playerjs(options) {
var o = {
play: false,
audiosrc: [],
@Orizzu
Orizzu / itemClicked.py
Last active November 25, 2023 18:48
qlistwidget item clicked event pyqt
# you can copy paste and run this code for test
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
import sys
class window(QMainWindow):
def __init__(self):
super(window, self).__init__()
listWidget = QListWidget()
listWidget.resize(300,120)