Skip to content

Instantly share code, notes, and snippets.

@jeyraof
jeyraof / hds.sh
Created October 21, 2022 17:15
화담숲 티켓 조회
function hds {
arrs=("20221029" "20221030" "20221110" "20221112" "20221113")
echo
echo " 화담숲 체크: https://m.hwadamsup.com/reservation/checkTermsAgree.do"
echo
for value in "${arrs[@]}"; do
result=$(curl -s -d "selDate=$value&itemCode=00001" -X POST https://hwadamsup.com/mReserve/reserveInfo.do | jq '.timeList | map(select(.reQuantity >= 2)) | map(.startTime) | join(", ")')
echo " $value: $result"
@jeyraof
jeyraof / esc-tilde.json
Created March 9, 2022 23:28 — forked from dongminkim/esc-tilde.json
Karabiner-Elements Complex Modifications for HHKB
{
"title": "Esc & Tilde - revised by @dongminkim",
"rules": [
{
"description": "Esc as Tilde",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
@jeyraof
jeyraof / Setup-new-mac.md
Created September 22, 2020 02:06
새로운 Mac 세팅

새로운 Mac 세팅

#draft #setup

새 Mac 을 구성할 때, 항상 기존의 자료를 그대로 옮겨오지 않고 새로 구성을 하는 편이다. 기존 Mac 에 쌓여있는 여러가지 쓸모없는 데이터를 없앨 이만한 기회가 따로 없기 때문이다.

새로운 Mac 을 수령하면 설치하는 기본적인 설정과 어플리케이션들을 나열해 본다.

System Preference

  • Keyboard
    • Keyboard
@jeyraof
jeyraof / README.md
Last active September 18, 2020 06:46
Simplify Covid-19 QR check-in with iOS14 Back Touch

1

enum class Provider(val service: String) {
KAKAO("kakao"),
APPLE("apple")
}
@RestController
class TestController {
@PostMapping("/test")
fun testFunc(
@jeyraof
jeyraof / authentication.kt
Created July 13, 2020 04:38
kotlin spring practice
package com.example.auth.models
import java.util.*
import javax.persistence.*
@Entity
@Table(name = "authentications")
data class Authentication(
@get:Id
@get:GeneratedValue(strategy = GenerationType.IDENTITY)
@jeyraof
jeyraof / frame.scss
Last active April 22, 2020 06:54
kakao mail profile style svg frame
.with_frame {
&::before {
background-image: url("data:image/svg+xml,%3Csvg class='ico_obj' width='160px' height='160px' viewBox='0 0 160 160' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M170,-10 L170,170 L-10,170 L-10,-10 L170,-10 Z M80,0 C20.5777778,0 0,20.5777778 0,80 C0,139.422222 20.5777778,160 80,160 C139.422222,160 160,139.422222 160,80 C160,20.5777778 139.422222,0 80,0 Z' stroke-width='0'%3E%3C/path%3E%3Cpath class='obj_stroke' d='M160,80 C160,139.422222 139.422222,160 80,160 C20.5777778,160 0,139.422222 0,80 C0,20.5777778 20.5777778,0 80,0 C139.422222,0 160,20.5777778 160,80 Z' fill='none'%3E%3C/path%3E%3C/svg%3E");
}
}
@jeyraof
jeyraof / .zshrc
Last active April 1, 2019 15:40
kube shortcut
# set path to kexec.sh
alias kexec='~/shortcuts/kexec.sh'
@jeyraof
jeyraof / sources.list
Created November 15, 2018 19:34
/etc/apt/sources.list for kakao mirror
deb http://mirror.kakao.com/ubuntu/ bionic main restricted
deb http://mirror.kakao.com/ubuntu/ bionic-updates main restricted
deb http://mirror.kakao.com/ubuntu/ bionic universe
deb http://mirror.kakao.com/ubuntu/ bionic-updates universe
deb http://mirror.kakao.com/ubuntu/ bionic multiverse
deb http://mirror.kakao.com/ubuntu/ bionic-updates multiverse
deb http://mirror.kakao.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirror.kakao.com/ubuntu bionic-security main restricted
deb http://mirror.kakao.com/ubuntu bionic-security universe
deb http://mirror.kakao.com/ubuntu bionic-security multiverse
@jeyraof
jeyraof / timezone.py
Last active February 19, 2018 14:04
timezone without pytz
from datetime import tzinfo, timedelta
class UTC(tzinfo):
def utcoffset(self, dt):
return timedelta(seconds=0)
def dst(self, dt):
return timedelta(seconds=0)