This file contains hidden or 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
-------------------------------------------------- | |
-- createnote.applescript | |
-- Evernote Command Line Proxy | |
-- by Maripo Goda <goda.mariko[at]gmail.com> | |
-- Required: | |
-- Mac OS X + AppleScript | |
-- Evernote for Mac OS X | |
-- Perl + JSON.pm | |
-- Usage: | |
-- Create a note with text |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# Set these to what you'd like | |
symbol = "mtgoxUSD" | |
ledger_currency = "$" | |
ledger_btc = "BTC" | |
start_date = "2013-01-01" | |
end_date = Time.now.to_i | |
# shouldn't really need to change anything after here | |
require 'open-uri' |
This file contains hidden or 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
source ~/.bash_profile | |
hash oclint &> /dev/null | |
if [ $? -eq 1 ]; then | |
echo >&2 "oclint not found, analyzing stopped" | |
exit 1 | |
fi |
This file contains hidden or 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
#!/usr/bin/env osascript | |
on run argv | |
tell application "Viscosity" | |
Connect argv | |
end | |
end |
This file contains hidden or 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
/* This stylesheet is designed to work with the grey theme for GMail | |
- hides the top bar and Google+ notifications | |
- simplifies buttons (remove border/background, add hover state back) | |
- dim Rapportive until hovered | |
This is only partially tested at this point and may cause some issues | |
Please let me know if you find problems: <http://brettterpstra.com/contact/> | |
Brett Terpstra 2013 <http://brettterpstra.com> /* |
This file contains hidden or 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
#make sure you use macruby | |
framework "ScriptingBridge" #let's use the scripting bridge framework | |
# this is aweful - maybe a wrapper would be nice | |
# you can ge this BundleIdentifier using the mdls | |
# mdls -name kMDItemCFBundleIdentifier /Applications/Things.app | |
things = SBApplication.applicationWithBundleIdentifier("com.culturedcode.things") |
This file contains hidden or 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 "Safari" | |
set vURL to URL of current tab of window 1 | |
end tell | |
tell application "Google Chrome" | |
if windows ≠ {} then | |
make new tab at the end of window 1 with properties {URL:vURL} | |
else | |
make new window | |
set URL of (active tab of window 1) to vURL |
This file contains hidden or 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 "Finder" | |
set _b to bounds of window of desktop | |
set _width to item 3 of _b | |
set _height to item 4 of _b | |
end tell | |
tell application "GeekTool Helper" | |
if _width > 1367 then | |
set visible of group "Desk" to true | |
set visible of group "11 inch screen" to false |
This file contains hidden or 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/sh | |
## | |
# This is a script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# Run in interactive mode with: | |
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)" | |
# | |
# or run it without prompt questions: |
This file contains hidden or 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 "Finder" to set filePath to quoted form of (POSIX path of (the selection as alias)) | |
do shell script "cat " & filePath & " | pbcopy" |