Skip to content

Instantly share code, notes, and snippets.

Ian Malpass indec

Block or report user

Report or block indec

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View foo.diff
diff --git a/app/api/projects.rb b/app/api/projects.rb
index cbfe5e8fdd1..2e6cc251270 100644
--- a/app/api/projects.rb
+++ b/app/api/projects.rb
@@ -977,8 +977,8 @@ class Api::Projects < Api::App
end
AddProjectCardMutation = PlatformClient.parse <<-'GRAPHQL'
- mutation($projectColumnId: ID!, $contentId: ID, $note: String) {
- addProjectCard(input: { projectColumnId: $projectColumnId, contentId: $contentId, note: $note }) {
View switch_audio.sh
#!/bin/bash
headphones="Generic USB Audio Device "
speakers="Display Audio"
arg=$1
if [ "${arg}" = "headphones" ]; then
target=${headphones}
elif [ "${arg}" = "speakers" ]; then
target=${speakers}
@indec
indec / switch_audio.applescript
Last active Dec 17, 2015
An Applescript to cycle the audio input and output sources between two (or more) audio devices
View switch_audio.applescript
on alfred_script(q)
set output_devices to {"Display Audio", "Generic USB Audio Device "}
set input_devices to {"Display Audio", "Generic USB Audio Device "}
set device_keywords to {"speakers", "headphones"}
tell application "System Preferences"
reveal anchor "output" of pane id "com.apple.preference.sound"
tell application "System Events"
tell process "System Preferences"
You can’t perform that action at this time.