Skip to content

Instantly share code, notes, and snippets.

View RaySuhyunLee's full-sized avatar

Ray Suhyun Lee RaySuhyunLee

  • Hyperconnect
  • Seoul
View GitHub Profile
@RaySuhyunLee
RaySuhyunLee / kalmanfilter.py
Created December 24, 2020 15:34
칼만필터 스터디
import random
import time
temp = 50
x = 30
pe = 2
re = 2
k = 0

Overview

  1. (if wifi with password) use wpa_passphrase to set proper password
  2. use wpa_supplicant to associate
  3. use dhclient to obtain an ip address
  4. use ifconfig to check ip address
iwconfig wlan0 # check wifi card status
iw wlan0 scan | less # check available access points

how and and & work in python

You may consider that python's and is equivalent to c's &&. But and in python works quite differently.

>>> True and True
True
>>> False and True
False
@RaySuhyunLee
RaySuhyunLee / opencv_trouble_shooting.md
Last active July 26, 2017 08:43
opencv troubleshooting

Those are list of problems you may encounter while using opencv.

[nx video] failed to subdev set_fmt() ...

These kind of error may occur when you try to stream from webcam, in linux. Internally, opencv depends on v4l(video4linux) to access webcam data. This error means that the camera doesn't support your requested format, eg.frame size, frame rate, color(rgb, yuv, ...). Check spec of your webcam again and provide correct options when you open it.

@RaySuhyunLee
RaySuhyunLee / Dockerfile
Last active July 7, 2017 09:01
ubuntu용 opencv 설치 스크립트 & dockerfile
FROM ubuntu:16.04
MAINTAINER raysuhyunlee@gmail.com
RUN apt-get -y update
RUN apt-get upgrade
RUN apt-get install -y build-essential cmake pkg-config \
libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev \
libavcodec-dev libavformat-dev libswscale-dev \
libxvidcore-dev libx264-dev libxine2-dev \
libv4l-dev v4l-utils \
@RaySuhyunLee
RaySuhyunLee / linux_command_cheatsheet.md
Last active February 2, 2020 23:06
유용한 리눅스 커맨드

grep

search string in files

$ grep "string"
$ grep -r "string" # find recursively
$ grep -r -i "string" # dont' care upper/lower case
@RaySuhyunLee
RaySuhyunLee / gist:a3497fdac1aa477c8348a216ab501067
Created June 8, 2017 15:01
How to draw a timing belt pulley
http://www.pfeiferindustries.com/timing-belt-pulley-pitch-diameter-outside-diameter-charts-i-12-l-en.html
#!/bin/bash
echo "install rpm package manager"
sudo apt-get install rpm2cpio
echo "install tizen sdk"
wget http://download.tizen.org/sdk/Installer/tizen-sdk-2.4-rev4/tizen-web-cli_TizenSDK_2.4.0_Rev4_ubuntu-64.bin
sudo chmod +x tizen-web-cli_TizenSDK_2.4.0_Rev4_ubuntu-64.bin
./tizen-web-cli_TizenSDK_2.4.0_Rev4_ubuntu-64.bin
rm tizen-web-cli_TizenSDK_2.4.0_Rev4_ubuntu-64.bin
@RaySuhyunLee
RaySuhyunLee / ssh_tunneling.md
Last active July 3, 2020 04:58
SSH 터널링