Skip to content

Instantly share code, notes, and snippets.

@Wh1terat
Wh1terat / ztools.py
Created September 23, 2019 12:12
Z-Link Firmware Tools
#!/usr/bin/env python3
import os
import mmap
import argparse
from collections import OrderedDict
__title__ = "Z-Link Firmware Tools"
__version__ = "0.1"
__author__ = "Gareth Bryan"
__license__ = "MIT"
@slorber
slorber / react-navigation-tree.jsx
Last active August 13, 2022 19:17
react-navigation-tree.jsx
const App = createAppContainer(
createStack({
LoggedSwitch: createSwitch({
// When user is authenticated
LoggedIn: createStack({
// The logged in root is generally a tab or drawer navigator
LoggedInRoot: createTabsOrDrawer({
@chriseidhof
chriseidhof / boilerplate.swift
Last active September 27, 2025 12:39
QuickMacApp
// Run any SwiftUI view as a Mac app.
import Cocoa
import SwiftUI
NSApplication.shared.run {
VStack {
Text("Hello, World")
.padding()
.background(Capsule().fill(Color.blue))
@conath
conath / Data+Hex.swift
Last active September 10, 2025 21:57
A close to complete CoreData Bluetooth peripheral implementation of the Bluetooth HID Keyboard standard. As of iOS 14, the services are blocked by the system so it's impossible to make an iOS device act as a bluetooth keyboard, for example.
import Foundation
extension Data {
init?(hexString: String) {
let len = hexString.count / 2
var data = Data(capacity: len)
for i in 0..<len {
let j = hexString.index(hexString.startIndex, offsetBy: i*2)
let k = hexString.index(j, offsetBy: 2)
let bytes = hexString[j..<k]
@FreddieOliveira
FreddieOliveira / docker.md
Last active November 4, 2025 23:12
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@rgon
rgon / Cargo.toml
Created October 9, 2025 11:13
Gstreamer ipcpipelinesink example
[package]
name = "gstreamerIPCdemo"
version = "0.1.0"
edition = "2024"
[dependencies]
gstreamer = "0.24.2"
nix = "0.30.1"