-
Bookmark a page in safari, any page, this page even.
-
Open up your bookmarks, right click on the bookmark you just created 'Edit Name' and set it to be 'Mp3'
-
Right click again this time selecting 'Edit Address', delete what's there and paste in this:
javascript:var sourceUrl='/serve/source/'+activeItem.id+'/'+activeItem.key;var xhr=new XMLHttpRequest();xhr.open("GET",sourceUrl,false);xhr.send();var downloadUrl=JSON.parse(xhr.responseText).url;jQuery('#player-nowplaying').html('Download .mp3 File (right click and save as..)');
-
Drag the bookmark into bookmarks bar so you can see it all the time on your browser;
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
Mark C. Set root password on new vm: | |
sudo -s -H | |
sudo passwd | |
aptitiude install openssh-server | |
11:55 AM | |
Mark C. ssh [email protected] | |
password: root |
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
Acquisition: users come to the site from various channels | |
Activation: users enjoy 1st visit: “happy” user experience | |
Retention: users come back, visit site multple times | |
Referral: users like product enough to refer others | |
Revenue: users conduct some monetisation behaviour |
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
git config --global alias.history "log --graph --pretty=\"format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset\"" | |
git history |
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
# http://news.ycombinator.com/item?id=4130494 | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
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
rake aborted! | |
undefined local variable or method `shit' for main:Object | |
/Users/pairing/workspaces/ruby/enigma/Rakefile:8:in `<top (required)>' | |
(See full trace by running task with --trace) |
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
class Matrix | |
def []=(i, j, x) | |
@rows[i][j] = x | |
end | |
end |
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
defaults write com.apple.Terminal NSQuitAlwaysKeepsWindows -bool 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
Install PG from binary + rubygem | |
PATH=$PATH:/Library/PostgreSQL/9.0/bin gem install pg |
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 Weather(locationName){ | |
var locationURL = "http://www.google.com/ig/api?weather="+locationName; | |
var forcast = {}; | |
$.get(locationURL, function(data){ | |
var current = $(data).find('current_conditions'); | |
['condition', 'temp_f', 'temp_c', 'humidity', 'wind_condition'].forEach(function(attribute){ | |
forcast[attribute] = $(current).find(attribute).attr('data'); | |
}); | |
}); |