Skip to content

Instantly share code, notes, and snippets.

View anjohnson's full-sized avatar

Andrew Johnson anjohnson

  • Argonne
  • Chicagoland
View GitHub Profile
@anjohnson
anjohnson / triangle-workflow.md
Last active December 12, 2024 22:37
Triangle workflows

Triangle Workflows

A triangle workflow involves an upstream project and a personal fork containing a development branch of the project. This configuration makes git pull merge changes from the upstream but git push send local commits to the personal fork. However those config settings only work on relatively recent versions of git; 1.7.9 doesn't support the required remote.pushdefault config setting so you will have to explicitly tell git push which remote to push to.

This gist does not attempt to explain exactly what these commands do, it's intended as a cheat-sheet/reminder.

To set up a project area

@anjohnson
anjohnson / kiosk-setup.md
Last active May 30, 2024 20:52
How to set up a PC as an unattended Kiosk running a closed website

How to set up a PC as an unattended Kiosk running a closed website, using Ubuntu 14.04.02 LTS.

These instructions assume that you're familiar with Linux and system administration.

You will need an internet connection to set up the kiosk, even if all the pages will be loaded from disk when it's running.

Note that a "closed" website is one with no links to other websites or to pages with no links back to the rest of the site. The idea here is to only allow users to access a limited set of pages since the kiosk is provided for a specific purpose. If you develop your own content for the kiosk to display, make sure that all pages have at least one link back to the rest of the site; the Back button isn't displayed by Chromium when in kiosk mode.