Skip to content

Instantly share code, notes, and snippets.

View SonoSooS's full-sized avatar

Sono SonoSooS

  • Hungary
  • 07:15 (UTC +02:00)
View GitHub Profile
@SonoSooS
SonoSooS / WifiResetThreedee.c
Created July 8, 2016 23:13
Resets the WiFi on the new3DS
#include <3ds.h>
int main()
{
Handle nwmEXT_handle;
aptMainLoop();
if(R_FAILED(srvGetServiceHandle(&nwmEXT_handle, "nwm::EXT"))) return 1;
@SonoSooS
SonoSooS / unrestrict.c
Created August 2, 2017 15:07
Unrestrict - parental control remover for Nintendo 3DS
#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;
@SonoSooS
SonoSooS / mkelf.sh
Created February 22, 2017 21:42
.cia -> .elf
#!/bin/bash
set -e
FN="$(basename "$1" .cia)_tmp"
rm -rf "$FN"
mkdir "$FN"
ctrtool --contents="$FN/contents" "$1" >/dev/null
ctrtool --exefsdir="$FN/exefs" --decompresscode "$FN/contents.0000.00000000" >/dev/null
ASD="$(ctrtool "$FN/contents.0000.00000000" | grep Code)"
@SonoSooS
SonoSooS / BriSet.c
Created February 22, 2017 00:21
Screen brightness setter for 3DS
#include <3ds.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
gfxInit(GSP_RGBA8_OES, GSP_RGBA8_OES, false);
@SonoSooS
SonoSooS / gbanotif.sh
Created January 28, 2016 15:12
GBATemp notifier written in bash
#!/bin/bash
# ===================================
# GBATemp notifier bash script
#
# created by MarcusD
# Copyright $(date +"%Y")
#
# :P
# ===================================
@SonoSooS
SonoSooS / fstlist.lua
Created December 22, 2016 09:53
FST parser Lua script
#!/bin/lua
-- ===================================
-- FST parser Lua script
--
-- created by MarcusD
-- Copyright $(date +"%Y")
--
-- :P
-- ===================================
@SonoSooS
SonoSooS / distbuild3.sh
Created December 21, 2016 20:22
Python distutils bug workaround
#!/bin/bash
while :; do
ASD="$(env CC=gcc python3 setup.py build 2>/dev/null)"
if [ $? -eq 0 ]; then
echo "yay, success"
break
fi
CMD="$(echo "$ASD" | tail -n1 | sed 's/^x86_64-linux-gnu-gcc/gcc/')"
eval $CMD
@SonoSooS
SonoSooS / kagiya.sh
Created November 27, 2016 19:46
kagiya-ctr checker and notifier
#!/bin/bash
# ===================================
# kagiya-ctr checker bash script
#
# created by MarcusD
# Copyright $(date +"%Y")
#
# :P
# ===================================
@SonoSooS
SonoSooS / bf.cpp
Created November 19, 2016 11:33
Terraria Mobile Blowfish savefile crypter
/*
Terraria Mobile Blowfish savefile crypter
Copyright (C) 2016 MarcusD (https://github.com/MarcuzD)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@SonoSooS
SonoSooS / nowplaying.php
Last active November 8, 2016 18:28
very basic VLC "Now playing" script
<?
/*
The MIT License (MIT)
Copyright (c) 2016 MarcusD
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.