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
it "meme" do | |
url = "http://www2b.abc.net.au/votecentral/Client/PlaceVote.aspx?E=96&IX=0&IG=2" | |
doc = Nokogiri::HTML(open(url)) | |
list = doc.at("div .IndexPageContent") | |
list = list.at("p") | |
list.css("span .artist").each do |item| | |
puts "#{item.text} - #{ item.next_element.next_element.text}" | |
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
#!/bin/bash | |
# This script resizes a sparsebundle and locks the Info.plist to prevent timemachine resizing it. | |
# Usage | |
# resize.sh MacBook.sparsebundle 100g | |
# which resizes the sparse bundle to 100GB | |
echo "unlocking Info.plist" | |
SetFile -a l "${1%/}/Info.plist" | |
NewerOlder