Skip to content

Instantly share code, notes, and snippets.

View PierceLBrooks's full-sized avatar
🇵🇸

Pierce Brooks PierceLBrooks

🇵🇸
View GitHub Profile

iOS NDEF Record Compatibility

Introduction

NDEF (NFC Data exchange format) is a method of transferring (relatively small amounts of) information from a passive or actively emulated tag by way of "records" which specify the type of information is being received and the function it is meant to have.

iPhones do not have a full suite of NDEF compatibility, the reason for this is unknown (to me at least), what this means is the background polling on iPhones will not interpret some specific record types, with compatible NDEF records, a notification will pop up directing the user to follow the received data into its respective app to complete whatever action was intended by the record.

Compatibility Table

Below are the options offered by NFC Tools on IOS for NDEF Encoding, some of the options below are other record types but with a specific function IE social links are just URLs.

@RishikesavanRamesh
RishikesavanRamesh / README.md
Last active October 6, 2025 03:28
Using Xephyr for Secure Docker GUI Access

Using Xephyr for Secure Docker GUI Access

When working with ROS development in Docker containers, visualizing data using tools like rviz2 can be challenging due to X11 authentication issues, especially after system restarts. The following approach uses Xephyr to securely manage GUI access without compromising the security of your host's X server.

Overview

  • Challenge: X11 authentication issues and security concerns when using Docker containers with GUI applications.
  • Solution: Use Xephyr to create a nested X server for Docker container GUI applications.

Steps to Set Up Xephyr for Docker GUI Applications

  • Start Xephyr:
@ravarcheon
ravarcheon / spectralRotation.py
Last active September 22, 2025 11:00
rotates an audio file by 90 degrees in the spectrum while being a reversible process with minimal loss (only floating point errors which are like -150 dB but thats literally silence ahaha~)
import numpy as np
import soundfile as sf
from scipy.fftpack import fft, ifft
def rotateSignal(signal,flip):
if flip:
signal = signal[::-1]
x = np.concatenate((signal, signal[1:][::-1])) # concatenating the array with a reverse of itself makes it such that the fourier transform doesn't layer over a reversed version of itself in the inverse fft
rotSig = ifft(x)
@matibzurovski
matibzurovski / example.srt
Created November 3, 2023 13:48
Example srt file
1
00:00:00,000 --> 00:00:02,500
Welcome to the Example Subtitle File!
2
00:00:03,000 --> 00:00:06,000
This is a demonstration of SRT subtitles.
3
00:00:07,000 --> 00:00:10,500
@dliptai
dliptai / build-openvdb-python.md
Created August 31, 2023 05:57
Building OpenVDB with Python bindings
@travisbrown
travisbrown / NickJFuentes-followers.csv
Last active January 27, 2023 04:14
Followers for @nickJfuentes (ID, screen name, follower count; some info missing for suspended accounts)
We can't make this file beautiful and searchable because it's too large.
1618117522473062401,AmerCrusader,0
805901211291422720,PatriotGulag,103
897873361161732098,presidentmeeks,40
1369024312401870852,obama_baroque,154
1365839268476645378,vylpill,8705
1616533685427208192,lpbr0014,102
1606569725235978240,chitochipper,37
1530966028221661184,originalpod5,9
1586008148552212481,TheFaddedGamer,12
1589871939786620929,Truthyfren,1253
@frnsys
frnsys / atlas.py
Last active October 6, 2025 03:31
Blender auto-merging objects and textures
"""
To install additional libraries:
cd /opt/blender/3.2/python/bin
./python3.10 -m ensurepip
./python3.10 -m pip install pillow shapely networkx cairosvg
Python headers are required for compiling nest2d.
Download the source for your blender python version
(e.g. 3.10.8) from <https://www.python.org/downloads/source/>
@melroy89
melroy89 / mastodon-docker-setup.md
Last active September 27, 2025 19:31 — forked from akuechl/mastodon-docker-setup.md
Mastodon Docker Setup - most complete and easiest guide online
@T1T4N
T1T4N / generate-xcode-compilation-database.md
Last active October 22, 2025 07:01
Generate a JSON Compilation Database from an Xcode project

Introduction

A JSON compilation database is a very handy output format which is parsed and used by many development tools. Unfortunately for us Apple Developers, it is not straightforward to generate one from within Xcode, as it is (probably) not Apple's priority and therefore there is no toggle/switch/setting that can be easily enabled to get this information.

There is however a solution, thanks to Apple using Clang/LLVM as their main toolchain.

Implementation

The standard way to generate this with clang would be to use the -MJ flag and give it a file name that typically corresponds to the input file. Using this flag indirectly through Xcode is hard, given that we're not aware of all the other arguments when a compiler call is executed.

However, there is a second hidden/badly documented LLVM flag: -gen-cdb-fragment-path - it is implemented in terms of -MJ and has the same functionality, but it's argument in contrast is an output directory.

@frnsys
frnsys / mixamo.json
Created July 25, 2022 20:38
Mixamo rig mapping for BVH retargeter
{
"name" : "Mixamo",
"url" : "",
"bones" : {
"mixamorig:Hips" : "hips",
"mixamorig:Spine" : "spine",
"mixamorig:Spine1" : "spine-1",
"mixamorig:Spine2" : "chest",
"mixamorig:Neck" : "neck",