All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| Tags: | |
| - Key: Name | |
| Value: | |
| !Join ['_', [ ec2, "Fn::ImportValue" : {"Fn::Sub":'${BaseStackName}-Environment'}, test2]] | |
| #This will create a name tag with value: ec2_<yourValueFromOtherStack>_test2 |
| # Place this in your home directory's ~/.gitconfig file | |
| [alias] | |
| # a shorthand alias for a pretty cli git log graph | |
| tree = "!git log --graph --decorate --pretty=format:'%C(yellow)%h %Cred%cr %Cblue(%an)%C(cyan)%d%Creset %s' --abbrev-commit --all" |
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.
Just a note to newcomers: If there are any issues with the installation steps, people in the comments are doing a good job
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
| # Add this snippet to the top of your playbook. | |
| # It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
| # gwillem@gmail.com | |
| - hosts: all | |
| gather_facts: False | |
| tasks: | |
| - name: install python 2 | |
| raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
| api: bundle exec puma -C config/puma.rb |
| // allows YYYY/M/D and periods instead of slashes | |
| // http://stackoverflow.com/questions/24989065/trying-to-validate-yyyy-mm-dd | |
| /^\d{4}[\/.]\d{1,2}[\/.]\d{1,2}$/ | |
| // YYYY-MM-DD and YYYY-M-D | |
| // http://stackoverflow.com/questions/6177975/how-to-validate-date-with-format-mm-dd-yyyy-in-javascript | |
| /^\d{4}\-\d{1,2}\-\d{1,2}$/ | |
| // YYYY-MM-DD | |
| // https://gist.github.com/arth2o/8471150 |
| #The mouse will suck on linux because of the programmable buttons. | |
| #This script will change the button-delegation so that the mouse doesn't stuck. | |
| #@link https://community.linuxmint.com/hardware/view/10217 | |
| sudo mkdir /etc/X11/xorg.conf.d | |
| sudo rm /etc/X11/xorg.conf.d/910-rat.conf | |
| # add the following to the file | |
| echo "Section \"InputClass\"" >> /etc/X11/xorg.conf.d/910-rat.conf |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |