Skip to content

Instantly share code, notes, and snippets.

View h0st1le's full-sized avatar

Justin h0st1le

  • Thinking Technologies
View GitHub Profile
#!/usr/bin/env python3
"""
Converts between QD and FDS disk images
"""
import struct
def create_fds_header(side_count):
return b"FDS\x1A" + bytes([side_count & 0xFF]) + bytes(11)
@h0st1le
h0st1le / qd2fds.py
Created July 6, 2022 20:56 — forked from infval/qd2fds.py
Converts between QD and FDS disk images (Family Computer Disk System / Famicom)
#!/usr/bin/env python3
"""
Converts between QD and FDS disk images
"""
import struct
def create_fds_header(side_count):
return b"FDS\x1A" + bytes([side_count & 0xFF]) + bytes(11)
@h0st1le
h0st1le / flash.sh
Created December 28, 2016 06:14 — forked from tejo/flash.sh
#!/bin/bash
set -e
set -o pipefail
dfu-util --alt 0 -s 0x08000000:force:unprotect -D "$1"
sleep 5
dfu-util -R -a 0 -D "$1"

Cam settings

Before you do anything, perform a factory reset.

##Setup

Lens: Manual

White bal: AT1

#!/bin/bash -ex
# Paste this into ssh
# curl -sL https://gist.github.com/gists/2913223/download | tar -xzO | /bin/bash -ex
# When forking, you can get the URL from the download button.
pushd $HOME
aptget='sudo apt-get'
chsh='sudo chsh'