Skip to content

Instantly share code, notes, and snippets.

View hyunbinseo's full-sized avatar

Hyunbin Seo hyunbinseo

View GitHub Profile
@hyunbinseo
hyunbinseo / cloudflare.tsv
Last active March 4, 2024 03:34
Cloudflare Colocations in Korea
구분 통신사 지역
5G KT LAX
5G KT LAX
5G KT LAX
5G KT LAX
5G LGU HKG
5G LGU ICN
5G SKT KIX
5G SKT KIX
5G SKT LAX
@hyunbinseo
hyunbinseo / pw_auth.bash
Created March 9, 2024 15:08
Disable password authentication in Ubuntu 22.04 (Vultr instance)
cd /etc/ssh
sudo nano sshd_config
# PasswordAuthentication no
# Remove the leading pound sign
cd sshd_config.d
ls # 50-cloud-init.conf
sudo nano 50-cloud-init.conf
@hyunbinseo
hyunbinseo / D3.svelte
Created March 13, 2024 15:43
D3 in vanilla Svelte
<!-- https://d3js.org/getting-started#d3-in-vanilla-html -->
<script lang="ts">
import * as d3 from 'd3';
import type { Action } from 'svelte/action';
const width = 640;
const height = 400;
const marginTop = 20;
const marginRight = 20;
@hyunbinseo
hyunbinseo / README.md
Created June 4, 2024 15:40
Setup fnm on Windows with corepack

PowerShell must be used. Windows Terminal is advised.

winget install Schniz.fnm

Create a PowerShell profile if it does not exist. Reference

if (!(Test-Path -Path $PROFILE)) {
@hyunbinseo
hyunbinseo / $SvelteKit.md
Created August 8, 2024 07:31
Block form double submit in SvelteKit use:enhance
@hyunbinseo
hyunbinseo / CHECKLIST.md
Created August 18, 2024 02:15
Multi-line checklist item in GitHub flavored markdown
  • Single-line item
  • Multi-line item
    Multi-line item
    Multi-line item
  • This item is still clickable
@hyunbinseo
hyunbinseo / drizzle-pick-table-columns.ts
Last active January 23, 2025 16:28
Pick Drizzle ORM columns from a table with type safety
import { getTableColumns, type Table } from 'drizzle-orm';
import { integer, sqliteTable } from 'drizzle-orm/sqlite-core';
import { db } from './client.js';
export const pickTableColumns = <
T extends Table, //
const ColumnName extends keyof T['_']['columns']
>(
table: T,
columnNames: ColumnName[]
@hyunbinseo
hyunbinseo / winget.ps1
Last active May 1, 2025 11:27
Install apps using WinGet on Windows
$packages = @(
'9P1XD8ZQJ7JD', # fre:ac
'AdGuard.AdGuard',
'AdrienAllard.FileConverter',
'astral-sh.uv',
'Balena.Etcher',
'Bitwarden.Bitwarden',
'ClockworkMod.UniversalADBDriver',
'Dropbox.Dropbox',
'Git.Git',
@hyunbinseo
hyunbinseo / 10-cubes-stacked-alt.svg
Last active February 11, 2025 13:15
SVG sprite based repeating cubes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hyunbinseo
hyunbinseo / exported.svg
Created February 27, 2025 04:24
Optimizing repetition inside SVG with sprites
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.