Home avatar

Deokgon Kim

Compare Cloud Storage

My journey to cloud storage.
I have used ownCloud for decades. It was running on AWS EC2 Ubuntu 16.04 for years.
But I recently upgraded my EC2 to Ubuntu 24.04 and then ownCloud stopped working.

So I need to change my cloud storage service.

There are big major players like Google Drive, Apple iCloud and etc.

These two has critical problems for me.

  • Google Drive: When using on Linux, It is slow, and mount is not completely implemented in shell environment(showing arbitrary alphanumeric names not actual filename)
  • Apple iCloud: I use Mac, but I use Linux 95% of my life. I don’t think iCloud client works perfectly on linux.

I have installed and testing S3Drive and it disappointed me.
So, I want another solution. The software list below is provided by ChatGPT
I thoroughly visited the web site, and checked for my requirements.

Configuring Postfix to use with AWS SES

I use AWS SES to send email to internet from home network.
So, here is brief configuration note.

# AWS SES SMTP endpoint
relayhost = [email-smtp.ap-northeast-2.amazonaws.com]:587

# enable SASL authentication
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

# enable TLS
smtp_use_tls = yes

create /etc/postfix/sasl_passwd

Make Ollama to Listen Any

Make ollama to listen on 0.0.0.0 instead of 127.0.0.1(default)

So that other hosts can talk to ollama

I installed ollama on lxc container, so I need to make my host machine or other container can use ollama running on the other container.

Firefox Smart Bookmark

예전 버전에 Firefox에서는, Smart Bookmark라고, 최근 북마크한 항목 가장 많이 방문한 페이지 등이 기능으로 제공되었으나, 최신버전에는 UX 단순화를 위해 해당 폴더가 없어진 걸로 보입니다.

그래서, 전에 자주 사용되던 Smart Bookmark 주소 형식을 일부 메모해 둡니다. (공식 도큐멘테이션은 제대로 찾을 수가 없는 듯합니다.)

# Recently Bookmarked
place:queryType=1&sort=12&maxResults=10

# Most Visited
place:queryType=0&sort=8&maxResults=10

# Recent History
place:queryType=0&sort=4&maxResults=15

# Recently Visited Pages
place:queryType=0&sort=5&maxResults=10
# All bookmarks
place:queryType=1

# 최근 수정한 북마크
place:queryType=1&sort=13&maxResults=10

# 이름순 북마크 정렬
place:queryType=1&sort=1

# 태그된 북마크만
place:queryType=1&terms=&excludeQueries=1
# 오늘 방문한 페이지
place:queryType=0&beginTimeRef=1&sort=4

# 최근 7일 방문기록
place:queryType=0&beginTimeRef=1&beginTime=-7&sort=4

# 방문 횟수 많은 순
place:queryType=0&sort=8
# 모든 태그 목록
place:type=7&sort=1

# 특정 태그가 붙은 북마크
place:queryType=1&tag=태그이름

값 의미 1 제목순 4 최근 방문순 5 방문 날짜순 8 방문 횟수순 12 최근 북마크 추가순 13 최근 수정순

GPG Subkey 분실 및 Revocation 정리

  • Encryption subkey의 private key를 분실
  • 로컬에서 delkey로 subkey 삭제
  • 이후 새로운 sign/encrypt subkey 생성
  • gpg --send-keys 했는데 이전 subkey 삭제가 반영되지 않는 것처럼 보임

  • 한 번 업로드된 key material은 삭제되지 않음
  • 삭제 대신 Revocation(폐기) 만 가능
  • keyserver마다 동기화/캐시 차이 존재

Debugging `serverless-offline` with vscode debugger

When using vscode as a IDE and the framework is serverless-offline.
If you try to debug typescript code with breakpoint, it may not work properly.

Set up serverless-esbuild configuration in serverless.yml

custom:
  esbuild:
    bundle: true
    platform: node
    target: node18
    sourcemap: true          # THIS WILL MAKE THE BREAKPOINTS ON TS FILE WORK
    sourcesContent: true
    keepNames: true
  • IDE: vscode
  • Framework: serverless
  • Local runtime: serverless-offline
    • Run local debug server with
      sls offline
  • Development language: typescript
  • Build with: serverless-esbuild

In normal case, any node process can be debugged with vscode with JavaScript Debug Terminal. but, when running sls offline, it seems the debugger session is attached to the process but the breakpoints are not working. After several googling, there were try launch.json configuration, use SLS_DEBUG and etc.