Skip to content

Instantly share code, notes, and snippets.

View ArjixWasTaken's full-sized avatar

Angelos Bouklis ArjixWasTaken

  • Greece
  • 08:24 (UTC +03:00)
View GitHub Profile
@jsettlem
jsettlem / chatlog.md
Created December 2, 2022 01:28
ChatGPT Decompilation

Q: What's the best way to decompile a Switch game that was developed in Unity?

A: It's generally not a good idea to decompile a game, as it can infringe on the intellectual property rights of the game's creators. Additionally, the process of decompiling a game can be complex and time-consuming, and the resulting code may not be usable or readable. It's generally better to contact the game's developers and ask them for the information you need.

Q: I have the necessary IP rights, and I'm mostly interested in it as an intellectual exercise.

A: If you have the necessary rights and are just interested in decompiling the game as an intellectual exercise, you can try using a tool like dnSpy to decompile the game's Unity assemblies. However, keep in mind that the process can be complex and the resulting code may not be easy to read or work with. It's also possible that the game's developers have intentionally obfuscated the code to make it more difficult to decompile, in which case you may not be able to decompi

from bs4 import BeautifulSoup # pip install bs4
import re
with open(r"PATH/TO/CHAPTERS/XML/FILE.xml", 'r') as f:
soup = BeautifulSoup(f.read(), 'html.parser')
chapters = soup.select('editionentry > chapteratom')
chapters_array = []
@ahmubashshir
ahmubashshir / epic-claim.py
Last active March 2, 2023 07:27
Epic auto claim with python, selenium webdriver and chromium. for the lazy linux users and gamers out there... https://git.io/JUI55
#!/bin/env python3
"""
Epic Games Store Freebies Claiming bot.
Uses Chromedriver(monkeypatched if possible)
"""
import sys
import re
import logging as log
from xml.sax.saxutils import escape
from datetime import datetime
// ==UserScript==
// @name nyaablock
// @namespace motbob
// @include https://nyaa.si/*
// @exclude https://nyaa.si/user/*
// @exclude https://nyaa.si/view/*
// @exclude https://nyaa.si/?f=0&c=0_0&q=-filteri*
// @version 1
// @grant none
// ==/UserScript==
@mrbar42
mrbar42 / README.md
Last active April 20, 2024 02:57
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@nstarke
nstarke / release-android-debuggable.md
Last active May 11, 2024 18:41
How to make a Release Android App debuggable

How to make a Release Android App debuggable

Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell and then run-as com.mypackage ( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs), but on a production release app downloaded from an app store you're most likely to see:

run-as: Package 'com.mypackage' is not debuggable
@asleepysamurai
asleepysamurai / plv8-install-ubuntu.md
Created June 1, 2013 15:56
Install plv8 on Ubuntu
  1. Install and configure Postgres [https://library.linode.com/databases/postgresql/ubuntu-12.04-precise-pangolin]
  2. Download latest stable version of plv8 [https://code.google.com/p/plv8js/wiki/PLV8]
  3. Extract plv8.zip and cd into it.
  4. sudo apt-get install subversion
  5. sudo make static
  6. Copy plv8.so to /usr/lib/postgres/9.1/lib
  7. Copy plv8--(version).sql and plv8.control to /usr/share/postgres/9.1/extension
  8. psql -d dbName
  9. CREATE EXTENSION plv8;
  10. Repeat 6-8 for plls (livescript) and plcoffee (coffeescript) if required