Skip to content

Instantly share code, notes, and snippets.

View mbierman's full-sized avatar

Michael Bierman mbierman

View GitHub Profile
@mbierman
mbierman / Eq Selector.scpt
Last active August 29, 2015 14:07
Set iTunes equalizer via AppleScript
set asrc to (choose from list {"Acoustic", "Bass Booster", "Classical", "Deep", "Flat", "Latin", "Lounge", "Piano", "Pop", "R&B", "Rock", "Small Speakers", "Spoken Word", "Vocal Booster"} with title "Equalizer" default items {"Flat"}) as text
if result is "false" then return
tell application "iTunes"
set the current EQ preset to EQ preset asrc
end tell
@mbierman
mbierman / tidy_config.txt
Created March 10, 2015 23:03
tidy settings
// sample config file for HTML tidy
indent: auto
indent-spaces: 4
wrap: 80
markup: yes
output-xml: no
input-xml: no
show-warnings: yes
numeric-entities: yes
quote-marks: yes
@mbierman
mbierman / wifipass.sh
Created March 31, 2016 16:17
Get the wifi password from an OSX machine
#!/usr/bin/env bash
export DISPLAY=:0:0
security find-generic-password -ga "$1" | grep "password:"
@mbierman
mbierman / Things I like to do.txt
Last active June 30, 2016 01:12
My Zapier List
Most Exciting
- Work with the product team to develop a new feature based on feedback from customers
- Analyze thousands of support tickets to spot trends the product team can use
- Scheduling shifts and collaborating as part of a growing cohesive support team
- Manage a support team
- Find and recruit teammates for the support team
Runners up!
- Make Zap templates to help showcase the thousands of ways customers can use Zapier
- Work with people to figure out if Zapier can solve a particular workflow or integration challenge they have
#!/usr/bin/env bash
# Use two URLS from the "View" link on the verions page of a GIST
USER=mbierman
PASS=
if [[ ! -z $USER && ! -z $PASS && ! -z $1 && ! -z $2 ]]; then
ID1=$(echo $1 | cut -d "/" -f5)
/*
https://www.google.com/contacts/
https://mail.google.com/
*/
.PI img , .c3q9jc img, .xvtNjc img {
-webkit-border-radius: 200px;
-moz-border-radius: 200px;
border-radius: 200px;
-webkit-box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.75);
@mbierman
mbierman / Fade iTunes.workflow
Last active October 14, 2016 18:51
AppleScript to fade audio , pause music, and restore volume
set input to text returned of (display dialog "How many minutes should I play music for?" default answer "90")
delay input * 60
--- fade volume
tell application "iTunes"
set currentvolume to the sound volume
repeat with i from currentvolume to 0 by -2
set the sound volume to i
delay 0.5
end repeat
@mbierman
mbierman / UpdateChangeIP.sh
Last active April 7, 2020 01:46
Updates IP for changeip.com's DDNS service
#!/bin/bash
###############################################################
## ChangeIP.com bash update script
###############################################################
## Written 3/18/09 by Tom Rinker, released to the Public Domain
## Re-write 09/15/2017 by Michael Bierman
## I replaced wget with curl so it can work on all macs.
###############################################################
## This is a simple bash script to preform a dDNS update with
@mbierman
mbierman / Archive Google Voice Voicemail.scpt
Created November 15, 2017 20:12
Archive Google Voice voicemail
tell application "Safari"
activate
tell window 1
set current tab to (make new tab with properties {URL:"https://voice.google.com/voicemail"})
delay 2
repeat with n from 0 to 99
repeat with n from 0 to 10
tell application "System Events"
@mbierman
mbierman / Send to Evernote.workflow
Created February 28, 2018 20:18
Auto upload to Evernote
on run {input, parameters}
tell application "/Applications/Evernote.app" to run
repeat with this_item in the input
set the item_info to info for this_item
tell application id "com.evernote.evernote"
activate
create note from file this_item
end tell