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 / jj1bdx-visiting-policies.md
Last active December 2, 2023 03:20
Lists of nations/regions I will and will not visit (COVID-19 precautions are still effective)

Lists of nations/regions I will and will not visit

Last update: 2-DEC-2023

Current policy effective December 2023

  • Travels should be avoided as possible - risks of COVID-19 and other epicemics are still high
  • Travels are limited within Greater Tokyo Area (no overnight stay)
  • No travel > 100km except for family and business needs
  • No air travel except for funded business needs
@jj1bdx
jj1bdx / APRS-Japan-2m-70cm-freq.md
Last active November 25, 2023 12:27
APRS 2m/70cm frequencies in Japan

APRS frequencies in Japan

Nationwide channels

144MHz / 2m

  • 144.64MHz: GMSK 9600bps
  • 144.66MHz: FSK 1200bps

430MHz / 70cm

@jj1bdx
jj1bdx / disable all macos animations
Created October 23, 2023 05:30 — forked from j8/disable all macos animations
disable all macos animations for high performance
defaults write -g NSScrollViewRubberbanding -int 0
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
defaults write -g NSScrollAnimationEnabled -bool false
defaults write -g NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write -g NSScrollViewRubberbanding -bool false
defaults write -g NSDocumentRevisionsWindowTransformAnimation -bool false
defaults write -g NSToolbarFullScreenAnimationDuration -float 0
defaults write -g NSBrowserColumnAnimationSpeedMultiplier -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
@jj1bdx
jj1bdx / cbc-mp3.m3u
Created June 9, 2022 03:47 — forked from nevillepark/README.md
CBC MP3 stream urls
#EXTM3U
#PLAYLIST:CBC Radio Streams
#EXTINF:-1,CBC Music (Atlantic)
http://cbcmp3.ic.llnwd.net/stream/cbcmp3_cbc_r2_hfx
#EXTINF:-1,CBC Music (Central)
http://cbcmp3.ic.llnwd.net/stream/cbcmp3_cbc_r2_wpg
@jj1bdx
jj1bdx / airspy-fmradion-blackhole.sh
Last active October 13, 2023 08:00
sox examples for macOS coreaudio and BlackHole
# conservative level setting
airspy-fmradion -E100 -t airspyhf -c freq=89700000 -F - | \
sox -t raw -e floating-point -b32 -r 48000 -c 2 -q - -t coreaudio "BlackHo" gain -24
# a bit more louder
airspy-fmradion -E100 -t airspyhf -c freq=89700000 -F - | \
sox -t raw -e floating-point -b32 -r 48000 -c 2 -q - -t coreaudio "BlackHo" gain -18
# DO NOT SET TO `gain 0` or as is - level too loud for QuickTime Player recorder
@jj1bdx
jj1bdx / macos-disable-animation.sh
Created August 21, 2023 15:15
CLI settings for disabling macOS screen animation
# Source:
# https://apple.stackexchange.com/a/63477/91991
# Posted by Lri <https://apple.stackexchange.com/users/3936/lri>
# Licensed: CC-BY-SA 3.0
# opening and closing windows and popovers
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
# smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool false
@jj1bdx
jj1bdx / com.wsjtx.sysctl.plist
Created July 27, 2021 08:45
macOS system tuning for Big Sur 11.5.1 to run WSJT-X and gqrx
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.wsjtx.sysctl</string>
<key>Program</key>
<string>/usr/sbin/sysctl</string>
<key>ProgramArguments</key>
<array>
@jj1bdx
jj1bdx / brew-force-reinstall-bottle.sh
Last active May 11, 2023 01:27
Force HomeBrew to install from the bottle
#!/bin/sh
# References:
# http://zane5-blog.logdown.com/posts/278339-resolve-mac-os-x-illegal-hardware-instruction
# https://www.hsbt.org/diary/20170208.html
brew list | xargs brew reinstall --force-bottle --cleanup
@jj1bdx
jj1bdx / APRS-airspyhf_rx.md
Last active May 9, 2023 01:59
APRS with rtl_fm, direwolf, and multimon-ng / and also airspyhf_rx

APRS with airspyhf_rx, csdr, and direwolf

1200bps 144.660MHz

# Choose 11025Hz for the intermediate IF/audio frequency
airspyhf_rx -f 144.66 -a 768000 -r stdout | \
  csdr fir_decimate_cc 69.65986394557823129252 0.005 HAMMING | \
  csdr fmdemod_quadri_cf | csdr limit_ff 0.5 | csdr deemphasis_nfm_ff 11025 | \
  csdr fastagc_ff | csdr limit_ff 0.5 | csdr convert_f_s16 | \

/usr/local/bin/direwolf -c ~/bin/sdr-1200bps.conf -t 0 -T "%FT%TZ" -r 11025 -D 1 -B 1200 -

@jj1bdx
jj1bdx / intel-nuc-powercycle-ssd.md
Last active April 22, 2023 20:41
Erasing internal mSATA SSD on Intel NUC (DC3217IYE) by powercycling the mSATA SSD

Erasing internal mSATA SSD on Intel NUC (DC3217IYE) by powercycling the mSATA SSD

You need to powercycle internal mSATA SSD to perform secure erase, while the NUC is powered on. Here's how to do it:

  1. Turn on the NUC power and boot the OS (preferably Linux).
  2. Open the bottom cover.
  3. Remove the small screw which holds the mSATA SSD board. This will make the board flip up.
  4. Carefully remove the SSD board from the mSATA connector.
  5. Wait for a few seconds.
  6. Carefully insert the SSD board to the mSATA connector.