Skip to content

Instantly share code, notes, and snippets.

View WillSams's full-sized avatar
🚀

Will Sams WillSams

🚀
View GitHub Profile
@WillSams
WillSams / 1-create-dotnetcore-example.sh
Last active March 8, 2019 14:10
VSCode Script For Customer-Orders-Core base template
#!/bin/bash
set -o nounset # unset variables are errors
SCRIPTVERSION="2018.10.09-Debian"
SCRIPTNAME="create-dotnetcore-example.sh"
SCRIPTFULLNAME="$0"
SOLUTIONNAME=Northwind
API=$SOLUTIONNAME.Api
@WillSams
WillSams / howto_bitmaps_to_NES
Last active May 29, 2023 14:29
Instructions on how to convert bitmaps into NES graphics.
Pre-requisite
--------------
- Install GIMP: https://www.gimp.org/
- Download the Shiru's NES Screen Tooll: https://shiru.untergrund.net/software.shtml
- Download this 8-bit color palette: http://zanagb.deviantart.com/art/The-NES-GIMP-Pallete-V2-197049739
- Import the palette into GIMP (Windows->Dockable Dialogs->Palettes, then Right-Click and import)
1 - Open your image in GIMP, preferably a 128x128 one.
2 - Go to Image -> Mode -> Indexed. Select "Use custom palette" and click on the colors icon. Navigate to the NESPAL.gpl file you just imported.
@WillSams
WillSams / Makefile
Created May 30, 2017 00:45
Makefile used for SMB 1 Disassembly
AS = ca65
LD = ld65
OBJDUMP = od65
DEBUGGER = mednafen
OBJS=smb.o
ROM = smb
BIN = $(ROM).nes
@WillSams
WillSams / SMBDIS.ASM
Last active May 4, 2024 10:49 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@WillSams
WillSams / SantoshiMatrixTop100NESGames.txt
Last active June 5, 2017 23:29
Santoshi Matrix's Top 100 NES Games
Putting these here because that site is a nightmare to load. xxxx denotes games in my collection.
xxxx#100 Duck Hunt $2-4
#99 Battle City $4-8
#98 Xexyz $4-8
#97 Popeye $6-12
xxxx#96 StarTropics $4-6
xxxx#95 Abadox: The Deadly Inner War $2-6
xxxx#94 Golgo 13 Top Secret Episode $4-6
#93 Bio Force Ape; price of a reproduction
Setup SGDK development toolchain environment on Linux
=====================================================
Note: using Gendev's setup (Andy Grind's fork at https://github.com/andwn/gendev). May take 30 minutes to an hour to build.
$ sudo apt install build-essential texinfo git
$ git clone https://github.com/andwn/gendev.git
$ cd gendev
$ make
$ sudo add-apt-repository ppa:mmk2410/intellij-idea-community
$ sudo apt-get update
$ sudo apt-get install intellij-idea-community
$ sudo apt-get install maven -y
$ mvn -version #test
#Note: Maven is installed to /usr/share/maven
# Maven's configuration is found in /etc/maven
@WillSams
WillSams / netbeans_cplusplus_note
Created September 18, 2016 19:38
Netbeans C++ note
Projects with external data outside of the working directory will have probems (i.e., java.lang.nullexception) if you use the default external console. Go to Project properties -> Run -> Console Type and select Standard Output.
@WillSams
WillSams / ipvanish_on_raspberry_pi.sh
Last active November 10, 2020 10:42
Set up IPVanish on Raspberry PI 3
# This script is designed to execute via the shell. Download this script on
# your Pi, edit the user and passwd above, execute the following commands:
# chmod +x ipvanish_on_raspberry_pi.sh
# sudo ./ipvanish_on_raspberry_pi.sh
# Of course, you can use this script just as a reference and type everything out.
# Place your ip vanish username here. For example, IPVANISHUSER=picrazy
IPVANISHUSER=
IPVANISHPASSWD=
@WillSams
WillSams / Compiling and Installing Box2d on Linux
Last active February 2, 2021 08:23
Compiling/Installing Box2d on LInux
sudo su && apt-get install g++ cmake libglu-dev libxi-dev freeglut3-dev p7zip-full #only step in this gist Debian/Ubuntu/LinuxMint specific
wget http://box2d.googlecode.com/files/Box2D_v2.3.0.7z
7z x Box2D_v2.3.0.7z
cd Box2D_v2.3.0/Box2D/Build
cmake -DBOX2D_VERSION=2.3.0 \
-DBOX2D_INSTALL=ON \
-DBOX2D_INSTALL_DOC=ON \
-DBOX2D_BUILD_SHARED=ON \
-DBOX2D_BUILD_STATIC=ON \
-DBOX2D_BUILD_EXAMPLES=OFF \