Skip to content

Instantly share code, notes, and snippets.

View zzzz465's full-sized avatar
:octocat:

jungooji zzzz465

:octocat:
View GitHub Profile
@joepie91
joepie91 / vpn.md
Last active July 24, 2024 17:46
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@n4to4
n4to4 / circe.scala
Created September 20, 2016 21:50
circe example
object CirceMain extends App {
import io.circe.Encoder
import io.circe.syntax._
case class Person(firstName: String, lastName: String, age: Int)
val person = Person("Joe", "Black", 42)
{
implicit val personEnc: Encoder[Person] = Encoder.forProduct3(
"firstName", "lastName", "age") {

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@mjj2000
mjj2000 / get-current-git-tag.sh
Last active June 4, 2024 14:55
[GIT] Get tag of current branch(that is HEAD) or fallback to short commit hash(7 digits) by single shell command
git describe --exact-match --tags 2> /dev/null || git rev-parse --short HEAD
@ninanung
ninanung / forMe3.md
Last active November 8, 2022 06:15
사실은 내가 보기위한 마크다운 문법설명서 - 3. 개행과 문자강조

3.개행과 문자강조

3-1.개행

원래는 1장에서 설명했어야 하는 부분이라고 생각합니다. 왜냐하면 처음 마크다운을 할 때 도대체 어떻게 줄을 바꾸는 건지 몰라서 엄청 해맸거든요. html은 <br>이나<p>를 사용하지만 마크다운에서도 그렇게 사용하는건 좀 허접합니다. 그냥 워드처럼 enter키도 아닙니다. 그러면 어떻게 할까요? 코드를 보겠습니다.

나는 아름다운 나비  
날게를 확짝 펴고  
세상을 아름답게 날거야  
@ScottKillen
ScottKillen / Tinker's Construct Materials.md
Last active November 4, 2023 21:51
Tinkers' Construct Material Stats and Traits

Tinker's Construct Materials

Material Stats

Material Head Durability Extra Durability Handle Durability Handle Modifer Mining Level Mining Speed Attack Value Head Traits Extra/Handle Traits Drawspeed Range Multiplier Bonus Damage Arrow Shaft Modifier Bonus Ammo
Paper 12.00 15.00 5.00 0.10 Stone 0.51 0.05 Writable Writable 0.67 0.40 -2.00
Constantan 25.00 6 6 0.80 Diamond 4.70 4.00 Thermal Inversion Thermal Inversion 1.82 1.50 5.00
Treated Wood 25.00 2 35.00 1.00 Stone 2.00 2.00 Ecological Ecological 1.00 1.12 1.20
Wood 35.00 15.00 25.00 1.00 Stone 2.00 2.00 Ecological Eco
@cecilemuller
cecilemuller / launch.json
Last active July 22, 2024 05:49
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Example",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
@egoing
egoing / The OAuth 2.0 Authorization Framework: Bearer Token Usage.md
Last active October 11, 2023 03:57
Bearer Authentication 에 대해서 살펴봅니다.

소개

이 글은 Oauth를 이용해서 access token을 획득한 후에 api에 접속하는 방법에 대해서 설명하고 있습니다.

우선 공부해야 할 것들

이 글은 WEB2 OAuth2 수업과 WEB2 HTTP 수업에 의존하고 있습니다. OAuth와 HTTP를 잘 모르신다면 이 수업들을 먼저 보시고 이 글을 볼 것을 권해드립니다.

Bearer Authentication란?

API에 접속하기 위해서는 access token을 API 서버에 제출해서 인증을 해야 합니다. 이 때 사용하는 인증 방법이 Bearer Authentication 입니다. 이 방법은 OAuth를 위해서 고안된 방법이고, RFC 6750에 표준명세서가 있습니다.

@rabelais88
rabelais88 / docker-swarm.md
Created November 10, 2019 05:18
스타트업에 traefik + docker-swarm을 추천하는 이유

스타트업에 traefik + docker-swarm을 추천하는 이유

  • Traefik: Reverse-proxy router
  • Docker-swarm: Docker-supported orchestrator

왜 Docker-Swarm인가?

  • kubernetes(이하 k8) 는 무겁고 느리다. docker-swarm(이하 DS)docker 최신버전에 기본으로 탑재되어 나온다. 또한 helm이나 별도의 관리 cli(kubeadm, kubectl)를 설치할 필요가 없다.

  • k8 은 세팅도 어렵다: 세팅하기가 워낙 까다로워 실제로 운영하기 적절한 경우는 devops 팀을 가진 최소 20명 이상의 대규모 사이즈 팀이다. 한 명이 작업하는 것이 아주 불가능한 것은 아니지만, 긴급수정시에는 많이 위험해질 수 있다. 총원이 10명이 되지 않는 우리팀 같은 경우는 한 사람이 급하게 기능수정을 해야될 일이 많다.

@MarioHewardt
MarioHewardt / enable_ebpf_on_wsl2
Last active July 22, 2024 18:09
Enable EBPF on WSL2
By default, EBPF programs will not run on WSL2 due to required kernel modules missing. The following example error is an
indication of this problem:
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.19.84-microso
ft-standard/modules.dep.bin'
modprobe: FATAL: Module kheaders not found in directory /lib/modules/4.19.84-microsoft-standard
chdir(/lib/modules/4.19.84-microsoft-standard/build): No such file or directory
To fix this you need to rebuild the WSL2 kernel with the missing kernel modules. The below instructions are for Ubuntu 18.04 WSL2.
1. git clone https://github.com/microsoft/WSL2-Linux-Kernel.git