semvec/pypi-packages huggingface dataset:
procrust 0.1.0
Limit the time you procrastinate by blocking websites via the hosts file
License: MIT

# procrust

Limit the time you procrastinate by blocking websites via the hosts file.

# Usage

## Edit block list

Open the list of host names to block when not procrastinating for editing:

    procrust edit

Add one host name per line.

## Start and stop procrastinating

When you start and stop procrastinating the hosts file will be changed, so you need to run the command with root privileges. If you ran the `edit` command without `sudo` you need to preserve the environment with the `-E` option.

    sudo -E procrust start

    sudo -E procrust stop

# Installation

Install the `procrust` command globally so it is accessible by the root user.

    git clone https://github.com/yaph/procrust.git
    cd procrust
    sudo python3 setup.py install

## Authors

`procrust` was written by [Ramiro Gómez](https://ramiro.org/).
patchworkdocker 0.0.0
TODO
License: MIT

[![Build Status](https://travis-ci.org/colin-nolan/patchwork-docker.svg?branch=master)](https://travis-ci.org/colin-nolan/patchwork-docker)
[![codecov](https://codecov.io/gh/colin-nolan/patchwork-docker/branch/master/graph/badge.svg)](https://codecov.io/gh/colin-nolan/patchwork-docker)

# Patchwork Docker

## Purpose
Allows a Docker build to be easily changed, without having to clone and modify an existing build repository. 


## Features
All with a single command, the tool can:
- Build images from a different base image.
- Add/override files in the build context.
- Apply patches to the Dockerfile or other files in the build context.
- Define a different Dockerfile.


## Use Cases
A few basic use cases (`./docker-run.sh` can be used instead of `patchworkdocker`):
- To change a base image from `debian:stretch` to `python:3.7-stretch` so as to get the latest version of Python in the 
  image with no hassle:
  ```bash
  patchworkdocker build example:1.0.0 https://github.com/example/docker-example.git \
      --base-image python:3.7-stretch
  ```
- Add an alternate Dockerfile to a pre-existing context:
  ```bash
  patchworkdocker build example:1.0.0 https://github.com/example/docker-example.git \
      --additional-file Dockerfile:Dockerfile.example \
      --dockerfile Dockerfile.example
  ```
- Change the URL of a piece of software that gets installed into a Docker image:
  ```bash
  patchworkdocker build example:1.0.0 https://github.com/docker-library/python.git \
      --dockerfile 3.7/stretch/Dockerfile \
      --patch change-install-url.patch:Dockerfile
  ```

Raspberry Pi users may find this tool particularly useful as, outside the official images, there is often need to 
change image build in order to get them to work on the non-standard rpi architectures. 


## Installation
Prerequisites
- Docker
- Python 3.7+ (optional, as can be run entirely from Docker if you don't have Python 3.7)

The tool can be installed directly from GitHub:
```bash
pip install git+https://github.com/colin-nolan/patchwork-docker@master#egg=patchworkdocker
```


## Usage
Up-to-date usage information can be seen with:
```bash
patchworkdocker --help
patchworkdocker build --help
```