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)
04c4f6022dadf81c3dacde172ad1f07abaab2aba94e51e60c72edcd8c8bfd0d93b8a59a20dfe0ba3c785949e9e7e5c1cf19bd2caeee61da6f8a7e523864150f02a
RaceTracker GATT
Services:
attr handle: 0x0001, end grp handle: 0x000b uuid: 00001800-0000-1000-8000-00805f9b34fb - org.bluetooth.service.generic_access
attr handle: 0x000c, end grp handle: 0x000f uuid: 00001801-0000-1000-8000-00805f9b34fb - org.bluetooth.service.generic_attribute
attr handle: 0x0010, end grp handle: 0x0022 uuid: 0000180a-0000-1000-8000-00805f9b34fb - org.bluetooth.service.device_information
attr handle: 0x0023, end grp handle: 0x0029 uuid: 0000fff0-0000-1000-8000-00805f9b34fb - blood pressure monitor? i have no idea...
attr handle: 0x002a, end grp handle: 0x0031 uuid: 0000ccc0-0000-1000-8000-00805f9b34fb - generic connection parameter service?
attr handle: 0x0032, end grp handle: 0xffff uuid: f000ffc0-0451-4000-b000-000000000000 - remains of sensor library example? again not sure..
@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

@h0st1le
h0st1le / git-patch_send_email
Last active December 14, 2015 01:48
Git creating and submitting a patch via email (Example)
# change to local checked-out copy of repository
cd git.git
# update
git fetch # or "git pull" if you want to merge as well
# make changes on a local topic branch
git checkout -b my_topic origin/master
# make/test changes
#!/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'
@h0st1le
h0st1le / WMS Request and Spec Info
Created April 21, 2012 02:46
WMS Server Spec and Generic Request Example
Generic GetCapabilities Request for WMS server and Additional Info on the Spec
?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
Additional Requests:
GetMap, GetFeatureInfo
Further info on the WMS Spec:
VERSION=version: Request version
REQUEST=GetMap: Request name
@h0st1le
h0st1le / html background transparency
Created March 14, 2012 19:58
background transparency without affecting child elements
.alpha60 {
/* Fallback for web browsers that doesn't support RGBa */
background: rgb(0, 0, 0) transparent;
/* RGBa with 0.6 opacity */
background: rgba(0, 0, 0, 0.6);
/* For IE 5.5 - 7*/
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
/* For IE 8*/
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
}