Skip to content

Instantly share code, notes, and snippets.

Avatar

Billie Thompson PurpleBooth

View GitHub Profile
View Good-CONTRIBUTING.md-template.md

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@PurpleBooth
PurpleBooth / README-Template.md
Last active Sep 19, 2021
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

View Template-README-for-containers.md

Docker Container Name

A one paragraph description about the container.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

@PurpleBooth
PurpleBooth / README.md
Last active Sep 17, 2021
Change your default branch on github without checkout anything out
View README.md

change-github-default-branch.sh

Usage

change-github-default-branch.sh "$GITHUB_TOKEN" PurpleBooth/homebrew-repo

Does not delete the old default branch, or change where pull requests are based from, incase something breaks.

@PurpleBooth
PurpleBooth / Dockerfile
Last active Aug 3, 2021
Create a static binary in go and put it in a from scratch docker container
View Dockerfile
FROM golang:1.9
WORKDIR /go/src/github.com/purplebooth/example
COPY . .
RUN go build -ldflags "-linkmode external -extldflags -static" -a main.go
FROM scratch
COPY --from=0 /go/src/github.com/purplebooth/example/main /main
CMD ["/main"]
@PurpleBooth
PurpleBooth / README.md
Last active May 17, 2021
A github workflow pipeline for rust that does test, build and deploy windows, linux and mac, creates releases, and does SemVer Versioning, and releases to a homebrew tap
View README.md

Features

  • Automatically bump SemVer
  • Update a personal homebrew tap
  • Keep that pesky version in the Cargo.toml up to date
  • (From dependabot) Get new versions out as soon as possible

Assumptions

  • You don't want a changelog
View books-that-have-influenced-me.md

Here is a non-exhaustive list of books that have influenced how I think about software.

@PurpleBooth
PurpleBooth / Pipfile
Last active Mar 20, 2021
Hacking about with the IMDB Keras data set. Mostly from https://www.tensorflow.org/tutorials/keras/basic_text_classification
View Pipfile
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
keras = "*"
tensorflow = "*"
View README.md

Mutation Testing

How good are the tests you've been writing all day, and yesterday?

The Command

We're going to use mut.py to run our mutation tests. There are a LOT of options for mutation testing in python, if you find a better one, tell me about it.

Installing mut.py into the environment