Update gitlab to specific version
apt install gitlab-ee=14.10.3-ee.0
4 июня 2022, 13:09
apt install gitlab-ee=14.10.3-ee.0
wget https://git.io/vpn -O openvpn-install.sh sudo bash openvpn-install.sh
curl -L https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey | sudo apt-key add -
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AddPerm", "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject" ], "Resource": [ "arn:aws:s3:::my_bucket_name/*" ] } ] }
npx @vue/cli create --default my-vue-app
docker-compose down -v
CREATE TABLE new_table_name (LIKE old_table_name INCLUDING ALL);
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