Skip to content

Instantly share code, notes, and snippets.

View jj1bdx's full-sized avatar
🏠
Working from home

Kenji Rikitake jj1bdx

🏠
Working from home
View GitHub Profile
@jj1bdx
jj1bdx / ubuntu-server-from-desktop.md
Created April 11, 2024 08:52
Ubuntu conversion from Desktop to Server

Ubuntu conversion from Desktop to Server

Source: https://www.technomancer.com/archives/789

# Do this as a root
# Install Ubuntu Server, after stopping unattended upgrades
systemctl disable unattended-upgrades
systemctl set-default multi-user.target
apt update && apt -y upgrade 
@jj1bdx
jj1bdx / get-dslite-aftr-in-asahinet.md
Created March 14, 2022 05:01 — forked from stkchp/get-dslite-aftr-in-asahinet.md
ASAHIネットのDS-Liteの終端(AFTR)を取得するメモ

ASAHIネットのDS-Liteの終端(AFTR)を取得する

ASAHIネットがDS-Lite対応したので、 自宅の適当なLinuxルーターにて設定しようとして詰まったAFTR取得に関するメモ。

Linuxルーターを使ってる人向けのニッチなものだけど、情報として残しておく。

終端の情報公開について

@jj1bdx
jj1bdx / ubuntu-texlive.md
Created March 17, 2024 06:27
Ubuntu TeXLive environment

Installing TeXLive on Ubuntu

For Ubuntu 22.04.4 LTS and TeXLive 2024

Don't

  • Do not use default given packages. They are too old and obsolete.

Remove installed packages by apt first

@jj1bdx
jj1bdx / direwolf.conf
Last active February 24, 2024 19:41
Direwolf 1.6G configuration and settings for Raspberry Pi 3B and SCU-17
ACHANNELS 1
# SCU-17 PCM CODEM device: check with `aplay -l`
ADEVICE plughw:1,0
# This serial device name is for SCU-17. Use `if01-port0` for the PTT control of the data port with RTS.
PTT /dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_devicename-if01-port0 RTS
CHANNEL 0
MYCALL yourcall-SSID
@jj1bdx
jj1bdx / quic-restrictions.md
Last active February 16, 2024 09:34
Do not enable QUIC on 1280-byte MTU IPv6 networks

Do not enable QUIC on 1280-byte MTU IPv6 networks

Synopsis

  • QUIC requires transmission of at least 1350 bytes of UDP packets on IPv6 (and 1370 bytes on IPv4).
  • On Chrome/Chromium (and Vivaldi), if sending 1350-byte UDP packet fails on IPv6, fallback to HTTP/2 over TCP immediately occurs.

Implementation details on Chrome/Chromium (60.0.3112.55 on Vivaldi)

See the explanation in Japanese for the further details on the current implementation. Note well that this differs from the latest version of QUIC Internet-Draft: see draft-ietf-quic-transport-01 Section 8. Quote:

@jj1bdx
jj1bdx / sleep5.sh
Created June 2, 2014 04:02
A shell one-liner for an infinite loop (sh/zsh/bash compatible)
while true; do date; sleep 5; done
@jj1bdx
jj1bdx / atecc608a-i2c-notes.md
Created January 10, 2024 06:16 — forked from rrottmann/atecc608a-i2c-notes.md
ATECC608A I2C Notes

ATECC608A I2C Notes

Here be dragons

WARNING: AS THE DEVICE CAN BE CONFIGURED ONLY ONCE, PLEASE BE WARNED THAT YOU MIGHT EASILY BRICK THE CHIP! USE AT YOUR OWN RISK!

Circuit

Please make sure to use proper circuit for ATECC608A with pullups and decoupling capacitors when hooked to a MCU. A Raspberry Pi might also work without external components just using internal pullups.

@jj1bdx
jj1bdx / atan2test-summary.md
Last active December 17, 2023 04:40
VOLK v3.1.0 volk_32fc_s32f_atan2_32f() anomaly on input element 0+0j

VOLK v3.1.0 volk_32fc_s32f_atan2_32f() anomaly on input element 0+0j

VOLK v3.1.0 volk_32fc_s32f_atan2_32f() returns -NaN when input has a 0+0j element for the avx2 and avx2_fma kernels.

Note: j denotes an imaginary number, where j^2 = -1.

Summary

VOLK v3.1.0 volk_32fc_s32f_atan2_32f() returns -nan for the following kernels:

@jj1bdx
jj1bdx / f32auout.py
Last active December 16, 2023 13:55
PortAudio script for 32-bit float audio to output from stdin
#!/usr/bin/env python3
# Pyaudio output device for 32-bit floating audio input from stdin
import pyaudio
import signal
import sys
import time
argvs = sys.argv
argc = len(argvs)