Без пароля и т.п.
ssh-keygen -t ed25519 -C "comment, ex.: your_email@example.com"Ваш репозиторий --> Settings --> Security --> Deploy keys
| 1. Нужно найти все коммиты, которые изменяли файл: | |
| git log --pretty=oneline --branches -- BIGFILE.ZIP | |
| 2.1 Удалить ссылки на файл из всей истории коммитов, начиная с последнего (пусть, хеш последнего коммита - 6df7640): | |
| git filter-branch --index-filter 'git rm --cached BIGFILE.ZIP --ignore-unmatch' --prune-empty --tag-name-filter cat -- --all | |
| 2.2 Удалить ссылки на каталог из истории коммитов: | |
| git filter-branch --force --index-filter 'git rm -r --cached --ignore-unmatch BIG/DIR' --prune-empty --tag-name-filter cat -- --all | |
| 3. Отправляем изменения на сервер: |
| #!/bin/sh | |
| git_version=2.40.1 | |
| sudo apt install wget dh-autoreconf libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev asciidoc xmlto docbook2x install-info -y | |
| wget https://github.com/git/git/archive/refs/tags/v$git_version.tar.gz | |
| tar -zxf v$git_version.tar.gz | |
| cd git-$git_version | |
| make configure |
If you don't know anything about JSON, please, spend some time on learning JSON structure.
Recommended sources:
In this guide you can find how to resolve the following issues.
Feel free to ask any questions in the comments section below.
So, with credit to the Factorio wiki and cbednarski's helpful gist, I managed to eventually setup a Factorio headless server. Although, I thought the process could be nailed down/simplified to be a bit more 'tutorialised' and also to document how I got it all working for my future records.
The specific distro/version I'm using for this guide being Ubuntu Server 16.04.1 LTS. Although, that shouldn't matter, as long as your distro supports systemd (just for this guide, not a Factorio headless requirement, although most distros use it as standard now).
The version of Factorio I shall be using is 0.14.20, although should work for any version of Factorio 0.14.12 and higher.
If you prefer a simple, automated setup, [Bisa has a really handy init script that will do most of the work for
| <?php | |
| $images = file_get_contents('http://lscreens.eut2.online.scssoft.com/eut2/lscr/data'); // Download WoT loading screens data file | |
| $images = trim(substr($images, 1025)); // Trim and cut first 1024 symbols (idk what to do with it) | |
| // Making array of things | |
| $images_array = explode('\\n', json_encode($images)); | |
| foreach ($images_array as $key => &$value) { | |
| $value = explode(';', $value); | |
| } |
|  | |
|  | |
| {username} — ваш ник на ГитХабе; | |
| {repository} — репозиторий где хранятся картинки; | |
| {branch} — ветка репозитория; | |
| {path} — путь к месту нахождения картинки. |