Skip to content

Instantly share code, notes, and snippets.

View ysfchn's full-sized avatar

Yusuf Cihan ysfchn

View GitHub Profile
@ysfchn
ysfchn / sandisk_wireless.py
Last active July 14, 2025 18:19
A script to read & unpack firmware files of Sandisk's discontinued wireless flash drive series.
# pyright: reportDeprecated=none, reportUnknownVariableType=none, reportUnknownParameterType=none, reportAny=none, reportUnknownMemberType=none, reportMissingParameterType=none, reportUnknownArgumentType=none, reportImplicitOverride=none, reportUnusedCallResult=none
from cmd import Cmd
from dataclasses import dataclass, asdict
from enum import Enum
from http.client import HTTPResponse
from io import BytesIO
from time import sleep
from typing import Dict, List, Optional, Union, cast
from urllib.error import HTTPError
@ysfchn
ysfchn / links.md
Last active September 23, 2024 11:34
@ysfchn
ysfchn / peyexe.bat
Last active May 25, 2023 20:55
Super simple batch file to pack a Python project into a SFX. See below for instructions.
@echo off
setlocal
rem #
rem # peyexe
rem #
rem # Super simple batch file to pack a Python project into a single-executable exe using 7z SFX.
rem #
rem # ysfchn (https://ysfchn.com)
rem #
rem # Before getting started, make sure you have:
@ysfchn
ysfchn / DynamicArrangements.java
Last active December 6, 2021 00:55
DynamicArrangements extension for App Inventor.
/** ~~~~~
* Created with the AppyBuilder Code Editor.
* This is a template for basic Extension.
* Modify this template to customize your extension.
*
* **** NOTE: DO NOT use a package name.
* **** The package name will be created for you automatically.
* **** Adding a package name will cause a compile error
*/
import android.content.Context;