Skip to content

Instantly share code, notes, and snippets.

In the next version of iPulse, I'd like to show GPU statistics. Unfortunately, the format
for these statistics is vendor specfic (see the "Performance Statistics" dictionary below.)
In order to cover as many devices as possible, I'd like you to run the following commands
from your Terminal:
$ sysctl hw.model
$ ioreg -r -d 1 -w 0 -c "IOAccelerator"
You can help me read the results by putting them in a code block (triple backticks).
@andyscott
andyscott / zoom.sh
Created September 23, 2015 16:35
zoom script for OSX
#!/usr/bin/osascript
# usage: zoom <room-number> [room-password] [--name=NAME]
on split(theString, theDelimiter)
set oldDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to theDelimiter
set theArray to every text item of theString
set AppleScript's text item delimiters to oldDelimiters
return theArray
@orkoden
orkoden / easyReleaseNotesWithGit.sh
Last active December 21, 2015 12:29
easy release notes with git.gets all commit messages since the last tag. useful when preparing release notes.cut is there to get rid of the commit hashes, sort is there because then all commits starting with "fix: bug 9001" or "change: will be next to each other.put into .bashrc, .profile, .zshrc depending on your shell.only works if you tag you…
# replace mate with editor of your choice
alias releasenotes="git log --oneline --no-merges `git describe --abbrev=0 --tags`..HEAD | cut -c 9- | sort | mate"