Skip to content

Instantly share code, notes, and snippets.

View martinhbramwell's full-sized avatar
🏠
Creating a serverless, offline-first, single page progressive web app with VueJS

Martin H. Bramwell martinhbramwell

🏠
Creating a serverless, offline-first, single page progressive web app with VueJS
View GitHub Profile
"backtrace": [
"/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:56:in `method_missing'",
"/var/chef/cache/cookbooks/openerp/recipes/database.rb:30:in `from_file'",
"/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/cookbook_version.rb:578:in `load_recipe'",
"/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe'",
"/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each'",
"/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'",
"/var/chef/cache/cookbooks/openerp/recipes/default.rb:20:in `from_file'",
"/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/cookbook_version.rb:578:in `load_recipe'",
"/usr/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe'",
I build Moneychanger using :
mvn install
I move the jar file to a new directory, containing a ./lib subdirectory.
myself@test:~/programs/Moneychanger$ tree
.
├── lib
│   └── libotapi-java.so
└── MoneyChanger-0.8-SNAPSHOT-jar-with-dependencies.jar
@martinhbramwell
martinhbramwell / OT_build_tricks.txt
Created May 15, 2012 11:01
Build secrets with Open-Transactions
Some req'd packages:
sudo apt-get install libbz2-dev python-dev
Getting the correct openssl
cd openssl
uname -m
./Configure---- then search in list for YOUR_PLATFORM
./Configure shared no-threads YOUR_PLATFORM
yourself@test:~/programs/Moneychanger$ java -Djava.library.path=./lib -jar ./Moneychanger-5fa8aab-SNAPSHOT-jar-with-dependencies.jar
Failed loading the ini file: /home/yourself/.ot/client_data/../client.cfg
OTDB::InitDefaultStorage: Existing storage context doesn't already exist. (Creating it.)
StorageFS::Init: New path segments are: /home/yourself/.ot/client_data
(Make sure to call LoadWallet after this.)
OTCaller::setCallback: Attempting to set the password OTCallback pointer...
OTCaller::setCallback: FYI, the password OTCallback pointer was set.
OT_API_Set_PasswordCallback: FYI, calling OTAsymmetricKey::SetPasswordCaller(theCaller) now... (which is where OT internally sets its pointer to the Java caller object, which must have been passed in as a parameter to this function. This is also where OT either sets its internal 'C'-based password callback to the souped_up version which uses that Java caller object, OR where OT sets its internal callback to NULL--which causes OpenSSL to ask for the passphra
PLEASE SIGN YOUR PASSPHRASE, for: "OTPseudonym::Savex509CertAndPrivateKey is calling PEM_write_bio_PrivateKey..."
(OT) passphrase:
(Verifying) passphrase again:
*** glibc detected *** ot_server: free(): invalid pointer: 0x0000000002787c50 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7958f)[0x7f4f4430158f]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x73)[0x7f4f443053e3]
/usr/local/lib/libcrypto.so.1.0.0(CRYPTO_free+0x1d)[0x7f4f45b9093d]
/usr/local/lib/libcrypto.so.1.0.0(+0x10e050)[0x7f4f45c39050]
/usr/local/lib/libcrypto.so.1.0.0(ASN1_item_free+0x15)[0x7f4f45c39235]
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$
chef@cgf:~$ mkdir -p ~/.ot && sudo make uninstall && make clean && make DSP=1 java && make DSP=1 && sudo make install
:
:
:
@martinhbramwell
martinhbramwell / gist:2719957
Created May 17, 2012 16:19
Debug de ugly buglet
I built with ...
chef@cgf:~/ot/Open-Transactions$ cd ~ && mkdir -p .ot && cd ot/Open-Transactions && sudo make uninstall && make clean && make DSP=1 java && make DSP=1 && sudo make install
... then with ...
chef@cgf:~/ot/Open-Transactions$ make clean && make DSP=1 debug
... then ...
@martinhbramwell
martinhbramwell / gist:2782400
Created May 24, 2012 15:58
smartgit.desktop
yourself@test:~$ cat /usr/share/applications/smartgit.desktop
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Smart Git
Name[en_US]=Smart Git
Icon=/home/yourself/programs/com/syntevo/smartgit/bin/smartgit-128.png
Exec=/home/yourself/programs/com/syntevo/smartgit/bin/smartgit.sh
Comment[en_US]=Syntevo Smart Git
rundeck@cgf:~/otc$ ./stat.ot
Welcome to Open Transactions... Test Client -- version 0.81.d
Server default: tBy5mL14qSQXCJK7Uz3WlTOKRP9M0JZksA3Eg7EnnQ1
MyNym default: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
script filename: ./stat.ot
PLEASE SIGN YOUR PASSPHRASE, for: "OTAsymmetricKey::LoadPrivateKeyFromCertString is calling PEM_read_bio_PrivateKey..."
@martinhbramwell
martinhbramwell / gist:2863025
Created June 3, 2012 10:53
What the client-side shows...
The client machine is a public VPS with domain name -- cgf.justtrade.net
rundeck@cgf:~/otc$
rundeck@cgf:~/otc$ ./time.ot
Welcome to Open Transactions... Test Client -- version 0.81.f
Server default: tBy5mL14qSQXCJK7Uz3WlTOKRP9M0JZksA3Eg7EnnQ1
MyNym default: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV