Skip to content

Instantly share code, notes, and snippets.

View snehitgajjar's full-sized avatar

Snehit Gajjar snehitgajjar

View GitHub Profile
public float[] fibRetracement(float startPrice, float endPrice){
float[] fibPercents = {23.6, 38.2, 61.8, 78.6};
float[] result = new float[fibPercents.length];
for(int i=0; i<fibPercent.length ; i++){
float supportLineDiff = startPrice - endPrice;
result[i] = endPrice + (supportLineDiff * fibPercents)/100;
}
@snehitgajjar
snehitgajjar / ova-to-box.md
Created March 6, 2020 16:04 — forked from aondio/ova-to-box.md
Convert VirtualBox .ova to Vagrant box

Here's a step by step guide to convert a Virtualbox .ova to a Vagrant box.

  1. List your VMs to find the VM id you want to convert:
$ VBoxManage list vms
"testing" {a3f59eed-b9c5-4a5f-9977-187f8eb8c4d4}
  1. You can now package the .ova VM as Vagrant box:
sg045734@C02ZF6ZGLVDQ  ~/Desktop  python test-python.py
--------------------------------------------------------------------------------------------------------------
Ltm::ClientSSL Profile: lng-ln-benefits.relx.com-clientssl
TLS1.0 - 250 0.2640250084488003
TLS1.1 - 138 0.14574180466373776
TLS1.2 - 94300.0 99.59023318688747
Total - 94688.0
--------------------------------------------------------------------------------------------------------------
Ltm::ClientSSL Profile: lng-ln-global.lexisnexis.com-clientssl
ZabbixApi::Basic
.get
calls get_full_data
.add
calls create
.destroy
calls delete
ZabbixApi::Basic
Recipe: sysctl::default
* sysctl[kernel.core_uses_pid] action apply (up to date)
* sysctl[kernel.msgmax] action apply (up to date)
* sysctl[kernel.msgmnb] action apply (up to date)
* sysctl[kernel.panic] action apply
- update kernel.panic
- set value to "10" (was "0")
* directory[/etc/sysctl.d] action create (up to date)
* file[/etc/sysctl.d/99-chef-kernel.panic.conf] action create
- create new file /etc/sysctl.d/99-chef-kernel.panic.conf
* ohai_plugin[lldpd] action create
================================================================================
Error executing action `create` on resource 'ohai_plugin[lldpd]'
================================================================================
NameError
---------
undefined local variable or method `path' for #<#<Class:0x0000000003dbc380>:0x0000000002fc8aa8>
sg045734@M1600382  ~/Desktop/code/knife-ets-release   dev ●  rspec
KnifePlugins::EtsReleaseAnnouncement
#run
calls the correct methods
#setup
jira issue not provided
raises an error
no tags on repo
This file has been truncated, but you can view the full file.
-----> Starting Kitchen (v1.15.0)
-----> Cleaning up any prior instances of <better-chef-rundeck-centos-68>
-----> Destroying <better-chef-rundeck-centos-68>...
Finished destroying <better-chef-rundeck-centos-68> (0m0.00s).
-----> Testing <better-chef-rundeck-centos-68>
-----> Creating <better-chef-rundeck-centos-68>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'bento/centos-6.8'...
Progress: 10%