Skip to content

Instantly share code, notes, and snippets.

View JeonghunLee's full-sized avatar
🤗
I may be slow to respond.

JeongHun (James) Lee JeonghunLee

🤗
I may be slow to respond.
View GitHub Profile
site_name: MyDocs TEST
plugins:
- with-pdf
- search
- mermaid2
nav:
- Home: index.md
- About: about.md
@JeonghunLee
JeonghunLee / release.yaml
Last active November 22, 2023 05:47
Github Action Example (.github/workflows)
name: myrelease-LoRa Gateway Build-Release (Push with Tag)
#
# Git push event trigger
#
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
# every push
# on: [push]
@JeonghunLee
JeonghunLee / Modbus TEST Result
Last active July 28, 2023 07:14
Modbus TEST Result
* TEST Program 결과 확인 (115200 Buadrate)
```
> PC Setup (Master), Plese Check them below
> Modbus-RTU PC-Info(Master) (RS232<->RS485)
- Master Port : COM8
- Master Baudrate : 115200
- Master Timeout : 0.1s
- MaxUnit : 5
- use Interval-Timer(ScanRate) : 1s
....
#
# refer to
# https://pymodbus.readthedocs.io/en/latest/source/example/synchronous_client.html
# https://pymodbus.readthedocs.io/en/latest/source/example/synchronous_client_ext.html
#
# pip install pymodbus (not update this into requirement.txt)
#
# this program is only test for Modbus RTU
# this is working as a Modbus RTU Master and then everytime write/read holdregs in a Slave
# check the status of slave device
@JeonghunLee
JeonghunLee / ASOP_SETTING
Last active February 1, 2021 08:54
Android Studio Native (sys file)
// BoardConfig에 Selinux를 Permissive (허용모드) 로 변경
// Selinux 제어
$ vi device/vendor/hardware/BoardConfig.mk
BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
// init.hardware.rc 부분수정 (권한설정부분 변경)
// chmod 변경 및 /sys filesystem 설정
$ vi ./device/fsl/imx8q/mek_8q/init.imx8qxp.rc
on property:sys.boot_completed=1
#jhlee for PWM1/2
:: Do not output the command
@echo off
echo This script is validated with uuu 1.3.124 version, it is recommended to align with this version.
::---------------------------------------------------------------------------------
::Variables
::---------------------------------------------------------------------------------
:: For batch script, %0 is not script name in a so-called function, so save the script name here
@JeonghunLee
JeonghunLee / cloudSettings
Last active April 1, 2020 01:56
VsCodeExtension
{"lastUpload":"2020-04-01T01:56:38.672Z","extensionVersion":"v3.4.3"}
#!/bin/bash
#
# rename jpg files in sequence with same pattern
#
# Author : Jeonghun Lee
# Version : 0.1
#
# ./rename.sh
# or
# ./rename.sh 1stArg 2ndArg
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@JeonghunLee
JeonghunLee / gist:8d55ef0b722c53cc0632a3ea0c180b47
Last active September 10, 2019 07:51
jpeg_histogram_view
import os
import argparse
import cv2
import numpy as np
import random
import matplotlib.pyplot as plt
from matplotlib.backend_bases import NavigationToolbar2, Event
parser = argparse.ArgumentParser(
description='Run OpenCV ')