Skip to content

Instantly share code, notes, and snippets.

#!/bash/bin
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' > /etc/apt/preferences.d/limit-unstable
apt update
apt install wireguard
runtime: python
api_version: '1'
env: flexible
threadsafe: true
env_variables:
APP_ENV: pro
GOOGLE_CLOUD_DISABLE_GRPC: 'True'
automatic_scaling:
min_num_instances: 2
max_num_instances: 20
:bit_pay:
:api_key: 'XXXX'
:test: true
:database:
# SQLite (development)
# :adapter: sqlite3
# :database: test.db
# For PostgreSQL
# :adapter: postgresql
#!/bin/bash
ACTIVEMERCHANT_INTEGRATION='bit_pay'
cd ../
WORKING_DIR=`pwd`/plugin-development/$ACTIVEMERCHANT_INTEGRATION
cd killbill-plugin-framework-ruby
if [ -d "$WORKING_DIR" ]; then rm -Rf $WORKING_DIR; fi
./script/generate active_merchant $ACTIVEMERCHANT_INTEGRATION $WORKING_DIR
cd $WORKING_DIR
rm -f Gemfile.lock Jarfile.lock .jbundler/classpath.rb
bundle install
#!/bin/bash
# Activemerchant bitpay integration (snake case name: bit_pay) is located here: https://github.com/activemerchant/offsite_payments/blob/master/lib/offsite_payments/integrations/bit_pay.rb
./script/generate active_merchant two_checkout ../plugin-development
cd ../plugin-development
rake killbill:clean ; rake build ; rake killbill:package; rake killbill:deploy[true]
Bundler::GemNotFound: Could not find json-1.8.6 in any of the sources
materialize at /var/tmp/bundles/plugins/ruby/killbill-webmoney/0.0.1/ROOT/gems/gems/bundler-1.16.2/lib/bundler/spec_set.rb:91
map! at org/jruby/RubyArray.java:2446
materialize at /var/tmp/bundles/plugins/ruby/killbill-webmoney/0.0.1/ROOT/gems/gems/bundler-1.16.2/lib/bundler/spec_set.rb:85
specs at /var/tmp/bundles/plugins/ruby/killbill-webmoney/0.0.1/ROOT/gems/gems/bundler-1.16.2/lib/bundler/definition.rb:171
specs_for at /var/tmp/bundles/plugins/ruby/killbill-webmoney/0.0.1/ROOT/gems/gems/bundler-1.16.2/lib/bundler/definition.rb:238
requested_specs at /var/tmp/bundles/plugins/ruby/killbill-webmoney/0.0.1/ROOT/gems/gems/bundler-1.16.2/lib/bundler/definition.rb:227
requested_specs at /var/tmp/bundles/plugins/ruby/killbill-webmoney/0.0.1/ROOT/gems/gems/bundler-1.16.2/lib/bundler/runtime.rb:108
setup at /var/tmp/bundles/plugins/ruby/killbill-webmoney/0.0.1/ROOT/gems/gems/bundler-1.16
#!/bin/bash
# Activemerchant bitpay integration (snake case name: bit_pay) is located here: https://github.com/activemerchant/offsite_payments/blob/master/lib/offsite_payments/integrations/bit_pay.rb
./script/generate active_merchant webmoney ../plugin-development
cd ../plugin-development
rake killbill:clean ; rake build ; rake killbill:package; rake killbill:deploy[true]
2018-06-01T04:58:03,630+0000 lvl='INFO', log='KillbillLogWriter', th='Thread-9', xff='', rId='', aRId='', tRId='', JRuby plugin killbill-bit_pay activated (symbolicName = org.kill-bill.billing.killbill-platform-osgi-bundles-jruby-1)
2018-06-01T04:58:03,634+0000 lvl='INFO', log='KillbillLogWriter', th='Thread-9', xff='', rId='', aRId='', tRId='', Starting JRuby plugin killbill-bit_pay (symbolicName = org.kill-bill.billing.killbill-platform-osgi-bundles-jruby-1, pluginMain=Killbill::Plugin::Api::PaymentPluginApi)
2018-06-01T04:58:03,635+0000 lvl='INFO', log='JRubyPlugin', th='localhost-startStop-1', xff='', rId='', aRId='', tRId='', Creating scripting container with localContextScope SINGLETHREAD
Bundler::GemNotFound: Could not find json-1.8.6 in any of the sources
materialize at /var/tmp/bundles/plugins/ruby/killbill-bit_pay/0.0.1/ROOT/gems/gems/bundler-1.16.2/lib/bundler/spec_set.rb:91
map! at org/jruby/RubyArray.java:2446
materialize at /var/tmp/bundles/plugins/ruby/killbill-bit_pay/
You have requested:
thread_safe ~> 0.3.4
The bundle currently has thread_safe locked at 0.3.5.
Try running `bundle update thread_safe`
If you are updating multiple gems in your Gemfile at once,
try passing them all to `bundle update`
Run `bundle install` to install missing gems.
You have requested:
@zero-master
zero-master / create.sh
Last active June 1, 2018 05:36
Killbill payment plugin from ActiveMerchant integration
#!/bin/bash
git clone https://github.com/killbill/killbill-plugin-framework-ruby.git
cd killbill-plugin-framework-ruby
# Activemerchant bitpay integration (snake case name: bit_pay) is located here: https://github.com/activemerchant/offsite_payments/blob/master/lib/offsite_payments/integrations/bit_pay.rb
./script/generate active_merchant bit_pay ../plugin-development
cd ../plugin-development
rake killbill:clean ; rake build ; rake killbill:package; rake killbill:deploy[true]