Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View esutton's full-sized avatar

Eddie esutton

  • Fly-over state
View GitHub Profile
@esutton
esutton / nad83-to-wgs84.js
Created January 11, 2023 16:47
NAD83 to WGS84 - JavaScript NodeJs
// - https://www.getbounds.com/blog/rtk-to-wgs84/
//
// Output:
// nad83: https://www.google.com/maps?q=36.2929067,-97.308243
// wgs84: https://www.google.com/maps?q=36.29291304405147,-97.30825093744994
import proj4 from 'proj4';
// The transformation in this example (known as the ITRF00 transformation) came from ArcGIS Desktop 10.7
function coordRTKtoWGS84(point) {
@esutton
esutton / nad83-to-wgs84.py
Last active January 11, 2023 16:48
NAD83 to WGS84 - Python
# https://gis.stackexchange.com/questions/304231/converting-nad83-epsg4269-to-wgs84-epsg4326-using-pyproj
# Output:
# (-80.00001, 40.00001)
# (-80.00001904501643, 40.00003299028925)
# (-80.00001618601023, 40.00001788467985)
#
# projections, datums, transformations, coordinates
from pyproj import Proj, transform
p2 = Proj(init='epsg:4326')
@esutton
esutton / yocto.md
Last active December 7, 2022 20:21
Yocto

References:

I expect an Azure self-hosted agent is required due to large storage requirements.

you can reuse the downloads and sstate-cache folders that it generated to speed up future builds (sometimes called "incremental" or "short" builds)

rm_work drastically reduces the storage space used while downloads and sstate-cache drastically reduce the build time, usually to under 30 minutes i.e.

@esutton
esutton / get-ntrip-source-table.py
Created December 7, 2022 16:28
Get NTRIP mountpoints or SOURCETABLE using Python
#!/usr/bin/env python
#******************************
# get-ntrip-source-table.py
#
# Get a NTRP server's SOURCETABLE mount points
#
# Verify host and port using wget or curl
# `
# curl --http0.9 rtgpsout.unavco.org:2101
@esutton
esutton / git-cheatsheet.md
Last active December 14, 2022 16:42
Git Cheatsheet

Git Cheatsheet

Create New branch and Push to Remote

# Use <yourInitials>/branch-name to organize your branches
git checkout -b my/new-branch
git push origin my/new-branch

Switch to Branch

@esutton
esutton / cypress-checksum.py
Last active October 3, 2022 14:26
Calculate Cypress EZ-Serial BLE Firmware Checksum for a Hex String Input
##########################################
# File: cypress-checksum.py
#
# Calculates EZ Serial checksum from hex string input and appends
# - Hex string input does not require space separated hex bytes
# - Cut & paste output into serial terminal connected to CYBT-483056-EVAL
# - Default Baud 115,200, N, 8, 1
#
# See:
# EZ-Serial BLE Firmware Platform User Guide
@esutton
esutton / adb-tips.sh
Created September 20, 2022 21:43
Android adb
# Get Bluetooth MAC address
adb shell settings get secure bluetooth_address
# Grab a screenshot
adb exec-out screencap -p > image.png
@esutton
esutton / debugDumpHexBytes.cpp
Last active July 20, 2022 20:18
Debug print bytes in hexadecimal format 16-bytes per row similar to a hex editor display
/// Debug dump bytes in hexadecimal format 16-bytes per row
///
/// \param source
/// \param length
///
/// Example Output:
/// \code
/// 0000 bd 7a 32 13 08 1c 1e d9 - c9 48 48 0b 5f 23 1a f5
/// 0010 72 3d 8f 7a e6 2c 07 e4 - 6e 45 79 0f cb 18 13 6f
/// \endcode
@esutton
esutton / how-to-install-qt-for-mcus-on-win10-vs2019.md
Last active April 27, 2022 20:10
Install Qt for MCU on Windows 10 Host with Visual Studio 2019 Installed

Overview ( Warning: This Does Not Work )

Installing a working copy of Qt for MCUs (commercial license) on Windows 10 with Visual 2019 is very complex. I have yet to succeed. VS 2019, CMake, and indvidual components dependencies for Qt for MCU are a mess.

I have used Qt for desktop development Linux, Windows, and macOS for over 10 years. I have never had a more difficult time.

Is there an easier way?

  • Install Qt 6.3 desktop first, followed by Qt for MCU? ( This did not seem to work either )

Windows 10

@esutton
esutton / svn-to-git-import.md
Last active April 27, 2022 14:31
SVN import to Git

Import SVN commit history from SVN to git

svn-repo=url/path/to/svn/repo
dest-repo-name=my-repo

Create authors.txt file for importing change history

svn checkout ${svn-repo} working-folder
cd working-folder