Skip to content

Instantly share code, notes, and snippets.

View yeongu-dev's full-sized avatar

yeongu yeongu-dev

  • SELab, Inc
  • Seoul city in Korea
View GitHub Profile
@yeongu-dev
yeongu-dev / self-hosted_livesync_introduce.md
Last active June 27, 2024 15:33
Obsidian Self-hosted LiveSync Plugin 사용을 위한 가이드 입니다.

가이드를 시작하기 앞서...

  • 여기서 설명하는 fly.io는 완전 무료가 아닙니다. 가이드에서는 무료로 사용할 수 있는 스펙에 대해서만 설정하고 있습니다. 여기에서 가격 정책과 무료로 제공되는 스펙을 참고하세요.
  • 옵시디언 사용자가 직접 동기화 DB를 운영하는 것이기 때문에 모든 추가 비용 발생의 책임은 본인에게 있습니다. 또한 vault를 백업하고 작업하는 것을 잊지 마세요.

Self-hosted livesync 소개

옵시디언의 기기 간 동기화에 대한 많은 솔루션들이 있습니다. 그중에 지금 소개하는 self-hosted livesync는 라이브 동기화를 지원하는 유일한 플러그인 입니다. 다른 동기화 솔루션들과 차별되는 것은, 직접 동기화DB(CouchDB)를 구축하고 운영하는 것입니다. 직접 운영하는 시간과 비용을 생각하면 옵시디언 Sync의 비용이 적지 않을 수도 있습니다. Self-hosted livesync는 옵시디언과 호환되는 모든 플랫폼에서 사용할 수 있습니다.

주의1: 공식 옵시디언 Sync와 호환되지 않습니다.

@yeongu-dev
yeongu-dev / wgrib2_auto_compile_script.sh
Created January 13, 2023 01:49 — forked from wxguy/wgrib2_auto_compile_script.sh
A small bash script to compile wgrib2 from source on Ubuntu OS...
#!/bin/bash
# License for this script is GNU 2
# A small bash script to download, compile and install latest wgrib2 from source.
# I have written this script so that I can automate the proceedure whenever I change Linux OS
# Make it executable before running the script using'chmod +x ./wgrib2_auto_compile_script.sh'
# Ensure to run the script with sudo (sudo ./wgrib2_auto_compile_script.sh) or under root environment
@yeongu-dev
yeongu-dev / GitCommitEmoji.md
Created October 26, 2022 15:26 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@yeongu-dev
yeongu-dev / wsl.md
Created February 21, 2022 07:59 — forked from alyleite/wsl.md
Failed to connect to bus: Host is down - WSL 2

» sudo systemctl daemon-reload

System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down

just try:

sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig

sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target

@yeongu-dev
yeongu-dev / README.md
Created March 31, 2017 05:57 — forked from dannguyen/README.md
Using Python 3.x and Google Cloud Vision API to OCR scanned documents to extract structured data

Using Python 3 + Google Cloud Vision API's OCR to extract text from photos and scanned documents

Just a quickie test in Python 3 (using Requests) to see if Google Cloud Vision can be used to effectively OCR a scanned data table and preserve its structure, in the way that products such as ABBYY FineReader can OCR an image and provide Excel-ready output.

The short answer: No. While Cloud Vision provides bounding polygon coordinates in its output, it doesn't provide it at the word or region level, which would be needed to then calculate the data delimiters.

On the other hand, the OCR quality is pretty good, if you just need to identify text anywhere in an image, without regards to its physical coordinates. I've included two examples:

####### 1. A low-resolution photo of road signs

# remove_CLI_tools.sh
# written by cocoanetics:http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/
# modified by yoneken
#!/bin/sh
RECEIPT_FILE1=/var/db/receipts/com.apple.pkg.DevSDK.bom
RECEIPT_PLIST1=/var/db/receipts/com.apple.pkg.DevSDK.plist
RECEIPT_FILE2=/var/db/receipts/com.apple.pkg.clang.bom
RECEIPT_PLIST2=/var/db/receipts/com.apple.pkg.clang.plist
@yeongu-dev
yeongu-dev / gist:5539037
Created May 8, 2013 08:25
upgrade all Python packages at one time with pip
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U
@yeongu-dev
yeongu-dev / gist:4992685
Created February 20, 2013 03:41
Android: JSONParser
/*
JSONParser, guya00@gmail.com
Usecase:
## JSON from File in assets directory
AssetManager assetManager = getResources().getAssets();
String jsonFileName = "test.json";
JSONObject jsonObj = JSONParser.getJSONObject(jsonFileName,
@yeongu-dev
yeongu-dev / gist:4974624
Last active December 13, 2015 21:08
Java. HttpPostMDeliverThread: HTTP의 Post방식 클래스
/*
HttpPostMDeliver, guya00@gmail.com
Usecase:
HttpPostMDeliverThread thread = new HttpPostMDeliverThread(handler, encoding);
thread.setDaemon(true);
thread.addQuery(name, value);
thread.start();
@yeongu-dev
yeongu-dev / URLDownloadFile_example.cpp
Created January 16, 2013 01:57
Http download API for MFC. [start] include UrlMon.h --> Call URLDownloadToFile API
#include <UrlMon.h>
HRESULT hr = URLDownloadToFile(NULL,
_T("http://static.naver.net/www/u/2010/0611/nmms_215646753.gif"),
_T("nmms.gif"),
0,
NULL);