Skip to content

Instantly share code, notes, and snippets.

View The-EDev's full-sized avatar

Farook Al-Sammarraie The-EDev

View GitHub Profile
@The-EDev
The-EDev / factorio_headless_guide.md
Last active October 2, 2021 07:37 — forked from othyn/factorio_headless_guide.md
How to setup a Factorio Headless Server

[LINUX] Factorio Headless Server Guide

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

@The-EDev
The-EDev / aci_protocol_info.md
Last active July 21, 2021 22:12
The information I've uncovered so far about how the Accu-Chek Instant meter communicates with the smart pix app and windows driver.

Analyzing the official software

150 packets were captured Packets 1-62 are to establish a connection (were made as soon as the device connected).

Packets 63-142 are for data (were made after the "read device data" button was pressed).

Packet 63 seems to be a request for the meter's information, since 2 responses later the meter dumps its metadata in ASCII format. I also suspect that this request is being used as a heartbeat signal to keep the meter on, since on linux (which has no drivers for the meter) it turned off after a few seconds.

Here's its data:

#include <functional>
#include <iostream>
class B
{
public:
template <typename Func>
void operator()(Func&& f)
{
@The-EDev
The-EDev / CHANGELOG_TEMPLATE.md
Created April 7, 2021 13:50
my own template for creating a changelog

MyProject Changelog

All notable changes to this project will be documented in this file.

The format is inspired by BUT NOT BASED ON Keep a Changelog.

versioning is Major.Minor+Patch Where: Major: Release status, involves revamping large sections of the codebase (or whether the project is ready for production). Minor: any change that is not major, API breaking changes included. Patch: we messed a release up and really need to fix an issue or 2.

@The-EDev
The-EDev / using_cpp-coveralls.md
Created April 4, 2021 12:15
features of cpp-coveralls not found in help or readme

Possible values in .coveralls.yml

  • repo_token
  • service_name (default: travis-ci)
  • gcov_options
  • root (default: '.')
  • build_root
  • include (list)
  • exclude (list)
  • exclude_lines_pattern (list)