Skip to content

Instantly share code, notes, and snippets.

Ben Peachey Potherca

Block or report user

Report or block Potherca

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Potherca / Do not commit the `phpunit.xml`
Last active Sep 12, 2019
Do not commit the `phpunit.xml` file
View Do not commit the `phpunit.xml`
Potherca / Rules for creating more robust code in
Last active Sep 11, 2019
Rules for creating more robust code in PHP.
Potherca / Learning Styles
Created Sep 8, 2019
Comparing various theories regarding learning styles
View Learning Styles

Learning Styles Comparison [1][1]

VARK [2][2]

  • Aural / Auditory (vArk)
  • Kinesthetic (varK)
  • Multimodal (MM)
  • Read/write (vaRk)
  • Visual (Vark)
Potherca /
Last active Sep 6, 2019
Amount of pulls from docker hub for each of the gitlab pipeline-components.

This page shows the amount of pulls each one of the Gitlab Pipeline-Components have received thus far.

(List sorting update September 2019)

Potherca /
Last active Sep 4, 2019
Create a branch on Github without access to a local git repo using

Ever had the need to create a branch in a repo on Github without wanting (or being able) to access a local repo?

With the aid of [the Github API][1] and [][2] this is a piece of cake!

Just follow these steps:

  1. Open [][2]
  2. Find the revision you want to branch from. Either on Github itself or by doing a GET request from Hurl:<AUTHOR>/<REPO>/git/refs/heads
  3. Copy the revision hash
  4. Do a POST request from Hurl to<AUTHOR>/<REPO>/git/refs with the following as the POST body :
Potherca /
Created Aug 26, 2019
Minecraft Castle Builder using the Python API by Matt Hawkins (RaspberryPi-spy or RPiSpy)
# Minecraft Python API
# Castle Builder
# This script creates a castle complete
# with moat and perimeter walls.
# Author : Matt Hawkins
Potherca /
Created Aug 24, 2019
Searching for a generic documentation block convention

Documentation block conventions

For most languages a single standard for documenting functions and methods in block comments (a.k.a. doc-blocks) has emerged.

There does not seem to be a definitive convention for documenting bash functions and files. Several different conventions exist

The long list

The following conventions are available:

Potherca /
Last active Aug 19, 2019
BATS Assertion Libraries comparison

"Who would dare assert that we know all there is to be known?" ~ Galileo Galilei


At the time of this writing there are 3 separate libraries that offer assertions for the Bash Automated Testing System (otherwise known as BATS).

These are:

Potherca /
Last active Aug 16, 2019
Feature Toggles in PHP

If you look on Packagist, [the most popular packages][1] for [Feature toggles][2] are:

  1. qandidate/toggle "Feature toggling for your PHP application." (⬇️ 496.754 / ⭐ 362)
  2. opensoft/rollout "Feature switches or flags for PHP" (⬇️ 354.269 / ⭐ 215)
  3. flagception/flagception "Feature toggle on steroids." (⬇️ 139 265 / ⭐ 24)
  4. joshuaestes/feature-toggle "Provides feature toggle functionality" (⬇️ 61.736 / ⭐ 32)
  5. zumba/swivel "Strategy driven feature toggles" (⬇️ 49.954 / ⭐ 211)

Downloads Stars

Potherca /
Last active Aug 13, 2019
AVNLIPPP -- Average variable name length in popular PHP projects
You can’t perform that action at this time.