Skip to content

Instantly share code, notes, and snippets.

View Dygear's full-sized avatar
🚀
Ready to Go!

Mark Tomlin Dygear

🚀
Ready to Go!
View GitHub Profile
@Dygear
Dygear / gist:f6953cc5aedc902bc969fcc47408b60b
Created April 23, 2025 11:29
Compile Time Crash uart-split.
error: linking with `rust-lld` failed: exit status: 1
|
= note: "rust-lld" "-flavor" "gnu" "/var/folders/t3/t6rbvvlx6z3_lxbzvvlsc7f40000gn/T/rustcRAc8wL/symbols.o" "<44 object files omitted>" "--as-needed" "-Bstatic" "/Users/dygear/uart-split/target/thumbv8m.main-none-eabihf/debug/deps/{libpanic_probe-53ebe0a1d674c014.rlib,libstatic_cell-fecafdc31419fcdc.rlib,libportable_atomic-2d3d81abe13908fa.rlib,libembassy_rp-cb52fb725a5bedc9.rlib,libembedded_hal_nb-6555977106611f47.rlib,libsha2_const_stable-e30829ba97058d0a.rlib,librp_pac-05bd8fd6b3921db6.rlib,libcortex_m_rt-f88c55d3c882d74b.rlib,libembassy_usb_driver-e174516f062982ab.rlib,libatomic_polyfill-e58d7764f5890e30.rlib,librand_core-fad3dfa058d8d319.rlib,libembassy_time_queue_utils-e856d4b13bb04027.rlib,libembassy_embedded_hal-6f36beb5792dac83.rlib,libembassy_futures-809a51e7aecec169.rlib,libembedded_storage_async-d4c9079f95169dc0.rlib,libsmart_leds-90b1231a714de8dd.rlib,libsmart_leds_trait-0e5b0ee4f7953bd4.rlib,librgb-f6e7c38a11e86973.rlib,libembassy_time
@Dygear
Dygear / code.py
Last active March 1, 2025 04:02
Auto Clicker
# https://www.adafruit.com/product/5302
# https://circuitpython.org/board/adafruit_kb2040/
# From https://circuitpython.org/libraries
# Need the adafruit_hid folder & neopixel.mpy file in the lib directory.
import time
import board
import usb_hid
import neopixel
from digitalio import DigitalInOut, Direction, Pull
@Dygear
Dygear / code.py
Last active November 6, 2023 00:13
Adafruit JP’s Product Pick of the Week 12/7/21 Macropad RP2040 Starter Kit @adafruit @johnedgarpark #adafruit
import time
import board
import busio
from digitalio import DigitalInOut, Direction, Pull
import keypad
import displayio
import terminalio
import neopixel
import rotaryio
from adafruit_display_text import label
@Dygear
Dygear / STI.log
Created October 30, 2023 02:06
MacOS Crash Report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: infinite [50446]
Path: /Users/USER/Library/Application Support/Steam/*/infinite.app/Contents/MacOS/infinite
Identifier: infinite
Version: ???
Code Type: X86-64 (Translated)
Parent Process: launchd [1]
@Dygear
Dygear / Info
Last active February 12, 2023 03:22
Crossover Stackoverflow
Macbook Pro 16-Inch 2023
Chip: Apple M2 Max
Memory: 32GB
macOS Ventura 13.2
Line: 21853:
```
-> rc=9 (took 544.808114051819 seconds)
setup:error: 'rundll32 win7Install crossover.inf' failed
setup:error: 'rundll32 win7Install crossover.inf' failed
@Dygear
Dygear / qFlipper 1.1.3 - 0.64.3
Last active September 2, 2022 07:15
qflipper update logs
262 [APP] qFlipper version 1.1.3 commit f9bd612e 2022-08-17T10:23:02
262 [APP] OS info: Pop!_OS 22.04 LTS 22.04 5.19.0-76051900-generic
285 [REG] Detected new device: VID_0x483:PID_0xdf11
536 [DBG] Device reported transfer size: 1024
538 [DBG] Bytes uploaded: 32 100%
538 [DBG] Upload has finished.
540 [REG] Registering the device
540 [BKD] Current device changed to "Otu"
559 [UPD] Fetched update information from https://update.flipperzero.one/qFlipper/directory.json
559 [UPD] Fetched update information from https://update.flipperzero.one/firmware/directory.json
@Dygear
Dygear / example.rs
Created July 30, 2022 07:03
Primatives taking a slice would be cool.
/**
* # Motion Packet
* The motion packet gives physics data for all the cars being driven. There is additional data for the car being driven with the goal of being able to drive a motion platform setup.
* N.B. For the normalised vectors below, to convert to float values divide by 32767.0f – 16-bit signed values are used to pack the data and on the assumption that direction values are always between -1.0f and 1.0f.
* Frequency: Rate as specified in menus
* Size: 1464 bytes
* Version: 1
*/
#[derive(Debug, Clone, Copy)]
pub struct CarMotion
@Dygear
Dygear / google_login.php
Last active July 18, 2022 12:01
Google OAuth Login Flow
<?php
if (isset($_GET['logout']))
{
session_unset();
header('Location: /');
return;
}
define('client_id', 'CLIENT_ID');
define('redirect_uri', 'THIS_FILES_URL_ON_INTERNET');
@Dygear
Dygear / ESAR.c
Last active April 10, 2025 14:00 — forked from cygeus/ESAR.c
ESAR - Extraordinarily Simple AIS Receiver
/*
* source: https://www.rtl-sdr.com/esar-extraordinarily-simple-ais-receiver-written-in-c/
* code originally written for MS Visual Studio by Richard Gosiorovsky,
* but slightly adapted to compile using clang on Linux.
*
* compile:
* $ gcc -Wall -Werror -o ESAR ESAR.c
*
* run:
* $ rtl_tcp -f 162e6 -s 300000 -a 127.0.0.1 -p 2345 -g 48.0
@Dygear
Dygear / Audio.php
Last active May 16, 2022 00:16
MimoSDR Upload Files
<?php
namespace MimoSDR;
use \DateTimeZone;
use \TTG\DateTime;
use \TTG\Files;
class Audio
{
const SQL_CREATE =<<<SQL
CREATE TABLE sdr_sites (