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
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 |
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
#! /bin/bash | |
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - \ | |
&& touch /etc/apt/sources.list.d/mongodb-org-4.4.list \ | |
&& echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list \ | |
&& sudo apt-get update \ | |
&& sudo apt-get install -y mongodb-org \ | |
&& sudo mkdir /var/lib/mongodb /var/log/mongodb /var/run/mongodb \ | |
&& sudo chown -R mongodb:mongodb /var/lib/mongodb /var/log/mongodb /var/run/mongodb \ | |
&& sudo touch /etc/mongod.conf \ | |
&& sudo wget https://gist.githubusercontent.com/Titiaiev/5af58cf194f5412665f201e40f6668b9/raw/98dd724c349e46cab521a5e626fa8247019b6a87/mongod.conf > /etc/mongod.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
{ | |
"printWidth": 100, | |
"tabWidth": 2, | |
"useTabs": false, | |
"semi": true, | |
"singleQuote": true, | |
"trailingComma": "all", | |
"bracketSpacing": true, | |
"jsxBracketSameLine": false, | |
"arrowParens": "avoid", |
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
#!/bin/bash | |
# создаёт новый nodejs typescript | |
# настраивает eslint, prettier, nodemon, устанавливает рабочие зависимости | |
# инициализирует гит репозиторий и делает инит комит | |
echo "(Будет использовано для name в package.json и создания директории проекта)" | |
echo -n "Введите название проекта: " | |
read PROJECT_NAME |
OlderNewer