Skip to content

Instantly share code, notes, and snippets.

@spicyjack
spicyjack / uconsole_gnss_setup_howto.md
Last active July 15, 2024 00:37
HOWTO for setting up GNSS on the uConsole with the 4G extension module installed

uConsole GNSS Setup HOWTO

Source link for the below listed commands: uConsole: How to enable 4G extension

A guide for setting up GNSS for your uConsole from scratch, including finding GNSS antennas for connecting to your uConsole, along with information on how to decode the output from the GNSS receiver.

Important Notes

For this HOWTO, you need the uConsole 4G Extension module to use GNSS, but you do not need SIM card or cell subscription installed on the 4G extension module in order to use GNSS

Just to repeat, so there's no misunderstanding, you can use the all of the commands listed below without a SIM card installed into the 4G Extension module.

@spicyjack
spicyjack / SpyURLSession.swift
Created March 20, 2023 16:12
URLSession spy that uses both dataTask with closures and async/await
//
// SpyURLSession.swift
//
//
import Foundation
private class DummyURLSessionDataTask: URLSessionDataTask {
override func resume() {
}
@spicyjack
spicyjack / BitlyURLShortenerTests.swift
Created March 20, 2023 16:00
URL shortening tests using URLSession with both closures and async/await
//
// BitlyURLShortenerTests.swift
//
// Test URL shortening code
//
//
import XCTVapor
@testable import App
@spicyjack
spicyjack / CurrencyFormattingDemoTests.swift
Last active March 1, 2023 01:33
Tests for an extension to 'Int' with a built in NumberFormatter()
//
// CurrencyFormattingDemoTests.swift
// CurrencyFormattingDemoTests
//
// Created by Brian Manning on 2/28/23.
//
import XCTest
@testable import CurrencyFormattingDemo
@spicyjack
spicyjack / memopad.act
Created January 17, 2023 21:31
Memo Pad clone using ACTION!
;
; Simple "Memo Pad" clone
;
DEFINE RW = "12"
DEFINE CRSINH = "$02F0"
PROC main()
BYTE inchar
[swift-radius][ubuntu ~]$ ls /var/lib/ansible-receipts/
1663820825.636446.set_hostname
1663820898.018078.happy_packages_install
1663821081.368203.stow_setup_usr_local
1663821347.750257.nodejs_install
1663821564.460007.vim_install_from_git
1663821689.396615.lode-lat1u-16_console_font_setup
1663821889.411259.linuxlogo_install
1663822286.928133.user-copy_basic_rcfiles-root
1663822338.829614.reboot_hosts
add_sudouser_to_sudo_group.yaml
ansible-write_playbook_receipt.yaml
atari800_install_from_git.yaml
bind_secondary_packages_install.yaml
certsync-remote_host_setup.yaml
certsync-run_sync_ssl_certs.yaml
certsync-setup.yaml
debian_atlassian_nginx_postgresql_setup.yaml
debian_certbot_install-buster.yaml
debian_certbot_install-stretch.yaml
@spicyjack
spicyjack / telegram_message_pattern.swift
Created October 14, 2022 19:16
Example of NSRegularExpression pattern with multiline + named captures
// https://unicode-org.github.io/icu/userguide/strings/regexp.html
let TelegramMessagePattern = #"""
(?xi)
^/(?<command>(start|help|stop))
\s*
(?<argument>.*)?$
"""#
@spicyjack
spicyjack / forward_from_chat_message.json.pu
Created September 8, 2022 18:36
PlantUML demo: Forward From Chat Telegram Message (JSON format)
@startjson
'!theme materia-outline
'!theme mimeograph
'!theme crt-amber
'!theme blueprint
!theme vibrant
#highlight "message" / "forward_from_chat"
#highlight "message" / "forward_date"
<style>
jsonDiagram {
@spicyjack
spicyjack / vim_plugins.yaml
Created April 21, 2021 00:21
Ansible vars file with VIM setup info
---
# VIM directories
vim_subdirs_list:
- ~/.config/coc
- ~/.vim/autoload
- ~/.vim/backup
- ~/.vim/pack/plugs/start
- ~/.vim/pack/syns/start
- ~/.vim/swapfiles
- ~/.vim/undo