Skip to content

Instantly share code, notes, and snippets.

View SpencerKaiser's full-sized avatar

Spencer Kaiser SpencerKaiser

View GitHub Profile
@SpencerKaiser
SpencerKaiser / .zprofile
Last active September 9, 2020 23:45
Bash Profile
# General Shortcuts
alias dev="cd ~/Dev"
# Git Shortcuts
alias commit="git commit"
alias add="git add"
alias pull="git pull"
alias sync="git pull upstream master"
alias push="git push"
@SpencerKaiser
SpencerKaiser / PromptOne.md
Last active June 10, 2020 21:50
GitHub Assessment - Spencer Kaiser

Prompt One

Company: Acme computers
Version control platform(s): Many GitHub Enterprise instances installed throughout the company by different teams. Acme Computers is trying to standardize on GitHub Enterprise and consolidate their GitHub usage onto a single instance. The company has many instances of other Git hosting solutions installed as well. Some are fully supported applications. Other instances are on machines under people's desks.
Customer requests:

  • Shrink large repository: Acme wants GitHub to help them shrink the large repository to a more manageable size that is performant for common Git operations. The large repo is a project that is high visibility with an aggressive roadmap. They request that we help them within the month. It's a large, monolithic repository.
  • Consolidate instances: Acme wants you to tell them the best way to move all the other teams, using GitHub Enterprise or other Git solutions, onto their consolidated GitHub Enterprise instance. They have as
@SpencerKaiser
SpencerKaiser / CreatePixelBuffer.swift
Last active May 25, 2021 13:53
Swift implementation of a DJI-provided sample to convert vc_pixelbuffer_fastupload to a usable CVPixelBuffer
func createPixelBuffer(fromFrame frame: VideoFrameYUV) -> CVPixelBuffer? {
var initialPixelBuffer: CVPixelBuffer?
let _: CVReturn = CVPixelBufferCreate(kCFAllocatorDefault, Int(frame.width), Int(frame.height), kCVPixelFormatType_420YpCbCr8Planar, nil, &initialPixelBuffer)
guard let pixelBuffer = initialPixelBuffer,
CVPixelBufferLockBaseAddress(pixelBuffer, []) == kCVReturnSuccess
else {
return nil
}