Skip to content

Instantly share code, notes, and snippets.

View jevinskie's full-sized avatar

Jevin Sweval jevinskie

View GitHub Profile
@jevinskie
jevinskie / terminfo.src
Created January 1, 2025 18:04
ncurses terminfo.src from 2024/12/28
This file has been truncated, but you can view the full file.
# https://invisible-island.net/ncurses/terminfo.src.html
######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
#
# This version of terminfo.src is distributed with ncurses and is maintained
# by Thomas E. Dickey (TD).
#
# Report bugs and new terminal descriptions to
# [email protected]
#
# $Revision: 1.1160 $
@jevinskie
jevinskie / terminfo.src
Last active January 1, 2025 18:07
ncurses terminfo.src for iTerm2, etc from 2024/12/28
######## APPLE
#### Terminal.app
# nsterm*|Apple_Terminal - AppKit Terminal.app
#
# Terminal.app is a Terminal emulator bundled with NeXT's NeXTSTEP and
# OPENSTEP/Mach operating systems, and with Apple's Rhapsody, Mac OS X
# Server and Mac OS X operating systems. There is also a
# "terminal.app" in GNUstep, but I believe it to be an unrelated
@jevinskie
jevinskie / aarch64-simd-sha1-digest-to-ascii-hex.asm
Created December 12, 2024 15:46
AArch64 Advanced SIMD SHA1 digest to ASCII hex string
digest_to_hex:
ldr q0, [x0]
ushr.16b v1, v0, #4
movi.16b v2, #15
and.16b v0, v0, v2
; nibble_hex_lut = { '0', ... '9', 'a' ... 'f' }
adrp x8, nibble_hex_lut@PAGE
ldr q2, [x8, nibble_hex_lut@PAGEOFF]
tbl.16b v1, { v2 }, v1
tbl.16b v0, { v2 }, v0
@jevinskie
jevinskie / utils.cpp
Last active October 15, 2024 03:57
C++23 checked libc function wrappers
// clang-format: off
#include "common_internal.hpp"
// clang-format: on
#include "gsnr/utils.hpp"
#include <sys/mman.h>
#include <unistd.h>
namespace gsnr {
@jevinskie
jevinskie / ehexdump.hpp
Created October 8, 2024 06:32
{fmt} extended hexdump
#pragma once
#include "common.hpp"
#include "fmt/base.h"
#include <functional>
#include <iterator>
#include <type_traits>
#undef NDEBUG
#include <algorithm>
#include <fcntl.h>
#include <iostream>
#include <string>
#include <unistd.h>
#include <sys/wait.h>
#include <cstring>
#include "z3_pipe.h"
#define ensure(b) ensure_helper(b, __FILE__, __FUNCTION__, __LINE__)
@jevinskie
jevinskie / log.txt
Created September 20, 2024 17:17
garmin fish finder chroot
bash-3.2# gmn2portd --help
Usage:
gmn2portd [OPTION?] - GMN 2.0 Port Daemon
Help Options:
-h, --help Show help options
Application Options:
-n, --no-daemonize Do not daemonize - Run in foreground
-w, --wait Wait for debugger
@jevinskie
jevinskie / CertificateWarning.html
Created August 20, 2024 07:38
SafariShared.framework embedded JavaScript and HTML - iOS 18.0 beta 6 22A5338b
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, viewport-fit=cover">
<title class="l12n">This Connection Is Not Private</title>
<style>
body {
--font-color: #434343;
--compact-font-color: #434343;
@jevinskie
jevinskie / arm64_isa_compatibility.h
Created August 3, 2024 02:21
arm64-corecrypto-sha1-expanded
/* Copyright (c) (2013,2015,2016,2019) Apple Inc. All rights reserved.
*
* corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which
* is contained in the License.txt file distributed with corecrypto) and only to
* people who accept that license. IMPORTANT: Any license rights granted to you by
* Apple Inc. (if any) are limited to internal use within your organization only on
* devices and computers you own or control, for the sole purpose of verifying the
* security characteristics and correct functioning of the Apple Software. You may
* not, directly or indirectly, redistribute the Apple Software or any portions thereof.
*/
@jevinskie
jevinskie / dump-1090-stat.txt
Created June 16, 2024 17:44
dump1090 stats
Sun Jun 16 13:42:18 2024 EDT Caught SIGINT, shutting down..
Sun Jun 16 13:42:18 2024 EDT Waiting for receive thread termination
Statistics: Sat Jun 15 20:58:09 2024 EDT - Sun Jun 16 13:42:18 2024 EDT
Local receiver:
144597319680 samples processed
0 samples dropped
2645804 Mode A/C messages received