create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
# https://www.freecodecamp.org/news/how-to-search-files-in-the-linux-terminal/ | |
find -name <file_name> | |
# find file by "case-insensitive" | |
find -iname <file_name> | |
# find file by "regex / pattern" | |
find /path/to/search -name "*.txt" |
'use client'; | |
import { type LinkProps } from 'next/link'; | |
import { useRouter } from 'next/navigation'; | |
import cn from 'classnames'; | |
type LinkPropsReal = React.PropsWithChildren< | |
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, keyof LinkProps> & LinkProps | |
>; |
export function formatCurrency( | |
value: number, | |
locales: string | string[] = 'id', | |
options: Intl.NumberFormatOptions = { style: 'currency', currency: 'IDR', minimumFractionDigits: 0 } | |
) { | |
return new Intl.NumberFormat(locales, options).format(value); | |
} | |
export function formatCurrencyWithoutPrefix(value: number, locales: string | string[] = 'id') { | |
return formatCurrency(value, locales, {}); |
function chunk(items: string[], size: number) { | |
const chunks = []; | |
items = ([] as string[]).concat(...items); | |
while (items.length) { | |
chunks.push(items.splice(0, size)); | |
} | |
return chunks; | |
} |
{ | |
"contact": { | |
"firstName": "John", | |
"lastName": "Doe", | |
"phone": "+1 123 456 789", | |
"email": "johndoe@mail.com", | |
"linkedin": "https://www.linkedin.com/in/johndoe", | |
"summary": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat" | |
}, | |
"experiences": [ |