Skip to content

Instantly share code, notes, and snippets.

View mbierman's full-sized avatar

Michael Bierman mbierman

View GitHub Profile
.contact-picture img {
-webkit-border-radius: 15px;
border-radius: 15px;
}
@mbierman
mbierman / Portrait.svg
Last active August 29, 2015 13:56
SVG Portrait
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mbierman
mbierman / getRSS
Last active August 29, 2015 13:56
Gets the RSS feeds from a web page. Can be used in an AppleScript or commandline.
curl --silent $1 | grep 'type="application/rss+xml"'
@mbierman
mbierman / soundpicker
Created February 21, 2014 20:06
Make it easy to choose the destination for your audio
--Each of the list corresponds to sound souces like AirPort devices and bluetooth
set asrc to (choose from list {"Internal Speakers", "living room", "girl's bedroom", "master bedroom", "OontZ Curve", "OontZ Curve Stereo", "office"} with title "Sound Picker" default items {"Internal Speakers"}) as text
if result is "false" then return
-- for debugging
-- display dialog "src is: " & asrc
/* https://en.todoist.com/app?lang=en&v=848#start */
.date_overdue {
color: red;
border: 2px solid red;
padding-left: 20px;
padding-right:20px;
border-radius: 4px;
}
@mbierman
mbierman / net.sh
Created March 31, 2014 18:10
Get some idea of how network latency is doing.
#!/usr/bin/env bash
#Variables
count=0
max=45
sleept=1
maxsleep=15
domain=www.oracle.com
while [ "$count" -eq 0 ]; do
@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();
@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 / 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 / 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;