Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/env python3
import json
"""
nidlist.txt:
0xF183726E _vshSblAimgrGetConsoleId
0xF1B7B34C sceBbmcTurnOn
0xF1C4D466 sceBtStopInquiry
...
@devnoname120
devnoname120 / henkakuwikianalyze.py
Created November 9, 2016 04:33
Script that helped in changing the wiki.henkaku.xyz between Library and Module
#! /usr/bin/env python3
import requests
import re
from bs4 import BeautifulSoup
def dicadd(dic, dic_add):
@devnoname120
devnoname120 / RE prepare.py
Created June 9, 2016 11:50
uOFW: Extract function prototypes from the assembly and improve them and add documentation from header files
# Makeshift RE'ing base file creator. The code is really messy, don't expect it to be robust.
import re
asm = 'E:/Programmation/PSP/Reverse engineering/threadman - 660/threadman.s'
proto = ['E:/Programmation/PSP/Reverse engineering/threadman - 660/pspthreadman.h','E:/Programmation/PSP/Reverse engineering/threadman - 660/pspthreadman_kernel.h']
protos = {}
def protoBase():
global protos
@devnoname120
devnoname120 / removeLastLines.py
Last active August 29, 2015 14:02
NoPicAds: remove new line character from files
# NoPicAds: remove new line character from files
# https://github.com/legnaleurc/nopicads/
import glob
for fileName in glob.glob("src/sites/*/*.js"):
with open(fileName, "r", encoding='utf-8') as file:
lines = file.readlines()
# If last line is empty
@devnoname120
devnoname120 / Cygwin Mirror Tester.au3
Created April 6, 2014 18:44
Cygwin Mirror Tester
;#NoTrayIcon
#include <WinHttp.au3>
#include <String.au3>
#include <array.au3>
$mirrorsUrl = "http://cygwin.com/mirrors.lst"
$aMirrorsUrl = StringSplit($mirrorsUrl, "/", 2)
$mirrorsHost = $aMirrorsUrl[2]
$mirrorsFile = $aMirrorsUrl[3]