Skip to content

Instantly share code, notes, and snippets.

View superbit's full-sized avatar

Daniil superbit

View GitHub Profile
@superbit
superbit / dsf
Last active November 2, 2024 19:23
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAosSMJTSbZarMEyOvQsrVqfJlxPZcJuU7lTKhh6h5aA68T9sh5mSeiMBNLo8eaAXP6ZuN57dTIj2dqsoZbJiHJXnePb+WDrODHk8hHlPneB9GIBm1tTJiNYVTKyFh7zzbTc/tI0fK+zch53IXNRxHRnKA79DQsBMY0ZlMZBY9Qn0= superbit-rsa-key-20110722
# Клонируем исходный репозиторий без рабочего каталога (--bare)
git clone --bare https://github.com/exampleuser/old-repository.git
cd old-repository.git
# Делаем mirror-push(будут скопированы все ветки и тэги) в новый репозиторий
git push --mirror https://github.com/exampleuser/new-repository.git
cd ..
# Удаляем папку с репозиторием
rm -rf old-repository.git
If you have this error: Unknown SSL error -12218 mapped to net::ERR_SSL_PROTOCOL_ERROR
and your upwork client does not run you need:
sudo apt-get install libnss3=2:3.15.4-1ubuntu7 libnss3-nssdb=2:3.15.4-1ubuntu7
sudo apt-mark hold libnss3 libnss3-nssdb
Solution provided by Ilya E from upwork.
upstream php-fpm {
server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
server_name www.example.com;
rewrite ^ http://example.com$request_uri?;
}