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
Potherca / Do not commit the `phpunit.xml` file.md
Last active Sep 12, 2019
Do not commit the `phpunit.xml` file
View Do not commit the `phpunit.xml` file.md
@Potherca
Potherca / Rules for creating more robust code in PHP.md
Last active Sep 11, 2019
Rules for creating more robust code in PHP.
@Potherca
Potherca / Learning Styles Comparison.md
Created Sep 8, 2019
Comparing various theories regarding learning styles
View Learning Styles Comparison.md

Learning Styles Comparison [1][1]

VARK [2][2]

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

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

(List sorting update September 2019)

@Potherca
Potherca / Create-branch-with-Github-API.md
Last active Sep 4, 2019
Create a branch on Github without access to a local git repo using http://hurl.eu/
View Create-branch-with-Github-API.md

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 [hurl.eu][2] this is a piece of cake!

Just follow these steps:

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

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
Potherca / README.md
Last active Aug 19, 2019
BATS Assertion Libraries comparison
View README.md

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

Introduction

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
Potherca / README.md
Last active Aug 16, 2019
Feature Toggles in PHP
View README.md

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
Potherca / README.md
Last active Aug 13, 2019
AVNLIPPP -- Average variable name length in popular PHP projects
View README.md
You can’t perform that action at this time.