Skip to content

Instantly share code, notes, and snippets.

View mbierman's full-sized avatar

Michael Bierman mbierman

View GitHub Profile
/*
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);
#!/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)
@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
@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 / 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 / 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 / Amazon ads.css
Last active August 29, 2015 14:04
Slylish
/* Amazon.com URL */
#variant_adsLazyLoad, div#related_ads {
background: slategrey;
border: red 1px dashed;
display:none;
}
#variant_adsLazyLoad > * {
color: white;
@mbierman
mbierman / com.getnpr.atc.plist
Last active October 14, 2016 19:13
launchd files that run a shell script on a certain schedule.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.com.getnpr.atc</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/Users/bierman/Documents/Applications/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin</string>
@mbierman
mbierman / find small files
Last active August 29, 2015 13:59
Find files that are smaller than 10k in music
find . -type f -size -10k | grep -vi -e '.DS_Store' | grep -vi 'Beatles*' | cut -f2 -d '/' | sort -u
@mbierman
mbierman / upColor
Created April 2, 2014 19:04
Set color for entire row in Google Spreadsheet based on Column A
function upColor() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName('Sheet1'); // Change to your own
var rows = sheet.getRange('A1:A');
var numRows = rows.getNumRows();
var values = rows.getValues();