Skip to content

Instantly share code, notes, and snippets.

View cyphar's full-sized avatar
🎴
日本語を勉強中

Aleksa Sarai cyphar

🎴
日本語を勉強中
View GitHub Profile
@euank
euank / get-moby-commit.sh
Created August 30, 2017 04:00
This resolves a docker/docker-ce tag into a moby commit hash.
#!/bin/bash
set -e
tag=${1:?arg should be a docker-ce tag, such as 'v17.07.0-ce'}
tmp=$(mktemp -d)
cd $tmp
wget https://raw.githubusercontent.com/shykes/moby-extras/master/cmd/moby-components
@cyphar
cyphar / how-to-pgp-release.md
Last active September 2, 2023 02:44
Document describing how to create PGP-signed releases of projects.

Creating Releases with PGP Signatures

Aleksa Sarai

Creating a release of a free software project with PGP signatures is quite simple, especially if you have everything set up already. This guide uses GnuPG, but it should be roughly applicable to OpenPGP or other implementations. For completeness, I've included a (very) short introduction to how to create a PGP key and how PGP works.

Introduction

commit 3f5e3bdbb45bc2cd9ae95972420eb11b0340f120
Author: Matthew Garrett <mjg59@coreos.com>
Date: Mon Feb 1 13:31:00 2016 +1100
Block most UEFI variable deletions
Some systems appear to become upset if certain UEFI non-volatile variables
are delted, to the point of no longer POSTing successfully. For a short-term
fix, let's just block deletion of most variables while we figure out a
better approach.
anonymous
anonymous / abyss-as-a-service
Created November 20, 2015 14:56
Floating serenely through a peaceful abyss, a sigh escapes; content.
A siren wails, you're jolted from your respite
/dev/xsdb1 is at 100%
A cacophony of alerts screech from the phone.
Upset is the fragile balance, failure cascades.
Was only a matter of time.
Get some coffee.
All you ping seems to crumble, machine after machine fall; a massacre of uptime.
@auscompgeek
auscompgeek / README.md
Last active January 8, 2016 11:14
NyanFlip - An extension of BackFlip by Peter Ward (@flowblok). An example program is attached.

NyanFlip

An extension by Peter Ward (@flowblok) of the [BackFlip][1] esoteric programming language.

Here follows the original description by @flowblok from the NCSS 2014 Programming Competition:

Nyan Cat is stuck in an arcade game! You have the feeling that she's trying to get a message to you, but the game is running so slowly it will take days until she completes her message. The game is played on a 2D grid. Nyan Cat enters at the top-left corner, and starts by moving one tile to the right every turn. Some tiles have things displayed on them:

  • Arrows (<, >, ^ and V): When Nyan Cat steps on one of these, it changes her direction so she is now moving in the direction the arrow pointed in. However, that arrow then changes direction to point back the way she came from.