Skip to content

Instantly share code, notes, and snippets.

View sftblw's full-sized avatar

Ch. (Chanwhi Choi) sftblw

View GitHub Profile
@pastleo
pastleo / nm_l2tp_ipsec_vpn.md
Last active February 14, 2025 08:44
setup L2TP IPSEC VPN in archlinux using NetworkManager
@phuysmans
phuysmans / gist:4f67a7fa1b0c6809a86f014694ac6c3a
Created January 8, 2018 09:29
docker compose health check example
version: '2.1'
services:
php:
tty: true
build:
context: .
dockerfile: tests/Docker/Dockerfile-PHP
args:
version: cli
volumes:
@runegri
runegri / RsaNetStandard.cs
Created September 7, 2017 07:30
Encrypt and decrypt using Rsa and FromXmlString on .Net Standard 2.0
public class Encryptor
{
public static void WriteXmlForCert(string thumbprint, string fileName)
{
var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly);
var certs = store.Certificates.Find(X509FindType.FindByThumbprint, thumbprint, false);
store.Close();
var cert = certs[0];
var rsa = (RSA)cert.PublicKey.Key;
@channprj
channprj / control_rpi2_built-in_leds.md
Last active July 12, 2017 19:42
RPi2 내장 LED 컨트롤

RPi2 내장 LED 컨트롤하기

라즈베리파이2 내장 LED 관련 모듈은 /sys/class/leds/ 에 있음.

  • OK (ACT) LED = led0
  • Power (PWR) LED = led1

계속 켜져있거나 깜박이는 것이 거슬릴 경우 루트 계정으로 아래와 같이 간단히 제어가 가능.

# Green LED
@chrisjm
chrisjm / README.md
Last active December 8, 2023 04:00 — forked from tache/README-SSL-Certificates.md
LetsEncrypt, AWS Certificate Manager, and CloudFront

Using LetsEncrypt SSL certificates with AWS Certificate Manager and CloudFront

This is a document for managing LetsEncrypt certificates on AWS using AWS Certificate Manager and configuring on CloudFront using the AWS CLI.

Setup

Follow the instructions to set up the certbot and aws commands on your local machine:

@lifthrasiir
lifthrasiir / inquiry.md
Last active July 30, 2019 13:15
"구글, 'https' 채택 안한 누리집에 안전하지 않은 곳 '낙인'" 기사에 대한 의견

아래 메일은 2017-02-12 21:43(이하 한국 표준시)에 한겨레 기사에 대한 의견으로서 기사에 제시된 김재섭 기자의 메일로 보낸 내용이다. 메일에서 사실 관계 등의 오류가 있다면 모두 나의 실수이다.

2017-02-13 14:53에 덧붙임: 더 이상 gist를 비공개로 할 이유가 없어졌으므로 공개로 전환. 이 메일에 대한 답변은 받았으나 공개할 만큼 중요한 반론이 들어 있진 않으며 공개 여부도 묻지 않았으므로 공개하지 않는다. 아래 글 자체에도 다양한 비문과 오자가 있으나 본래 보낸 내용을 살리기 위해 전혀 수정을 하지 않기로 했음을 양해 바람.

2017-02-13 19:00에 덧붙임: 이 기사의 후속으로 구글코리아 측의 기자간담회가 올라갔다. 새 기사에 대해서는 특이한 게 없으므로 노코멘트. 또한 위의 기사 링크를 미디어다음에서 한겨레 웹사이트로 가도록 수정.

원문

안녕하십니까, 귀하께서 작성하신 (물론 저는 그 진위를 알 수 없습니다만, 적어도 그렇게 나와 있는) 기사에 대한 의견을 제기하고자 메일을 씁니다. 이 메일은 저의 개인 의견이며 저를 고용하고 있는 회사나 단체 등의 의견을 전혀 대변하지 않음을 혹시나 싶지만 미리 밝혀 둡니다.

// 언어 명세: https://gist.github.com/xnuk/d9f883ede568d97caa158255e4b4d069
// 아... 자괴감 온다....
//// 코드:
형. 흑.......... 항..........♥ 흣.......... 흑... 항. 혀엉.. 혀어어엉.. 하앗.
혀어어어어어엉...... 항. 혀어어엉... 혀엉.......... 하앙. 흣... 항. 혀어어엉.. 혀엉.....
혀어어어어어엉.. 하아앙. 혀어어엉.......... 혀어엉....... 하앙. 혀엉................ 항.
흑... 흣... 하아앙... 흑.......... 하앗. 혀엉..... 항. 흑.......... 흣..........
하아앙.......... 흐으윽... 흣... 형. 하아아아아앙... 흑..........♥ 히잇? 혀엉. 형..... 하앗.
흑... 하앙... 흐윽... 흣... 형. 하아아아앙... 흑.......... 하앙.......... 흑..........♥
@xnuk
xnuk / hyeong.md
Last active April 23, 2025 10:14
난해한 혀엉.... 언어

난해한 혀엉... 언어 v0.4.5

  • (U+2026), (U+22EF), (U+22EE)는 모두 .(U+002E)가 3번 연속으로 나열된 것과 같은 것으로 봅니다.
  • "한글 음절 문자"는 가(U+AC00) 이상 힣(U+D7A3) 이하의 유니코드 문자들을 의미합니다.

스택

Use the following texts as a template for the issue that asks project maintainers to specify the license. Thank you for participating the [Free Software movement]!


Why should I specify the license?

I want to use this project, but the license of this code is currently unspecified. By the [Berne Convetion] and [WIPO Copyright Treaty], software published without a license does not grant people to benefit or redistribute in [most countries]. If you agree with the [Free Software movement], please specify the license of this project.

Which one?

  1. If you prefer a GPL-family license, GNU Affero General Public License is the perfect choice for this project since it is about server-side codes.
  2. If you prefer a permissive license, I think Apache-2.0/MIT Dual License is most suitable for this project.
@hjr3
hjr3 / rust-naming-conventions.md
Created October 20, 2016 14:28
Rust Naming Conventions
Convention Example General Meaning
to_*() str::to_string() A conversion from one type to another that may have an allocation or computation cost. Usually a Borrowed type to Owned type.
as_*() String::as_str() Convert an Owned type into a Borrowed type. It is usually cheap (maybe even zero-cost) to use this function.
into_*() String::into_bytes() Consume a type T and convert it into an Owned type U.
from_*() SocketAddr::from_str() Create an Owned type from an Owned or Borrowed type.
*_mut() str::split_at_mut() Denotes a mutable reference.
try_*() usize::try_from() Method will return a Result or Option type. Usually Result.
with_*() Vec::with_capacity() A constructor that has one or more parameters used to configure the type.