This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 구분 | 통신사 | 지역 | |
|---|---|---|---|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| $: if (browser && data) { | |
| chart.ref?.updateSeries(data.series); | |
| } | |
| </script> | |
| <p>Hello, World</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create .env file and add secret values. | |
| // Run with node --env-file=.env index.mjs | |
| // Requires Node.js 20+ (LTS as of 2023-10-24) | |
| const { | |
| NHN_SMS_APP_KEY, | |
| NHN_SMS_SECRET, | |
| NHN_SMS_SEND_NO, | |
| SEND_TO, | |
| TWILIO_ACCOUNT_SID, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { asc, eq, gte, lte } from 'drizzle-orm'; | |
| import { drizzle } from 'drizzle-orm/mysql2'; | |
| import { createPool } from 'mysql2'; | |
| import * as schema from './schema'; | |
| import { comments, users } from './schema'; | |
| const connection = createPool({ | |
| host: '...', | |
| user: '...', | |
| password: '...', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { webcrypto as crypto } from 'node:crypto'; // Node.js only | |
| /* Generate */ | |
| const key = await crypto.subtle.generateKey( | |
| { | |
| name: 'AES-GCM', | |
| length: 256 | |
| }, | |
| true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { generateSgSendRequest } from 'sendgrid-send'; | |
| import { defineConfig } from 'vite'; | |
| // Vite Conditional Config | |
| // Reference https://vitejs.dev/config/#conditional-config | |
| export default defineConfig(({ command }) => ({ | |
| plugins: [ | |
| { | |
| name: 'Build End Notification', | |
| buildEnd: async (error) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { generateSgSendBody } = require('sendgrid-send'); | |
| generateSgSendBody; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Moved to https://github.com/hyunbinseo/blog/blob/master/posts/setup-linux.md | |
| ### Remote Desktop ############################################################ | |
| sudo apt install xfce4 xrdp | |
| sudo systemctl enable xrdp | |
| # Applications / Settings / Screensaver | |
| # [ ] Enable Screensaver | |
| # [ ] Lock Screen with Screensavera |