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
View BigSurGPUFreeze.md

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
View la-greasemonkey.js
// ==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 / gist:4fa74fed5ec14ce15fe4
Created February 28, 2015 20:01
rvm ruby-2.2.0 installation bug
View gist:4fa74fed5ec14ce15fe4
git:(master) brew update
Updated Homebrew from 440bc1cb to 2044cbe9.
==> New Formulae
purescript  sha2
==> Updated Formulae
fig			 homebrew/versions/gcc45  jack			   nghttp2		    pig			     solr		      typesafe-activatorgit:(master) brew upgrade readline
Error: readline 6.3.8 already installedgit:(master) rvm install 2.2.0
View keybase.md

Keybase proof

I hereby claim:

  • I am techpeace on github.
  • I am techpeace (https://keybase.io/techpeace) on keybase.
  • I have a public key whose fingerprint is 2275 9663 97AA 94B4 0D7C AD2E 4213 4E0C 9C4E 94BB

To claim this, I am signing this object:

@techpeace
techpeace / RubyTest.sublime-settings
Created September 9, 2013 00:46
SublimeText RubyTest plugin settings for MakerSquare boxen machines.
View RubyTest.sublime-settings
{
"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.
View bowling_game.rb
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
View 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
View default-osx.sublime-keymap
[
{
"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
View .gitconfig
[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
View .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>