Skip to content

Instantly share code, notes, and snippets.

View tannineo's full-sized avatar
🐢
慢慢来

Chao Chen tannineo

🐢
慢慢来
View GitHub Profile
@tannineo
tannineo / timezones.ts
Created August 10, 2023 14:42 — forked from sandcastle/timezones.ts
A timezone list with grouping by timezone, in TypeScript.
export interface IanaTimezone {
group: string;
timezone: string;
label: string;
}
export const IANA_TIMEZONES = [
// UTC+14:00
{ group: 'UTC+14:00', timezone: 'Pacific/Kiritimati', label: 'Pacific/Kiritimati (+14)' },
// UTC+13:00
@tannineo
tannineo / timezones.ts
Created August 10, 2023 14:42 — forked from sandcastle/timezones.ts
A timezone list with grouping by timezone, in TypeScript.
export interface IanaTimezone {
group: string;
timezone: string;
label: string;
}
export const IANA_TIMEZONES = [
// UTC+14:00
{ group: 'UTC+14:00', timezone: 'Pacific/Kiritimati', label: 'Pacific/Kiritimati (+14)' },
// UTC+13:00
@tannineo
tannineo / setup_nginx_proxy_and_certbot_with_nodejs_app.md
Last active February 7, 2022 11:13
setup_nginx_proxy_and_certbot_with_nodejs_app

setup_nginx_proxy_and_certbot_with_nodejs_app

Using Rocky Linux 8 (on Digital Ocean), start from scratch. Using user root.

install EPEL

dnf install epel-release
dnf update
@tannineo
tannineo / test.html
Created October 13, 2020 14:14
a flex chessboard test
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title></title>
</head>
<body>
<script>
var numbersqu = prompt('how big do you want of the chessboard');
var sizesqu = prompt('the size of square');
Windows Registry Editor Version 5.00
; more info on remapping keys on windows
; see (in Chinese) https://cloud.tencent.com/developer/article/1566158
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3A,00,1D,00,1D,00,3A,00,00,00,00,00