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
1.8.7 :018 > bucket = s3.buckets['oliver-test-versioning'] | |
=> #<AWS::S3::Bucket:oliver-test-versioning> | |
1.8.7 :026 > bucket.enable_versioning | |
=> nil | |
1.8.7 :027 > bucket.versioned? | |
=> true | |
1.8.7 :029 > bucket.versions.each { |v| puts v.class } | |
AWS::S3::ObjectVersion | |
AWS::S3::ObjectVersion | |
AWS::S3::ObjectVersion |
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
diff -ruN mplayer.orig/configure mplayer/configure | |
--- mplayer.orig/configure 2012-09-28 16:12:45.000000000 +0200 | |
+++ mplayer/configure 2012-09-28 16:13:10.000000000 +0200 | |
@@ -48,8 +48,6 @@ | |
fi | |
if ! test -e ffmpeg ; then | |
- echo "No FFmpeg checkout, press enter to download one with git or CTRL+C to abort" | |
- read tmp | |
if ! git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git ffmpeg ; then |
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
diff --git a/configure b/configure | |
index bbfcd51..5734024 100755 | |
--- a/configure | |
+++ b/configure | |
@@ -48,8 +48,6 @@ if test -e ffmpeg/mp_auto_pull ; then | |
fi | |
if ! test -e ffmpeg ; then | |
- echo "No FFmpeg checkout, press enter to download one with git or CTRL+C to abort" | |
- read tmp |
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
NOT WORKING: | |
[15:19:42.767] GET http://localhost:5000/media_011012/1mT1O677gwdP-libfdk_aac.mp4 [HTTP/1.1 200 OK 18ms] | |
[15:19:42.739] JWPLAYERVIEWPLAY ([ViewEvent type="jwplayerViewPlay" data="null" id=mediaplayer1-right client=FLASH MAC 11,4,402,265 version=5.10.2295]) @ http://localhost:5000/ | |
[15:19:42.741] JWPLAYERMEDIABEFOREPLAY ([MediaEvent type="jwplayerMediaBeforePlay" id="mediaplayer1-right" client="FLASH MAC 11,4,402,265" version="5.10.2295"]) @ http://localhost:5000/ | |
[15:19:42.743] JWPLAYERMEDIALOADED ([MediaEvent type="jwplayerMediaLoaded" id="mediaplayer1-right" client="FLASH MAC 11,4,402,265" version="5.10.2295"]) @ http://localhost:5000/ | |
[15:19:42.745] JWPLAYERPLAYERSTATE ([PlayerStateEvent type="jwplayerPlayerState" oldstate="IDLE" newstate="BUFFERING" id="mediaplayer1-right" client="FLASH MAC 11,4,402,265" version="5.10.2295" message="null"]) @ http://localhost:5000/[15:19:42.746] JWPLAYERMEDIABUFFER ([MediaEvent type="jwplayerMediaBuffer" bufferPercent="0" position="0" id="mediaplayer1-right" |
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
root@squeeze:/var/chef/cookbooks/test/recipes# cat foo.rb | |
execute "load" do | |
command "/bin/echo 'load called from test::foo'" | |
action :nothing | |
end | |
file "/tmp/foo" do | |
action :touch | |
notifies :run, "execute[load]", :immediately | |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'aws-sdk' | |
require 'optparse' | |
def run(options) | |
# Set up credentials and buckets | |
s3 = AWS::S3.new({ | |
:access_key_id => options[:key], |
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
Exception in thread "RubyThread-61: ./s3_ls.rb:3" java.lang.ArrayIndexOutOfBoundsException: 18 | |
at org.jruby.util.MurmurHash.hash32(MurmurHash.java:33) | |
at org.jruby.RubyString.strHashCode(RubyString.java:1216) | |
at org.jruby.RubyString.hashCode(RubyString.java:1206) | |
at org.jruby.RubyHash.internalGetEntry(RubyHash.java:506) | |
at org.jruby.RubyHash.op_asetForString(RubyHash.java:910) | |
at org.jruby.RubyHash.fastASetCheckString19(RubyHash.java:879) | |
at org.jruby.RubyHash.op_aset19(RubyHash.java:905) | |
at org.jruby.RubyHash$INVOKER$i$2$0$op_aset19.call(RubyHash$INVOKER$i$2$0$op_aset19.gen) | |
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:202) |
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
if reflect.TypeOf(err).String() != "*json.SyntaxError" { | |
t.Errorf("Badly formed input should have resulted in json.SyntaxError, but didn't.") | |
return | |
} |
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
# Set up the three different clients to different hosts, and a starting time | |
client1 = Mysql2::Client.new() | |
client2 = Mysql2::Client.new() | |
client3 = Mysql2::Client.new() | |
start_time = Time.now() | |
# Run the first query | |
query1 = "SELECT SLEEP(5);" | |
puts "Running Query:\n >> #{query1}\n\n" | |
client1.query(query1, :async => true) |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"os" | |
"sync" | |
) | |
var ( |
OlderNewer