Skip to content

Instantly share code, notes, and snippets.

View iGlitch's full-sized avatar
🏠

Glitch iGlitch

🏠
View GitHub Profile
@iGlitch
iGlitch / hax.sh
Last active January 13, 2024 16:47
macOS provisioning, hardening, tweaking, whatever script - no more phone home
#!/bin/bash
# Let's "secure" even the script for you :)
sudo -v
function ok() {
echo -e "[OK] "$1
}
function bot() {
@iGlitch
iGlitch / saveme.sh
Last active September 1, 2022 09:58
init.d script for Google Pixel for performance and battery tweaks
#!/system/bin/sh
# assuming youu have magisk, put this in /data/adb/service.d/
sleep 22;
# Disable sysctl.conf to prevent ROM interference #1
if [ -e /system/etc/sysctl.conf ]; then
mount -o remount,rw /system;
mv /system/etc/sysctl.conf /system/etc/sysctl.conf.bak;
mount -o remount,ro /system;
@iGlitch
iGlitch / readme.md
Last active August 22, 2022 16:56
Convert txt codesets to gct for Wii on Mac OS or Linux

Instructions & Troubleshooting

  • If you're on Mac and prefer double clicking rather than full terminal, rename it to txt2gct.command so you can double click to execute it.
  • make sure the .txt is next to the .sh/.command (or you know how to modify paths)
  • chmod 777 txt2gct.sh (or txt2gct.command if you named it that)
  • if you DID NOT use a premade .txt from a different build / if you made the txt from scratch, comment or remove line 23 and rename hax.txt to $file on line 26. so if your .txt was from a custom build (which likely used codemgr) then you don't need to do anything.
  • haven't tested on files with spaces in name, so if possible rename the .txt without spaces.
@iGlitch
iGlitch / main.cs
Created May 29, 2019 01:31
Code Build Tool
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
namespace CodeBuildTool
{
@iGlitch
iGlitch / bot.py
Created February 13, 2019 09:48
Super basic IRC bot in Python
import os
import re
import socket
import httplib
import random
import sys
import time
from datetime import date
import urllib
import cgi
@iGlitch
iGlitch / autodl.sh
Last active February 13, 2019 10:05
AutoDL RSS Torrents from Gazelle tracker cron
#!/bin/bash
#~ AutoGet Script ~#
#~ cron example, run every 10mn: ~#
#~ */10 * * * * /path/to/script/autodl.sh >/dev/null 2>&1 ~#
# variables
RSSKEY=####_#####################
USERID=#####
AUTH=################################
@iGlitch
iGlitch / gateway.c
Created February 13, 2019 09:41
Gateway 3DS Installer Mockup
/* TYPEDEFS */
typedef unsigned char u8;
typedef unsigned short u16;
typedef long size_t;
/* EXTERNS */
int iprintf(const char * format, ...);
void firmware_page_program_and_write(int offset, void * buffer, int length);
void firmware_read(int offset, void *buffer, int length);
int memcmp(void * dst, void * src, int length);
int memcpy(void * dst, void * src, int length);
@iGlitch
iGlitch / appx2pc.py
Created April 11, 2018 13:28
Install APPX files on PC
import zipfile
import os
print("make sure this is running in the same directory as your appx file")
appxfile=raw_input("please enter the file name of the appx you want to unpack: ")
folder=appxfile.replace(".appx","")
folder=folder.replace("bundle", "")
if not os.path.exists(folder):
os.makedirs(folder)
zip_ref = zipfile.ZipFile(appxfile, 'r')
zip_ref.extractall(folder)
@iGlitch
iGlitch / line.js
Created December 21, 2017 22:49
Greasefork script to add LINE stickers into Discord Web, click the heart next to the emoji symbol
// ==UserScript==
// @name Discord LINE Stickers Haxx
// @version 1
// @description add line stickers to web version of discord
// @include https://discordapp.com/channels/*
// ==/UserScript==
document.head.appendChild(document.createElement('script')).setAttribute("src", "https://magane.moe/api/dist/magane")
@iGlitch
iGlitch / wifi.py
Created October 18, 2017 14:38
Code for testing krackattack
#!/usr/bin/env python2
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
import sys, socket, struct, time, subprocess, atexit, select
from datetime import datetime
IEEE_TLV_TYPE_RSN = 48
IEEE_TLV_TYPE_FT = 55