Skip to content

Instantly share code, notes, and snippets.

View dahlia's full-sized avatar
⚰️
Off work for the bereavement of my father

Hong Minhee (洪 民憙) dahlia

⚰️
Off work for the bereavement of my father
View GitHub Profile
@dahlia
dahlia / rider.md
Last active March 23, 2022 10:04 — forked from earlbread/rider.md
Libplanet 개발환경 설정 - Rider

Libplanet 개발 환경 설정 (Rider)

[Libplanet]은 널리 쓰이는 게임 엔진인 Unity를 염두에 두어, C#으로 작성되었습니다. 따라서 C# 개발 환경이 필요합니다. 다행히 .NET은 요 몇 년 사이 여러 플랫폼에서 두루 개발할 수 있는 여건이 마련되었습니다. 이 문서는 Linux, macOS, Windows 모두에서 Libplanet 개발을 하는 데에 필요한 환경을 설정하고 빌드하는 방법을 설명합니다.

따라 하면서 잘 안되는 게 있으시면 [저희 Discord 서버][1]에 있는

@dahlia
dahlia / secp256k1.rb
Last active October 24, 2018 07:48 — forked from shazow/secp256k1.rb
Homebrew recipe for secp256k; originated from https://gist.github.com/shazow/c71c652409015479a7e6, but added some more build options; run to install: brew install --with-module-recovery --with-module-ecdh --without-benchmark https://gist.github.com/dahlia/439e1a7e5a770556a12b25aea797eda7/raw/secp256k1.rb
class Secp256k1 < Formula
desc "Optimized C library for EC operations on curve secp256k1"
homepage "https://github.com/bitcoin/secp256k1"
url "https://github.com/bitcoin/secp256k1.git"
option "with-module-recovery", "enable ECDSA pubkey recovery module"
option "with-module-ecdh",
"enable ECDH shared secret computation (experimental)"
option "without-benchmark", "do not compile benchmark"
@dahlia
dahlia / gpg-import-and-export-instructions.md
Created November 13, 2015 09:19 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

def get_session():
if getattr(flask.g, 'session_got', False):
return flask.g.session
session = was.orm.Session(bind=engine)
flask.g.session = session
flask.g.session_got = True
return flask.g.session
session = werkzeug.local.LocalProxy(get_session)
@dahlia
dahlia / gist:3175089
Created July 25, 2012 08:28 — forked from dinoSpeech/gist:3163386
Higher-order function test suite
(define sum (make-aggregate + 0))
(sum (list 1 2 3)) ; 6
(define product (make-aggregate * 1))
(product (list 2 3 4)) ; 24
(define sum2 (make-aggregate (lambda (a b) (+ a b)) 0))
(sum2 (list 1 2 3)) ; 6
(define product2 (make-aggregate (lambda (a b) (* a b)) 1))
(product2 (list 2 3 4)) ; 24
@dahlia
dahlia / hello_c++0x.cpp
Created October 23, 2011 00:45 — forked from suminb/hello_c++0x.cpp
My First C++0x (C++11) Program
#include <iostream>
#include <iterator>
#include <list>
using namespace std;
template<typename Iter>
iterator_traits<Iter>::value_type
reduce(function<iterator_traits<Iter>::value_type (iterator_traits<Iter>::value_type, iterator_traits<Iter>::value_type)> f,
Iter begin, Iter end,