208 lines
9.7 KiB
Plaintext
208 lines
9.7 KiB
Plaintext
TODO: consolidate, delete or retain and move these items into how-to's in rockfish or a new how-to.md doc here in devdocs
|
|
|
|
# Raven solutions
|
|
*Solutions, tools and techniques to accomplish goals from research*
|
|
|
|
|
|
|
|
|
|
## HOW TO SCREENSHOTS in manual pages
|
|
use chrome, zoom in 150% if possible
|
|
Take screenshots as narrow as possible.
|
|
If form is too long just take multiple vertically scrolling with whitespace in between, in manual it just looks like a single image
|
|
|
|
## ASCII ART
|
|
//http://www.patorjk.com/software/taag/#p=display&f=ANSI%20Shadow&t=PM
|
|
|
|
|
|
## How to make a postgres portable from binaries
|
|
download latest binaries: https://www.enterprisedb.com/download-postgresql-binaries
|
|
unzip latest binaries to a source folder
|
|
make a dest folder in c:\data\code\postgres_xx
|
|
copy bin, lib, share folders from source to dest
|
|
Create a new db, run this once:
|
|
c:\data\code\postgres_14\bin\initdb -D ^"C^:^\data^\code^\postgres^_14^\ayanova^" -U postgres -A trust
|
|
that's it, run it with:
|
|
C:\data\code\postgres_14\bin\pg_ctl -D ^"C^:^\data^\code^\postgres^_14^\ayanova^" -l logfile start
|
|
|
|
Note: for test win64 build just copy the empty db files generated above (before any access is done) into the C:\data\code\raven\dist\win-x64\data\database folder
|
|
|
|
|
|
## How to find the postgres data directory
|
|
sudo -u postgres psql -c "show data_directory;"
|
|
|
|
## PSQL to nose around ayanova database
|
|
sudo -u postgres psql
|
|
https://www.postgresqltutorial.com/postgresql-administration/psql-commands/
|
|
|
|
## How fast is ayanova across the internet
|
|
TEST: TEST digitalocean, set up a server in every data center far away from here, test ayanvoa on each one and see how peformant it is perceptually, i.e. does it even matter which server we're locating people on??
|
|
Bangalore - seems almost undetectably the same as sanfran
|
|
todo: test entering data on a work order, open an existing, create etc
|
|
Singapor - excellent speed no appreciable different
|
|
Frankfurt - excellent speed as well
|
|
RESULT: I'd say for AyaNova there is no appreciable different from one data center to the next, the delay just isn't enough to really factor for biz software and it's super efficent in traffic which helps (back pat to me for thinking efficiently in advance)
|
|
|
|
|
|
## How to point a subdomain from an external company's domain to one of our hosted ayanova instances and have it work with letsencrypt etc
|
|
e.g. ayanova.thecompany.com pointing to thecompany.ayanova.com
|
|
|
|
RESEARCH: how to enable a portion of a domain from an outside to point to their droplet, is that on them or on us?
|
|
how does discourse do it?? https://meta.discourse.org/t/configure-your-domain-name-for-hosted-discourse/21827
|
|
SO, I would say it works just like we do with the test servers, they would need to edit their domain record to point a subdomain to us so we would tell them to do that, i.e. they would say
|
|
aya.fouralarm.ca points to [ipaddressofdroplet] or discourse does it by subdomain, they would say point to fouralarm.hosted-by-discourse.com so I wonder if we can do that too,
|
|
Maybe a way to test this out is like this:
|
|
make a droplet, make a domain record gztestco.helloayanova.com that points to that droplet
|
|
then make a cert on the droplet for the original gztestco.helloayanova.com and in nginx, request the cert so this is like the initial trial period or setup.
|
|
Test, confirm gztestco.helloayanova.com is working
|
|
then go to ayanova domain and make a CNAME (CNAME is different and is host pointing to host not to ip address) record aya.ayanova.com and point it to gztestco.helloayanova.com
|
|
Then change nginx config in droplet and ADD aya.ayanova.com and
|
|
then request a new cert with both aya.ayanova.com and gztestco.helloayanova.com and see if it works from both domains.
|
|
** To request a new cert need different command and need to know cert name which is the first domain requested but to confirm use certbot certificates to view the name
|
|
then use the command like this pattern: certbot --nginx --cert-name gztestco.helloayanova.com -d gztestco.helloayanova.com,aya.ayanova.com
|
|
(we would keep both domains in case they have dns issues with their own domain and need access or fuck up the redirect somehow later on)
|
|
THIS works, and this is the pattern for customers where aya.ayanova.com would be their equivalent to their ayanova subdomain
|
|
record they make with their domain registrar or whoever.
|
|
**TESTED, WORKS!: I do have a concern about the nginx cert autorenewal as expanding the domains didn't automatically edit the nginx config file and add the managed by certbot bit for the aya.ayanova.com domain
|
|
|
|
|
|
## How to make test sales and product links in ShareIt
|
|
|
|
fake sale of v8 to get license emails to update rockfish to auto read in the deets
|
|
FAKE CREDIT CARD
|
|
I have generated a test credit card number for your account. Please use the following as the credit card number making sure to use the word test and the 12 digit number with no spaces.
|
|
You can use any valid information you would like for the other fields.
|
|
test134661442658
|
|
Expiration Date: any date in the future
|
|
CVS code: 123
|
|
Example typical database ID:
|
|
tZy9aSHjacFf9a9v3EtzUqM1amq/eMvJa2nXswLle74=
|
|
Links to purchase
|
|
$50 customization charge https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B300525428%5D=1
|
|
Use this for custom report work minimum $50 for small changes
|
|
|
|
subscription month to month https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B301028467%5D=1
|
|
subscription yearly https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B301028468%5D=1
|
|
Perpetual single license: https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B301028314%5D=1
|
|
*** TESTING THIS ONE FIRST Perpetual single one year maintenance ACTIVE DISCOUNT PRICE: https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B301028315%5D=1
|
|
Perpetual single one year maintenance NEW FULL PRICE: https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B301028317%5D=1
|
|
v7 single for comparison 300740315 https://order.mycommerce.com/cart/new?vendorid=14466&PRODUCT%5B300740315%5D=1
|
|
Address to use for testing
|
|
05-3610 Christie Parkway Courtenay B.C. Canada V9J 9T6
|
|
|
|
|
|
{
|
|
"creation_date": "2022-08-29T00:37:59Z",
|
|
"id": 349316690,
|
|
"order_notification": {
|
|
"purchase": {
|
|
"customer_data": {
|
|
"billing_contact": {
|
|
"address": {
|
|
"city": "Courtenay",
|
|
"country": "Canada",
|
|
"country_id": "CA",
|
|
"postal_code": "V9J 9T6",
|
|
"state": "British Columbia",
|
|
"state_id": "BC",
|
|
"street1": "05-3610 Christie Parkway"
|
|
},
|
|
"company": "GZ TestCo",
|
|
"email": "gzmailadmin@gmail.com",
|
|
"first_name": "Test",
|
|
"last_name": "Testerson"
|
|
},
|
|
"customer_payment_data": {
|
|
"currency": "CAD",
|
|
"payment_method": "Other"
|
|
},
|
|
"delivery_contact": {
|
|
"address": {
|
|
"city": "Courtenay",
|
|
"country": "Canada",
|
|
"country_id": "CA",
|
|
"postal_code": "V9J 9T6",
|
|
"state": "British Columbia",
|
|
"state_id": "BC",
|
|
"street1": "05-3610 Christie Parkway"
|
|
},
|
|
"company": "GZ TestCo",
|
|
"email": "gzmailadmin@gmail.com",
|
|
"first_name": "Test",
|
|
"last_name": "Testerson"
|
|
},
|
|
"language": "English",
|
|
"language_iso": "en",
|
|
"reg_name": "GZ TestCo",
|
|
"shopper_id": "64475647",
|
|
"subscribe_newsletter": false,
|
|
"user_id": "gzmailadmin@gmail.com-32"
|
|
},
|
|
"is_test": true,
|
|
"payment_complete_date": "2022-08-29T00:37:59Z",
|
|
"payment_status": "testpaymentarrived",
|
|
"payment_status_id": "TCA",
|
|
"purchase_date": "2022-08-29T00:37:59Z",
|
|
"purchase_id": 813793143,
|
|
"purchase_item": [
|
|
{
|
|
"additional_information": [
|
|
{
|
|
"additional_id": "AGGREENOREFUNDS",
|
|
"additional_value": "YES"
|
|
},
|
|
{
|
|
"additional_id": "AGREEPAYMETHODVALIDCANCEL",
|
|
"additional_value": "YES"
|
|
},
|
|
{
|
|
"additional_id": "AGREEEXPIRESIFNOTPAID",
|
|
"additional_value": "YES"
|
|
},
|
|
{
|
|
"additional_id": "DATABASEID",
|
|
"additional_value": "tZy9aSHjacFf9a9v3EtzUqM1amq/eMvJa2nXswLle74="
|
|
}
|
|
],
|
|
"currency": "USD",
|
|
"delivery_type": "Electronically",
|
|
"discount": 0.0,
|
|
"extended_download_price": 0.0,
|
|
"manual_order_price": 0.0,
|
|
"notification_no": 0,
|
|
"product_id": 301028315,
|
|
"product_name": "Single AyaNova service technician 1 year maintenance plan - active",
|
|
"product_single_price": 100.0,
|
|
"purchase_item_key": [],
|
|
"quantity": 5,
|
|
"running_no": 1,
|
|
"shipping_price": 0.0,
|
|
"shipping_vat_pct": 0.0,
|
|
"subscription": {
|
|
"expiration_date": "2023-08-29T00:37:59Z",
|
|
"id": "813793143-1",
|
|
"interval": "Yearly without end",
|
|
"renewal_discount_count": "",
|
|
"renewal_discount_start": "",
|
|
"renewal_type": "auto",
|
|
"retention_discount_count": "",
|
|
"retention_discount_percent": "",
|
|
"start_date": "2022-08-29T00:00:00",
|
|
"status": "ToProcess",
|
|
"status_id": "TOP"
|
|
},
|
|
"vat_pct": 12.0,
|
|
"your_product_id": "maintenanceplanactive"
|
|
}
|
|
],
|
|
"purchase_origin": "online"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
## How to make custom ubuntu images with digitalocean
|
|
|
|
https://www.digitalocean.com/community/tutorials/how-to-create-a-digitalocean-droplet-from-an-ubuntu-iso-format-image
|
|
|
|
This seems to be the only practical way to create a new droplet that has a separate data partition |