Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Eat. Sleep. Code.

Brett Morrison morrisonbrett

💭
Eat. Sleep. Code.
View GitHub Profile
@morrisonbrett
morrisonbrett / mkhockey.sh
Created Jun 24, 2022
Script for creating directories for a multi-camera hockey session
View mkhockey.sh
#!/bin/bash
#
# Brett Morrison, June 2022
#
# Script for creating directories for a multi-camera hockey session.
#
# Usage: mkhockey.sh
# Get the current date
d=`date +"%-m-%-d-%Y"`
@morrisonbrett
morrisonbrett / catmp4.sh
Last active Jun 30, 2022
Bash alias for combining MP4 files into one file
View catmp4.sh
#!/bin/bash
#
# Brett Morrison, June 2022
#
# Below is a script for concatenating multiple mp4 files into one mp4 file.
# This is useful for GoPro camera output. The workflow is:
# 1. Copy files from the GoPro microSD card onto a drive
# 2. Open up a command prompt and CD into the directory you put the MP4 files
# 3. Run the command, catmp4 with the output file name as the one and only parameter
#
View openapi-status-header.cs
[FunctionName("status")]
[OpenApiOperation(operationId: "Run", tags: new[] { "Status" })]
[OpenApiSecurity("function_key", SecuritySchemeType.ApiKey, Name = "code", In = OpenApiSecurityLocationType.Query)]
[OpenApiResponseWithBody(statusCode: HttpStatusCode.OK, contentType: "application/json", bodyType: typeof(StatusModel), Description = "OK")]
public async Task<IActionResult> Run(
View dev-maintenance.json
{
"dashboard": {
"dashboardNative": true,
"dashboardNativeAllSubsidiaries": true,
"dashboardNativeSubsidiaryNames": [],
"dashboardNativeMessage": "We are working to improve your experience and expect to be back online soon. Thanks for your patience.",
"dashboardBrowser": true,
"dashboardBrowserAllSubsidiaries": false,
"dashboardBrowserSubsidiaryNames": ["elite", "mck", "stc"],
"dashboardBrowserMessage": "We are working to improve your experience and expect to be back online soon. Thanks for your patience.",
View blockstack
Verifying my Blockstack ID is secured with the address 1K5RfyxEmKYfWNLqjC78tXet7UJYcPG7dw https://explorer.blockstack.org/address/1K5RfyxEmKYfWNLqjC78tXet7UJYcPG7dw
@morrisonbrett
morrisonbrett / tslint.json
Last active Apr 21, 2020
My super OCD "make TypeScript like C#" linting file
View tslint.json
{
"rules": {
"align": [
true,
"parameters",
"statements"
],
"ban": false,
"class-name": true,
"comment-format": [
@morrisonbrett
morrisonbrett / package.json
Last active Jul 15, 2018
Example of npm script commands used in an Ionic project.
View package.json
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "npm run ionic:build",
"start": "concurrently \"npm run build:watch\" \"npm run serve\"",
"serve": "lite-server -c=bs-config.json",
"ionic:build": "gulp default && npm run lint && ionic-app-scripts build",
"ionic:serve": "gulp default && npm run lint && ionic-app-scripts serve --sourceMap source-map --iscordovaserve --wwwDir platforms/browser/www/ --buildDir platforms/browser/www/build",
"build-prod-browser": "gulp browser && ionic-app-scripts build browser --wwwDir platforms/browser/www --sourceMap source-map",
"build-dev-browser": "gulp browser && ionic-app-scripts build browser --wwwDir platforms/browser/www --sourceMap source-map --dev",
"build-dev-android": "gulp default && cordova build android --debug",
@morrisonbrett
morrisonbrett / pullrequests.go
Last active Feb 9, 2019
A Go program to iterate through a specified owner's repositories on BitBucket and display the status of open Pull Requests
View pullrequests.go
//
// Brett Morrison, June 2015
//
// A simple program to display a list of open pull requests from BitBucket ✔
//
package main
import (
"encoding/json"
"flag"
View keybase.md

Keybase proof

I hereby claim:

  • I am morrisonbrett on github.
  • I am brett (https://keybase.io/brett) on keybase.
  • I have a public key whose fingerprint is 0266 9B69 B305 D97F B840 96C1 85BA B00E E517 4D13

To claim this, I am signing this object: