Install CertBot on ubuntu 20
sudo snap install core; sudo snap refresh core sudo snap install --classic certbot sudo certbot --nginx
2 ноября 2021, 01:24
sudo snap install core; sudo snap refresh core sudo snap install --classic certbot sudo certbot --nginx
docker inspect -f '{{ .Mounts }}' containerid
sudo apt install ca-certificates
(async () => { const promises = []; promises.push(new Promise((resolve) => { resolve(1); })); promises.push(new Promise((resolve) => { resolve(2); })); const results = await Promise.all(promises); console.log(results); })();
sudo fallocate -l 1G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
const http = require('http'); http.request(url, { method: 'HEAD' }, (res) => { console.log(res.statusCode); }) .on('error', (err) => { console.error(err); }) .end();
SELECT h.schema_name, h.table_name, h.id AS table_id, h.associated_table_prefix, row_estimate.row_estimate FROM _timescaledb_catalog.hypertable h CROSS JOIN LATERAL ( SELECT sum(cl.reltuples) AS row_estimate FROM _timescaledb_catalog.chunk c JOIN pg_class cl ON cl.relname = c.table_name WHERE c.hypertable_id = h.id GROUP BY h.schema_name, h.table_name) row_estimate ORDER BY schema_name, table_name;
explain (format json) select * from tbl
new Intl.DateTimeFormat('ru-RU', { weekday: 'short' }).format(new Date()) //пн
const date = new Date(); const d1 = new Date( date.getFullYear(), date.getMonth(), date.getDay(), date.getHours(), 0, 0, 0, ); const d2 = new Date( date.getFullYear(), date.getMonth(), date.getDay(), date.getHours(), 59, 59, 999, ); console.log(d1); // 2021-03-05T09:00:00.000Z console.log(d2); // 2021-03-05T09:59:59.999Z
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash - sudo apt-get install -y nodejs
ln -s /opt/homebrew/Cellar/pcre2/10.36/include/pcre2.h /opt/homebrew/Cellar/php/8.0.2/include/php/ext/pcre
sudo adduser \ --system \ --shell /bin/bash \ --gecos 'description' \ --group \ --disabled-password \ --home /home/us \ us
npm rebuild node-sass
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
sudo apt-get remove -y docker docker-engine docker.io containerd runc sudo apt-get update sudo apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" sudo apt-get update sudo apt-get install -y docker-ce docker-ce-cli containerd.io
brew tap homebrew-ffmpeg/ffmpeg brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac
"open_files_in_new_window": false
defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder
export NODE_OPTIONS=--max_old_space_size=4096