Skip to content

Instantly share code, notes, and snippets.

View Miliox's full-sized avatar

Emiliano Firmino Miliox

View GitHub Profile
@Miliox
Miliox / grub.cfg
Created January 31, 2017 09:43
Grub Manual Boot
# Change for the correct partition
set root=(hd1,3)
set partiton=/dev/sda3
# Boot Machine
linux /vmlinuz root=$partition
initrd /initrd.img
boot
@Miliox
Miliox / Makefile
Created January 26, 2017 10:17
EFI Hello Makefile
ARCH = x86_64
EFIROOT = /usr
HDDRROOT = $(EFIROOT)/include/efi
INCLUDES = -I. -I$(HDDRROOT) -I$(HDDRROOT)/$(ARCH) -I$(HDDRROOT)/protocol
CRTOBJS = $(EFIROOT)/lib/crt0-efi-$(ARCH).o
CFLAGS = -O2 -fPIC -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -mno-red-zone
ifeq ($(ARCH),x86_64)
CFLAGS += -DEFI_FUNCTION_WRAPPER
endif
@Miliox
Miliox / pandocs.txt
Created August 29, 2016 21:08
Pan Docs
Pan Docs
--------
Overview
--> About the Pan Docs
--> Game Boy Technical Data
--> Memory Map
I/O Ports
--> Video Display
@Miliox
Miliox / GameBoy Bootstrap ROM spiegata
Created August 29, 2016 14:59 — forked from MirkoPani/GameBoy Bootstrap ROM spiegata
GameBoy Bootstrap ROM Commentata
LD SP,$fffe ; $0000 Inizializza Stack- copia $fffe in SP (Stack Pointer)
XOR A ; $0003 Setta a 0 la memoria da $8000-$9FFF (VRAM) (xor tra A e se stesso=tutti 0 essendo bit uguali)
LD HL,$9fff ; $0004 Setta HL- puntatore per pulire la VRAM
Addr_0007:
LD (HL-),A ; $0007 Setta HL a 0 (essendo A tutti bit 0), decrementa HL portandolo a $9ffe
BIT 7,H ; $0008 Bit piu significante di H=$9f= 10011111 ossia 1 - zero flag del registro F viene pulito
JR NZ, Addr_0007 ; $000a jump if not zero to address 0x000C-0x0005=0x0007
questa procedura qui sopra continua in loop scrivendo 0 in $9FFE,$9FFD...fintanto che
il jump viene annullato=condizione 'not zero' vera.
@Miliox
Miliox / solution.erl
Created July 29, 2016 23:44
HackerRank Erlang Template
-module(solution).
main() -> to_implement.
@Miliox
Miliox / gist:9f860a2ab51289c2bac6
Created February 23, 2016 14:26
Enable KdPrint Logging
1. Open RegEdit
2. Create a Registry Key: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter"
3. Create a DWORD Entry Called "DEFAULT" (You have to create it, not confuse it with "(Default)" entry)
4. Change Value to 0x8
Source: https://www.osronline.com/article.cfm?article=295
@Miliox
Miliox / .gvimrc
Last active March 13, 2017 08:11
My Vundle based VIMRC
" Author: Emiliano Carlos de Moraes Firmino
" Contact: emiliano.firmino@gmail.com
" Description: gvim configuration
set encoding=utf-8
if has("win32")
set guifont=Consolas_for_Powerline_FixedD:h12:cDEFAULT
let g:Powerline_symbols="fancy"
let g:Powerline_mode_V="V·LINE"
@Miliox
Miliox / tutorial.md
Created January 22, 2016 15:10
How install Pyserial of Python for Windows
@Miliox
Miliox / enable_checkjni.sh
Created December 9, 2015 14:14
Enable CheckJNI
adb shell setprop debug.checkjni 1
@Miliox
Miliox / pomodoro.sh
Created December 9, 2015 12:48
Linux Minimal Pomodoro Timer
# Work
sleep 25m && notify-send "break"
# Break
sleep 5m && notify-send "back to work"