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 / 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 July 9, 2022 00:07 — 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 (
@Dygear
Dygear / syslog
Created January 11, 2022 14:04
Syspend OOMK Loop
Jan 10 02:08:08 pop-os wpa_supplicant[829]: nl80211: deinit ifname=p2p-dev-wlp0s20 disabled_11b_rates=0
Jan 10 02:08:08 pop-os systemd[1]: Reached target Sleep.
Jan 10 02:08:08 pop-os systemd[1]: Starting Suspend...
Jan 10 02:08:08 pop-os systemd-sleep[9821]: Suspending system...
Jan 10 02:08:08 pop-os kernel: [10770.009647] PM: suspend entry (s2idle)
Jan 10 02:08:08 pop-os kernel: [10770.026466] Filesystems sync: 0.016 seconds
Jan 10 02:08:08 pop-os wpa_supplicant[829]: nl80211: deinit ifname=wlp0s20f3 disabled_11b_rates=0
Jan 10 02:08:28 pop-os kernel: [10770.145168] Freezing user space processes ...
Jan 10 02:08:28 pop-os kernel: [10790.153255] Freezing of tasks failed after 20.007 seconds (2 tasks refusing to freeze, wq_busy=0):
Jan 10 02:08:28 pop-os kernel: [10790.153330] task:io_worker state:D stack: 0 pid: 3187 ppid: 1619 flags:0x00004004
@Dygear
Dygear / output.md
Created July 13, 2021 19:00
Trunk-Recorder 4.0 Beta ARM64 Raspberry Pi OS
pi@ADS-B:~ $ git clone https://github.com/robotastic/trunk-recorder.git ~/trunk-recorder/
Cloning into '/home/pi/trunk-recorder'...
remote: Enumerating objects: 9778, done.
remote: Counting objects: 100% (1078/1078), done.
remote: Compressing objects: 100% (639/639), done.
remote: Total 9778 (delta 707), reused 747 (delta 424), pack-reused 8700
Receiving objects: 100% (9778/9778), 4.28 MiB | 10.53 MiB/s, done.
Resolving deltas: 100% (6931/6931), done.
pi@ADS-B:~ $ cd trunk-recorder/