This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# alias: coreaudio audiocore | |
# tags apple sound reset audio | |
# 20120626091339 | NOTE | This code resets and fixes the audio on my osx os x laptop | |
sudo kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf ~/.zprezto ~/.zlogin ~/.zlogout ~/.zpreztorc ~/.zprofile ~/.zshenv ~/.zshrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function unshorten_url($url) { | |
$ch = curl_init($url[0]); | |
curl_setopt_array($ch, array( | |
CURLOPT_FOLLOWLOCATION => TRUE, // the magic sauce | |
CURLOPT_RETURNTRANSFER => TRUE | |
CURLOPT_HEADER => TRUE, | |
CURLOPT_CONNECTTIMEOUT => 5, | |
CURLOPT_SSL_VERIFYHOST => FALSE, // suppress certain SSL errors | |
CURLOPT_SSL_VERIFYPEER => FALSE, | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Parse Start and Due Dates script | |
By Ryan Oldford | |
Based on work by andyferra (https://gist.github.com/andyferra/64842) | |
change_case taken from http://www.macosxautomation.com/applescript/sbrt/sbrt-06.html | |
This script is used with TaskPaper to provide better start and due date support, as well as support for repeating tasks. | |
The script searches for @due and @start tags, converts their values to standard date code values, | |
then adds the appropriate "diff" tag whose value indicates how far away the due or start date is (negative = past, 0 = today). | |
Any tasks with a @repeat tag that are done are edited to remove the done tag and have their due tags updated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
am broadcast "intent:#Intent;action=r1d1_to_front;end" | |
am broadcast "intent:#Intent;action=ros_to_unity;end" | |
am broadcast -a edu.mit.media.prg.ros_android_intents.intent_to_ros -e data bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
date | bucket | count | |
---|---|---|---|
2012-07-20 | 800 | 119 | |
2012-07-20 | 900 | 123 | |
2012-07-20 | 1000 | 173 | |
2012-07-20 | 1100 | 226 | |
2012-07-20 | 1200 | 284 | |
2012-07-20 | 1300 | 257 | |
2012-07-20 | 1400 | 268 | |
2012-07-20 | 1500 | 244 | |
2012-07-20 | 1600 | 191 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pinboard_api' | |
PinboardApi.username = "USERNAME" | |
PinboardApi.password = "PASSWORD" | |
posts = PinboardApi::Post.all(tag: ARGV[0], meta:true) | |
posts = posts.reject {|post| post.tags.include? "@done"} | |
ARGV[1].to_i.times do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name "*.meta" -print0 | xargs -0 -I {} rm -r {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
property newContextName : "txfr" --context the item will change to if changeContext = true | |
tell application "Finder" | |
set the clipboard to "" | |
end tell | |
tell application "OmniFocus" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "OmniFocus" | |
tell document 1 | |
tell (first document window whose index is 1) | |
set SelectedItemInMainView to selected trees of content | |
repeat with i from 1 to (count of SelectedItemInMainView) | |
set theSelectedTask to value of item i of SelectedItemInMainView |
NewerOlder