Skip to content

Instantly share code, notes, and snippets.

View morrisonbrett's full-sized avatar
💭
Eat. Sleep. Code.

Brett Morrison morrisonbrett

💭
Eat. Sleep. Code.
View GitHub Profile
node_modules
@morrisonbrett
morrisonbrett / catmp4.sh
Last active August 24, 2022 18:07
Bash alias for combining MP4 files into one file
#!/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
#
@morrisonbrett
morrisonbrett / mkhockey.sh
Last active August 22, 2022 22:51
Script for creating directories for a multi-camera hockey session
#!/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"`
[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(
{
"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.",
@morrisonbrett
morrisonbrett / tslint.json
Last active April 21, 2020 02:02
My super OCD "make TypeScript like C#" linting file
{
"rules": {
"align": [
true,
"parameters",
"statements"
],
"ban": false,
"class-name": true,
"comment-format": [
@morrisonbrett
morrisonbrett / pullrequests.go
Last active February 9, 2019 22:29
A Go program to iterate through a specified owner's repositories on BitBucket and display the status of open Pull Requests
//
// Brett Morrison, June 2015
//
// A simple program to display a list of open pull requests from BitBucket ✔
//
package main
import (
"encoding/json"
"flag"
Verifying my Blockstack ID is secured with the address 1K5RfyxEmKYfWNLqjC78tXet7UJYcPG7dw https://explorer.blockstack.org/address/1K5RfyxEmKYfWNLqjC78tXet7UJYcPG7dw
@morrisonbrett
morrisonbrett / package.json
Last active July 15, 2018 21:25
Example of npm script commands used in an Ionic project.
"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",