Skip to content

Instantly share code, notes, and snippets.

<?php
// extract password from PSMD rescue QR code
// uses https://github.com/khanamiryan/php-qrcode-detector-decoder
?>
<h2>Pok&eacute;mon Super Mystery Dungeon QR code parser</h2>
Check out the QR codes you can use <a href="https://ianburgwin.net/psmdqrcode/codes"><b>here</b></a> and then do ?file=filename!<br>
Example: <a href="https://ianburgwin.net/psmdqrcode/?file=1FTq4zo.jpg">https://ianburgwin.net/psmdqrcode/?file=1FTq4zo.jpg</a><br>
If you would like your image to be tested, contact ihaveamac/ihaveahax (which is probably where you found the link!)<hr>
Source and credits for this PHP script is a <a href="https://gist.github.com/ihaveamac/3dae2929f8b87ed93dcf">GitHub Gist</a><hr>
@ihaveamac
ihaveamac / mgl-changelog.md
Last active November 27, 2015 16:55
grid launcher changelog up to 127

Beta 127

  • Adds banners for themes. Same image format as the other banner images. Place them in the theme folder and call the file theme-banner.png or theme-banner-fullscreen.png

Beta 126

  • All menus (including the title menu) now refresh their icon layout when the number of rows is changed
  • Includes updater v2.04 by @ihaveamac

Beta 125

  • Fixes issues with title-based apps (SVDT, HANS, Braindump) not getting the correct title ID.
@ihaveamac
ihaveamac / lpp-3ds.xml
Last active June 15, 2016 10:57
this might actually fix notifications
<!-- taken from RetroArch 3DS MAME nightlies -->
<targets selectable="false">
<!-- YouTube (USA)-->
<title mediatype="1">00040000000B0F00</title>
<!-- YouTube (Europe)-->
<title mediatype="1">00040000000CCD00</title>
<!-- YouTube (Japan)-->
<title mediatype="1">00040000000D3000</title>
<!-- Monster Hunter 4 Ultimate Special Demo (USA)-->
<title mediatype="1">000400000015FA00</title>
<div>
<canvas id="canvasPreview" width="400px" height="222px">No canvas? That's sad...</canvas>
<p>Please, right click on the preview to download it.</p>
</div>
<div>
<div>
<select id="templateType" name="templateType">
<option value selected disabled>Select a cover!</option>
<optgroup label="Nintendo 3DS Games">
<option value="template-basic-banner-fullscreen.png">Generic</option>
Screen.waitVblankStart()
Screen.refresh()
img = Screen.loadImage(System.currentDirectory().."/sample.png")
for x = 0, Screen.getImageWidth(img) - 1 do
for y = 0, Screen.getImageHeight(img) - 1 do
local clr = Screen.getPixel(x, y, img)
Screen.drawPixel(x, y, clr, TOP_SCREEN)
end
end
Screen.debugPrint(5, 5, "Done!", Color.new(255, 255, 255), BOTTOM_SCREEN)
@ihaveamac
ihaveamac / scroll.lua
Last active December 16, 2015 03:06
it scrolls an image thing - using lpp-3ds - https://www.youtube.com/watch?v=d1AI4syhu1U
Screen.enable3D()
Graphics.init()
-- this should always be below 1
friction = 0.9
-- these are set while the page is moving
y_position = 0
y_velocity = 0
dragging = false
Screen.waitVblankStart()
Screen.refresh()
Screen.debugPrint(5, 5, "Hello world!", Color.new(255, 255, 255), TOP_SCREEN)
Screen.debugPrint(5, 5, "Here's a random number: "..math.random(1, 100), Color.new(255, 0, 0), BOTTOM_SCREEN)
Screen.flip()
while true do
if Controls.check(Controls.read(), KEY_B) then
#!/usr/bin/env python2
#####
#ncchinfo.bin format
#
#4 bytes = 0xFFFFFFFF Meant to prevent previous versions of padgen from using these new files
#4 bytes ncchinfo.bin version or'd with 0xF0000000, to prevent previous versions of padgen from using these new files
#4 bytes Number of entries
#4 bytes Reserved
#
#!/usr/bin/env python2
import sys, binascii, math
if len(sys.argv) != 2:
print("only need one CIA file")
sys.exit()
f = open(sys.argv[1], "rb")
# Archive Header Size
f.seek(0x0)
#!/usr/bin/env python2
import sys, binascii
if len(sys.argv) < 2:
print "usage: parse_seeddb_list.py seeddb_list.txt [--includeseed]"
print "- a seeddb.bin file will be generated in the current working directory"
print "- --includeseed will include the game's seed in the table"
print "- seeddb list could be obtained from http://pastebin.com/zNM8zYwa"
sys.exit()