Optimize Speed

라즈베리파이에서 우분투를 설치해서 사용하고 있는데, 인터넷 속도가 어마하게 느린 이슈가 있다. 거기서 개선을 위해 시도해본 것들에 대해 기록할 예정. ##1. iwconfig 일단 다음은 확실히 효용이 있는 것으로 보임. 60mb -> 140mb 정도로 개선됨. sudo iwconfig wlan0 power off ##2. zram 그리고나서, zswap 대신 zram 을 사용하도록 변경. sudo apt install -y linux-modules-extra-raspi sudo apt install -y zram-tools sudo apt autoremove --purge -y zram-config sudo nvim /etc/default/zramswap 에디터는 어떤걸 사용해도 상관없지만, nvim 사용하고 있어서 그걸로 세팅....

September 9, 2023 · nolleh

Neovim

apt-get install neovim 과 같은 방법으로는 최신 버전을 설치 할 수 없다. 최신버전을 설치하려면, 다음 과정을 거쳐야한다. cf.https://github.com/neovim/neovim/wiki/Installing-Neovim sudo apt-get install software-properties-common 이 명령어를 선행해줘야할 수도 있다. sudo apt-get remove neovim -y sudo add-apt-repository ppa:neovim-ppa/stable sudo apt-get update -y sudo apt-get install neovim -y https://launchpad.net/~neovim-ppa/+archive/ubuntu/unstable ppa archive 를 살펴보고 원하는 아키텍쳐 / 버전이 없는경우 unstable 버전에서 찾아서 다시 반복해볼 필요가 있다. 다행히 unstable 버전은 ubuntu 23.04 를 지원하는게 있어서 받아서 씀…...

September 9, 2023 · nolleh

Kblayout

/etc/default/keyboard Option “XkbModel” “kr106” Option “XkbLayout” “kr”

August 12, 2023 · nolleh

Diskutil

mac 에서는, diskutil 과 dd 를 사용해서 microSD 카드를(disk) 포멧 할 수 있다. disk utility 라는 GUI 툴도 있는데, 파티셔닝 되어있던 애를 이걸 통해서 지웠더니 뭔갈 잘못한건지 절반정도의 디스크용량이 날아가 버렸다 ㅡㅡ;;; 32GB 짜리 SD 카드가 반토막 난 격이라;; dd 와 fdisk 를 활용해서 뭔가 다시 복구하려는 삽질기가 되시겠다… $ diskutil list output /dev/disk5 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: *15.9 GB disk5 format 하려면 $ diskutil umount $ sudo dd if=/dev/zero of=/dev/{dev-name} bs=1M status=progress ## this is really long term work 되-게 오래 걸리는 작업이라서, 잊지 말고status=progress 옵션을 사용하는 것을 권장 한다....

August 5, 2023 · nolleh

Indexing Strategies

Overview in data driven application’s poorly designed indexes and a lack of indexes are primary sources bottlenecks. As databases grow in size, finding efficient ways to retrieve and manipluate data becomes increasingly important. Basics of Indexing a database index serves a similar purporse in that of book, speeding up data retrieval without needing to scan every row in a database table the structure of a database index includes an ordered list of values, with each value connected to pointers leading to data pages where these alues reside....

July 24, 2023 · nolleh