Skip to content

Instantly share code, notes, and snippets.

View BanzaiMan's full-sized avatar

Hiro Asari BanzaiMan

View GitHub Profile
before_deploy:
- mkdir deploy_staging
- cp */target/**/*.jar deploy_staging
deploy:
skip_cleanup: true
provider: s3
bucket: build-bucket
region: us-west-2
local-dir: deploy_staging
@BanzaiMan
BanzaiMan / a.md
Created November 4, 2013 10:00 — forked from rkh/a.md

This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:

  • Hulu / HuluPlus
  • CBS
  • ABC
  • MTV
  • theWB
  • CW TV
  • Crackle
  • NBC

Workshop notes

  • Getting Started
    • Plug the book
    • JVM
      • Version differences
    • JRuby
      • rvm, rbenv, chruby, whatever
  • Linux packages?
#!/bin/bash
pushd /tmp
git clone https://github.com/BanzaiMan/travis-artifacts.git
cd travis-artifacts
git checkout travis_errors
gem build travis-artifacts.gemspec
gem install travis-artifacts*.gem
popd
@BanzaiMan
BanzaiMan / example.rb
Created December 6, 2012 01:59 — forked from Cloven/example.rb
jruby integer unboxing / type selection issue
#!/Users/fsg/projects/jruby-1.7.1/bin/jruby
require 'java'
require 'pry'
# $CLASSPATH << "jars/netty-4.0.0.Alpha7/jar/all-in-one/"
require 'jars/netty-4.0.0.Alpha7/jar/all-in-one/netty-4.0.0.Alpha7.jar'
java_import 'java.net.InetSocketAddress'
@BanzaiMan
BanzaiMan / Bar.java
Created September 12, 2012 17:18 — forked from sam/Bar.java
Simplest possible JRuby+Java test
public class Bar {
public static int baz() {
return 1;
}
}
@BanzaiMan
BanzaiMan / a.md
Created July 2, 2012 03:13 — forked from rkh/a.md

This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:

  • Netflix
  • Hulu / HuluPlus
  • CBS
  • ABC
  • MTV
  • theWB
  • CW TV
  • Crackle
@BanzaiMan
BanzaiMan / ffmpeg.sh
Created September 7, 2011 04:17 — forked from ehowe/ffmpeg.sh
ffmpeg ey (with libvpx)
media_libs="/engineyard/portage/media-libs"
media_sound="/engineyard/portage/media-sound"
media_video="/engineyard/portage/media-video"
if [ $(uname -m) == 'x86_64' ]; then
mask="~amd64"
elif [ $(uname -m) == 'i686' ]; then
mask="~x86"
fi
@BanzaiMan
BanzaiMan / wrapper_test.rb
Created August 22, 2011 03:40 — forked from nelsnelson/wrapper_test.rb
This is a demo of an error I am seeing when attempting to access self inside the initialize method of a class
$ jruby jruby-6014.rb
Hi. I'd like to see what I look like during initialization. :)
self # => #<Klass:0xd2b918> (Klass)
Hi. I'd like to see what I look like during initialization. :)
self # => Sun Aug 21 23:40:01 EDT 2011 (JavaKlass)
@BanzaiMan
BanzaiMan / pi.rb
Created June 7, 2011 21:31 — forked from enebo/gist:1013217
Pi approximation program, Akka's first Java tutorial found on http://akka.io/docs/akka/1.1.2/intro/getting-started-first-java.html
require "java"
$: << File.join(File.dirname(__FILE__), 'lib')
require 'scala-library'
require 'akka/akka-actor-1.1.2'
java_import 'akka.actor.Actors'
java_import 'akka.actor.ActorRef'
java_import 'akka.actor.UntypedActor'