Skip to content

Instantly share code, notes, and snippets.

View andreabradpitto's full-sized avatar
:octocat:

Andrea Pitto andreabradpitto

:octocat:
View GitHub Profile
@othyn
othyn / factorio_headless_guide.md
Last active October 1, 2025 17:28
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

@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active October 19, 2025 01:43
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@jerhinesmith
jerhinesmith / download.rb
Created August 14, 2015 16:23
Grab all NBA team logos
#!/usr/bin/env ruby
require 'open-uri'
teams = {
atl: 'hawks',
bkn: 'nets',
bos: 'celtics',
cha: 'hornets',
chi: 'bulls',