Skip to content

Instantly share code, notes, and snippets.

Ian Burgwin ihaveamac

Block or report user

Report or block ihaveamac

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gen-tie.py
#!/usr/bin/env python3
# very lazy script to generate the Title Info Entry for title.db
import argparse
import random
parser = argparse.ArgumentParser(description='Generate Title Info Entry.')
parser.add_argument('-o', help='output filename', type=argparse.FileType('wb'), required=True)
parser.add_argument('-v', help='title version', type=int, required=True)
View dump-all.py
#!/usr/bin/env python3
# This file is a part of panopticon-2.
#
# Copyright (c) 2019 Ian Burgwin
# This file is licensed under The MIT License (MIT).
# You can find the full license text in LICENSE.md in the root of this project.
import argparse
import base64
View boot_macOS.command
#!/bin/bash
cd `dirname "$0"`
echo Booting Hekate with HBL...
echo ------------------------------
sudo python3 ./bin/fusee-launcher.py -w bin/payload.bin
echo ------------------------------
sleep 3
exit
View keepass-sync.py
#!/usr/bin/env python3
from datetime import datetime
from os import stat
from sys import argv, exit
from shutil import copy2
from Foundation import NSUserNotification
from Foundation import NSUserNotificationCenter
from Foundation import NSUserNotificationDefaultSoundName
View intro.md

Kurisu2 (INCOMPLETE)

Kurisu2 is a complete rewrite of the Kurisu bot. This document explains most of the major changes.

Actions Log

There is a new log which contains every action against a user, channel, or other things. For example, every takehelp and givehelp, warn and warn deletion, and more, each have their own entry in the log.

Action entries each have their own snowflake ID (based on the date), and contain the user, target, kind, description, and certain extra information. Entries can be exported on demand to CSV files.

Action entries can also have attachment URLs. You can add URLs manually with .<cmd> 78465448093417472 https://.... You can also attach files when calling .<cmd> 78465448093417472.

View check-battery.py
#!/usr/bin/python
from __future__ import print_function
from __future__ import division
import subprocess as sp
from os.path import exists, expanduser
from sys import argv
from datetime import datetime
from Foundation import NSUserNotification
View aes128.py
# Pure python AES128 implementation
# SciresM, 2017
from struct import unpack as up, pack as pk
def sxor(s1, s2):
'''Xors two strings.'''
assert(len(s1) == len(s2))
return ''.join([chr(ord(x) ^ ord(y)) for x,y in zip(s1, s2)])
class AESCBC:
@ihaveamac
ihaveamac / unrestrict.c
Created Aug 3, 2017 — forked from SonoSooS/unrestrict.c
Unrestrict - parental control remover for Nintendo 3DS
View unrestrict.c
#include <3ds.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void __system_allocateHeaps(void)
{
extern char* fake_heap_start;
extern char* fake_heap_end;
View post-welcome.py
#!/usr/bin/env python3
import asyncio
import discord
import time
text = open("welcome-update.md").read()
client = discord.Client()
View 3dshax_build.sh
#!/bin/bash
for f in 3dsbootldr_fatfs 3dsbootldr_firm 3dshax unprotboot9_sdmmc; do cd $f; make clean; cd ..; done
OUTPATH=/Volumes/EMUNAND9SD
cd unprotboot9_sdmmc
make
cd ../3dshax
You can’t perform that action at this time.