Skip to content

Instantly share code, notes, and snippets.

@zero-master
zero-master / largest_files.sh
Created May 24, 2018 09:58
Find largest directories consuming space
#!/bin/bash
du -k /var/logs | sort -n | tail -10
@zero-master
zero-master / GDPR.md
Last active February 14, 2022 20:07
Show visitors from EU countries a page with GDPR message using Cloudflare and .htaccess
Dependencies for version LATEST
killbill 0.18.20
killbill-oss-parent 0.140.53
killbill-api 0.50.2
killbill-plugin-api 0.23.1
killbill-commons 0.20.17
killbill-platform 0.36.15
Known plugin for KB version LATEST
@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]
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:
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/
#!/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]
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 two_checkout ../plugin-development
cd ../plugin-development
rake killbill:clean ; rake build ; rake killbill:package; rake killbill:deploy[true]