Skip to content

Instantly share code, notes, and snippets.

View biggianteye's full-sized avatar

Burhan Ali biggianteye

View GitHub Profile
@biggianteye
biggianteye / codebar-dates.go
Created July 25, 2023 15:07
A script to work out the dates of codebar workshops for the West London chapter
package main
// A script to work out the dates of codebar workshops for the West London chapter.
// Our workshops are on the second and fourth Tuesdays of every month.
// https://codebar.io/west-london
import "time"
import "fmt"
func main() {
@biggianteye
biggianteye / update-docker-images.sh
Created March 13, 2018 17:27
Pull down the latest version of docker images
#!/bin/sh
# Pull down the latest docker images
#
# "docker-compose pull" will pull down the latest images but will not do it
# intelligently as it will attempt to update things multiple times if they
# are dependencies of several services (eg. mysql).
#
# It will also only work on the current directory.
#
@biggianteye
biggianteye / phpcs.xml
Last active February 5, 2020 16:09
Run PHP code sniffer over the files that are about to be committed. Takes into account both PHP 5 and 7.
<?xml version="1.0"?>
<!-- Location: $HOME/config/phpcs.xml -->
<ruleset name="burhan">
<rule ref="Squiz.Commenting.FunctionComment">
<!-- excluded because they can't be used for both php 5 and 7 -->
<!-- PHP 7 will make this complaint if scalar type hints (eg int) are missing -->
<exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing" />
<!-- PHP 5 will make this complaint if scalar type hints (eg. int) exist -->
<exclude name="Squiz.Commenting.FunctionComment.InvalidTypeHint" />
</rule>