Skip to content

Instantly share code, notes, and snippets.

View techpeace's full-sized avatar

Matt Buck techpeace

View GitHub Profile
@techpeace
techpeace / BigSurGPUFreeze.md
Last active July 21, 2022 10:27
Big Sur GPU freeze issues

Big Sur GPU Bug

Howdy! You‘re here because, ever since you upgraded your 2018 MacBook Pro to Big Sur, you’ve been experiencing consistent beachballing and hard freezing issues. You probably figured this out after finding lots of messages like this in the Console during a lock-up:

AMDRadeonX5000GLDriver.bundle/Contents/MacOS/ATIRadeonX5000SCLib.dylib: #2: No such file or directory
May 25 19:54:19 ogma Adobe CEF Helper (GPU)[3327]: getattrlist failed for /System/Library/Frameworks/OpenGL.framework/Resources//GLRendererFloat.bundle/GLRendererFloat: #2: No such file or directory
May 25 19:54:19 ogma VTDecoderXPCService[3328]: getattrlist failed for /Library/GPUBundles/AMDRadeonVADriver2.bundle/Contents/MacOS/AMDRadeonVADriver2: #2: No such file or directory
May 25 19:54:19 ogma VTDecoderXPCService[3328]: getattrlist failed for /System/Library/Extensions/AMDRadeonVADriver2.bundle/Contents/MacOS/AMDRadeonVADriver2: #2: No such file or directory
May 25 19:54:19 ogma VTDecoderXPCService[3328]: getattrlist fai
@techpeace
techpeace / la-greasemonkey.js
Last active May 25, 2019 19:01
LinuxAcademy playback speedup userscript
// ==UserScript==
// @name LinuxAcademy Playback Speedup
// @version 1
// @grant none
// @match https://linuxacademy.com/cp/courses/lesson/course/*/lesson/*/module/*
// @match https://beta.linuxacademy.com/#/hands-on-labs/take/*
// ==/UserScript==
jwplayer('player0').setPlaybackRate(2.5);
@techpeace
techpeace / RubyTest.sublime-settings
Created September 9, 2013 00:46
SublimeText RubyTest plugin settings for MakerSquare boxen machines.
{
"erb_verify_command": "erb -xT - {file_name} | ruby -c",
"ruby_verify_command": "ruby -c {file_name}",
"run_ruby_unit_command": "ruby -Itest {relative_path}",
"run_single_ruby_unit_command": "ruby -Itest {relative_path} -n '{test_name}'",
"run_cucumber_command": "cucumber {relative_path}",
"run_single_cucumber_command": "cucumber {relative_path} -l{line_number}",
@techpeace
techpeace / bowling_game.rb
Created August 1, 2013 17:43
A refactored, decomposed version of the code from Testing, part 2.
class BowlingGame
def initialize
@rolls = []
@total_score = 0
@current_roll = 0
end
# Record a @roll in the game.
#
# pins - The Integer number of pins knocked down in this @roll.
@techpeace
techpeace / motd
Last active December 18, 2015 07:19
MakerSquare MOTD
888b d888 d888 888 d8P 8888888888 8888888b.
8888b d8888 d88888 888 d8P 888 888 Y88b
88888b.d88888 d88P 888 888 d8P 888 888 888
888Y88888P888 d88P 888 888d88K 8888888 888 d88P
888 Y888P 888 d88P 888 8888888b 888 8888888P"
888 Y8P 888 d88P88888888 888 Y88b 888 888 T88b
888 " 888 d888 888 888 Y88b 888 888 T88b
888 888 d88P 888 888 Y88b 8888888888 888 T88b
.oOOOo. .oOOOo. O o Oo `OooOOo. o.OOoOoo
[
{
"keys": ["alt+l"],
"command": "set_setting",
"args":
{
"setting": "color_scheme",
"value": "Packages/Color Scheme - Default/Eiffel.tmTheme"
}
},
@techpeace
techpeace / .gitconfig
Created November 5, 2012 22:12
How to add pretty colors to your git output
[color]
branch = auto
diff = auto
status = auto
ui = auto
sh = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
@techpeace
techpeace / .vimrc
Created December 2, 2011 16:05
Some vimrc snippets for dealing with vimrc
if has("autocmd")
" Source the vimrc file after saving it
autocmd BufWritePost */.vimrc.local source $MYVIMRC.local
autocmd BufWritePost */.gvimrc.local source $MYGVIMRC.local
endif
" Open the vimrc.local file
nmap <leader>$ :tabedit $MYVIMRC.local<CR>
@techpeace
techpeace / .gitconfig
Created November 2, 2011 15:19
My global git config
[color]
branch = auto
diff = auto
status = auto
ui = auto
sh = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
@techpeace
techpeace / .irbrc
Created October 27, 2011 21:26
Recent irbrc
require 'awesome_print'
require 'wirble'
# Print all output with awesome_print
module IRB
class Irb
def output_value
ap @context.last_value
end
end