Skip to content

Instantly share code, notes, and snippets.

View dapierce's full-sized avatar
🐱

David Pierce dapierce

🐱
View GitHub Profile
@dapierce
dapierce / toggle airplay on tv.scpt
Last active March 27, 2022 09:29
Toggles Airplay on and off TV, use in an Automator Service to make a keyboard shortcut
set tvname to "65in Hisense Roku TV"
tell application "System Events"
tell process "SystemUIServer"
click (menu bar item 1 of menu bar 1 whose description contains "Displays")
if menu item "Stop Airplay" of menu 1 of result exists then
click menu item "Stop Airplay" of menu 1 of result
else
@dapierce
dapierce / .hyper.js
Created June 11, 2018 21:51
personal hyper config (windows-compatible)
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@dapierce
dapierce / settings.json
Last active June 12, 2018 20:15
VS Code custom settings
{
// Hack font at https://sourcefoundry.org/hack/
"editor.fontFamily": "Hack, Consolas, 'Courier New', monospace",
"editor.tabSize": 2,
"workbench.colorTheme": "Palenight Theme",
"window.menuBarVisibility": "toggle",
"workbench.startupEditor": "newUntitledFile",
// Linux-focused dev environment: Unix LF by default and Ubuntu bash in terminal
"files.eol": "\n",
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\bash.exe",
@dapierce
dapierce / .bash_profile
Last active June 22, 2017 03:44
My custom .bash_profile for macOS
# oldbashprofile:
#export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
# 🍒🍒🍒 cool stuff 🍒🍒🍒
# randomize emoji/colors every new terminal window tab
emojis=(🐯 🐷 🐵 🐼 😺 🍒 🍕 🌯 🍑 🥑 🍔 🥓)
emoji=${emojis[$RANDOM % 12]}
# if in a git repo, show the branch

Keybase proof

I hereby claim:

  • I am dapierce on github.
  • I am dapierce (https://keybase.io/dapierce) on keybase.
  • I have a public key whose fingerprint is 0601 004E C486 6BEF 2C05 F0F6 D4E7 05D3 6BCA 2DC5

To claim this, I am signing this object: