Skip to content

Instantly share code, notes, and snippets.

Avatar
🥕
Working from home

Hong Minhee (洪 民憙) dahlia

🥕
Working from home
View GitHub Profile
@dahlia
dahlia / README.md
Last active Jul 1, 2022
Dirty workaround to let VS Code Live Share run on Apple silicon Macs without Rosetta 2
View README.md

As of June 2022, VS Code's [Live Share] still does not work well on Apple silicon Macs (M1/M2 series) without [Rosetta 2]. Although [this bug is tracked in the official issue tracker on GitHub][1], unfortuneately, Live Share extension is not open source, so no outsiders can send any patch to address this bug to the upstream. Instead, I'd like to share a workaround I found:[^1]

  1. Install [.NET SDK] 6 (arm64) or higher. It's also available on Homebrew Cask: brew install --cask dotnet-sdk.

  2. Replace vsls-agent (no postfix) in

@dahlia
dahlia / README.rst
Last active Jan 11, 2022
Bencodex diff
View README.rst

Comparing two Bencodex_ binary files

A small CLI program to easily compare two Bencodex trees:

$ pip3 install --user -r requirements.txt
$ ./bdiff.py ./a.dat ./b.dat
--- a.dat
@dahlia
dahlia / .gitignore
Last active Jun 16, 2021
RandomXSharpSample
@dahlia
dahlia / eclint.rb
Created May 15, 2021
eclint formula for Homebrew / As according to `brew audit` its GitLab repository is not notable enough (<30 forks and <75 stars), I could not submit this to the homebrew-core upstream.
View eclint.rb
class Eclint < Formula
desc "EditorConfig linter"
homepage "https://gitlab.com/greut/eclint"
url "https://gitlab.com/greut/eclint/-/archive/v0.3.2/eclint-v0.3.2.tar.bz2"
sha256 "81d8997a329edb0f598b56326cd34d007e59bb20885bfc21beca084d3d5a2f6c"
license "MIT"
head "https://gitlab.com/greut/eclint.git"
depends_on "go" => :build
View api-example1.py
# A Python port of:
# https://github.com/tevador/RandomX/blob/v1.1.8/src/tests/api-example1.c
#
# You can build librandomx.{so,dylib} by the following command:
# cmake -DARCH=native -DBUILD_SHARED_LIBS=ON
from ctypes import *
from ctypes.util import find_library
librandomx = cdll.LoadLibrary(find_library('librandomx'))
@dahlia
dahlia / opensearch.xml
Last active Sep 20, 2020
알라딘 OpenSearch
View opensearch.xml
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription
xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>알라딘</ShortName>
<Description>알라딘 통합 검색</Description>
<Url
type="text/html"
method="get"
template="https://www.aladin.co.kr/search/wsearchresult.aspx?SearchTarget=All&amp;SearchWord={searchTerms}"
@dahlia
dahlia / install-pythons.sh
Last active Feb 15, 2021
My Python installer using pyenv
View install-pythons.sh
#!/usr/bin/env bash
set -e
versions=(
2.7.18
3.7.9
3.8.7
3.9.1
pypy3.6-7.3.1
)
@dahlia
dahlia / count_keys.py
Last active Feb 4, 2020
Count keys from multiple Bencodex data files
View count_keys.py
#!/usr/bin/env python3
"""Count keys from multiple Bencodex data files."""
import collections
import collections.abc
import pathlib
import sys
from typing import Counter, Union
from bencodex import BValue, load
@dahlia
dahlia / README.md
Last active Dec 11, 2019
.NET Environment.GetFolderPath()
View README.md

.NET Environment.GetFolderPath()

macOS

Environment.GetFolderPath() Path
Desktop "/Users/USER/Desktop"
Programs ""
@dahlia
dahlia / pycon-kr-2019-sprint.md
Last active Aug 21, 2019
Libplanet 파이콘 한국 2019 스프린트 안내
View pycon-kr-2019-sprint.md

Libplanet 파이콘 한국 2019 스프린트 안내

안녕하세요. 오는 파이콘 한국 2019에서 Libplanet 프로젝트의 스프린트를 진행하게 된 홍민희입니다. 스프린트 진행에 앞서 미리 안내드릴 내용들이 있으니 읽어주시기 바랍니다. 스프린트는 서울 코엑스 그랜드볼룸 컨퍼런스룸 201호에서 8월 15일(광복절) 및 16일(금) 이틀 진행하며, 이틀 모두 나오셔도 되고 하루만 나오셔도 됩니다.