Skip to content

Instantly share code, notes, and snippets.

View soomtong's full-sized avatar
😇

YoungTaek soomtong

😇
View GitHub Profile
@soomtong
soomtong / cloudSettings
Last active January 19, 2021 12:42
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-01-19T12:42:11.302Z","extensionVersion":"v3.4.3"}
@soomtong
soomtong / 한글과유니코드.md
Created November 26, 2018 09:47 — forked from Pusnow/한글과유니코드.md
한글과 유니코드

한글과 유니코드

유니코드에서 한글을 어떻게 다루는지를 정리하였다.

유니코드

  • 유니코드(Unicode)는 전 세계의 모든 문자를 컴퓨터에서 일관되게 표현하고 다룰 수 있도록 설계된 산업 표준 (위키 백과)
  • 단순히 문자마다 번호를 붙임
  • 계속 업데이트되며 현재는 Unicode Version 9.0.0 이 최신이다.

UTF

  • 유니코드를 실제 파일 등에 어떻게 기록할 것인지를 표준화한 것이다.
@soomtong
soomtong / rpio.md
Created July 19, 2018 13:16 — forked from jperkin/rpio.md
Raspberry Pi GPIO Comparison

Comparing node.js GPIO implementations

Here are two simple programs testing the performance of my rpio library against popular alternatives which use the /sys interface (with the number of npm stars indicated for a rough idea of popularity).

rpi-gpio (9 stars)

This test is based on an example on the rpi-gpio page.

As modules which uses /sys depend upon asynchronous behaviour they require callbacks to ensure that the next operation starts only when the previous one has completed.

@soomtong
soomtong / baseConverter.js
Created July 13, 2017 05:02 — forked from faisalman/baseConverter.js
Convert From/To Binary/Decimal/Hexadecimal in JavaScript
/**
* Convert From/To Binary/Decimal/Hexadecimal in JavaScript
* https://gist.github.com/faisalman
*
* Copyright 2012-2015, Faisalman <fyzlman@gmail.com>
* Licensed under The MIT License
* http://www.opensource.org/licenses/mit-license
*/
(function(){
@soomtong
soomtong / swap-key-guide.sh
Last active September 22, 2017 12:15
Swap modify keys in Linux Ubuntu
// https://www.x.org/archive/X11R6.8.1/doc/xmodmap.1.html
// https://www.linux.com/learn/how-kill-caps-lock-your-linux-desktop
// http://egloos.zum.com/nemonein/v/5222946
$ tail .zshrc
if [[ "$(uname -s)" == "Linux" ]]; then
if [ -x ~/Dropbox/config/tweak/swap_key.sh ]; then
xmodmap ~/Dropbox/config/tweak/swap_key.sh
fi
fi
@soomtong
soomtong / touchpad.alias.sh
Created May 24, 2017 14:02
Ubuntu laptop Touch pad controller
# soomtong@N130BU> xinput list
# ⎡ Virtual core pointer id=2 [master pointer (3)]
# ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
# ⎜ ↳ Logitech USB Receiver id=10 [slave pointer (2)]
# ⎜ ↳ Logitech USB Receiver id=11 [slave pointer (2)]
# ⎜ ↳ SynPS/2 Synaptics TouchPad id=14 [slave pointer (2)]
# ⎣ Virtual core keyboard id=3 [master keyboard (2)]
# ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
# ↳ Power Button id=6 [slave keyboard (3)]
# ↳ Video Bus id=7 [slave keyboard (3)]
@soomtong
soomtong / savvius.conf
Created April 6, 2017 10:25
Logstash configuration file for Savvius Omnipeek CVS Statistics
input {
file {
path => "/var/lib/omni/data/statistics/*Auto Capture*/Reports/*/Summary Statistics.csv"
type => sv_summary
start_position => "beginning"
}
file {
path => "/var/lib/omni/data/statistics/*Auto Capture*/Reports/*/Expert Flow Statistics.csv"
type => sv_flows
start_position => "beginning"
@soomtong
soomtong / studio-3T.desktop
Created April 6, 2017 00:38
Studio3T Mongodb GUI Client Application link script (/home/soomtong/.local/share/applications)
[Desktop Entry]
Version=1.0
Type=Application
Name=Studio3T
Icon=/home/soomtong/Application/Studio-3T/Studio3T.png
Exec="/home/soomtong/Application/Studio-3T/bin/studio-3t.sh" %f
Comment=The Mongo Client
Categories=Development;
Terminal=false
StartupWMClass=studio3T-mongodb
@soomtong
soomtong / FAT Filesystem Drive Check.sh
Created March 3, 2017 02:05
FAT Filesystem Drive Check Command
sudo dosfsck -w -r -l -a -v -t /dev/sdb1
@soomtong
soomtong / mouse.conf
Last active February 7, 2017 02:14
Logitech G500 mouse setting configuration with Full sensitivity and polling rate
#!/usr/bin/ruby
if File.exist? '/sys/bus/usb/drivers/usbhid/module/parameters/mousepoll'
if File.read( '/sys/bus/usb/drivers/usbhid/module/parameters/mousepoll' ).to_i != 1
puts "Setting polling rate to 1ms..."
system "sudo bash -c 'echo 1 > /sys/bus/usb/drivers/usbhid/module/parameters/mousepoll'"
end