Skip to content

Instantly share code, notes, and snippets.

View jmkim's full-sized avatar

Jongmin Kim jmkim

  • Senior Engineer, SSD FW Eng @doubleOplus
  • Busan, Republic of Korea
  • 01:42 (UTC +09:00)
View GitHub Profile
ablesoft@raspberrypi:~ $ sudo btmon
Bluetooth monitor ver 5.66
= Note: Linux version 6.6.20+rpt-rpi-v8 (aarch64) 0.863093
= Note: Bluetooth subsystem version 2.22 0.863101
= New Index: D8:3A:DD:B3:20:13 (Primary,UART,hci0) [hci0] 0.863103
= Open Index: D8:3A:DD:B3:20:13 [hci0] 0.863104
= Index Info: D8:3A:DD:B3:20:13 (Cypress Semiconductor)
ablesoft@raspberrypi:~ $ sudo btmon
Bluetooth monitor ver 5.66
= Note: Linux version 6.6.20+rpt-rpi-v8 (aarch64) 0.811494
= Note: Bluetooth subsystem version 2.22 0.811502
= New Index: D8:3A:DD:B3:20:13 (Primary,UART,hci0) [hci0] 0.811505
= Open Index: D8:3A:DD:B3:20:13 [hci0] 0.811506
= Index Info: D8:3A:DD:B3:20:13 (Cypress Semiconductor)
[Unit]
Description=Bluetooth service
Documentation=man:bluetoothd(8)
ConditionPathIsDirectory=/sys/class/bluetooth
[Service]
Type=dbus
BusName=org.bluez
ExecStart=/usr/libexec/bluetooth/bluetoothd
NotifyAccess=main
#!/bin/bash
pushd ~/.local/share/applications
sed -ri 's/^(Exec=)(.*)/\1\2 --gtk-version=4/' chrome-*.desktop
popd
@jmkim
jmkim / gen-key-script
Created November 7, 2023 14:23
Automatic GPG key generation script with fancy output
Key-Type: 1
Key-Length: 4096
Subkey-Type: 1
Subkey-Length: 4096
Name-Real: John Doe
Name-Email: john.doe@example.com
Expire-Date: 0
%no-protection
import orjson
from typing import NamedTuple
IN_FILE="전체 내려받기_한국어기초사전_json_20230901/3_5000_20230901.json"
class WordEquivalent(NamedTuple):
language: str = None
lemma: str = None
@jmkim
jmkim / nginx-rproxy-nas-infinite.conf
Last active January 18, 2023 11:21
Infinity upload · download configuration for Nginx
location /nas/ {
rewrite ^/nas(.*) /$1 break;
proxy_pass http://$HOST:$PORT;
proxy_buffering off;
proxy_request_buffering off;
proxy_max_temp_file_size 0;
client_max_body_size 10000G;

Diagnostic snippet

Aug 17, 2022

System

  • system_profiler SPSoftwareDataType SPHardwareDataType

    Software:
    
[{
"title": "AU6983BT-4 89 d5 94 3e 2x2",
"id": "AU6983BT-4\u00a0\u00a0\u00a089 d5 94 3e\u00a0\u00a0\u00a02x2",
"url": "http://flash-extractor.com/library/AU/AU6983/AU6983BT-4__89_d5_94_3e__2x2",
"parents": ["AU/AU6983/"],
"images": [],
"texts": [{
"Layout": ["AU6986 536"],
"Mix": {
"Input": {
# Generated by iptables-save v1.8.7 on Sat Mar 5 02:18:24 2022
*filter
:INPUT ACCEPT [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
:DOCKER - [0:0]
:DOCKER-ISOLATION-STAGE-1 - [0:0]
:DOCKER-ISOLATION-STAGE-2 - [0:0]
:DOCKER-USER - [0:0]
-A FORWARD -j DOCKER-USER