Latest posts

Browse topics

Pullman Tbilisi Axis Tower Gym and Pool

Pullman Tbilisi Axis Towers Wellness Center is located in Vake (37M Ilia Chavchavadze Avenue) on the 6th floor at Axis Tower. It has a 25 meters heated indoor pool with a retractable roof, sauna, steam room, gym (more like a fitness), spa treatment rooms, and a lounge.

We booked an unlimited membership here for one month in November 2022 (paying GEL 600 each, kids go free) with unlimited access to the gym pool and sauna facilities.

Kids (pre-schoolers) going free was the selling moment for us - as I believe this is a great family deal, spend about GEL 1,200/mo but gain access to a gym, and swimming pool - a good and healthy way to spend the winter months in Tbilisi.

My favorite gym for years has been and still is the Champions Academy on Aghmanashebeli avenue. In fact, during the month of November, I visited both gyms, sometimes both on the same day. lol

Treadmills at Axis Tower

Kind of brand new and equipped with the latest soft, built by Techn0Gym but still I'm not very enthusiastic about the Technogym brand. Don't get me wrong. They do the job, just are not very sturdy. If comparing gym equipment at Champions Academy - it feels much better over there. It seems I just prefer the Freemotion brand over Technogym. Though the software-equipped treadmills are fun and the soft can actually help with setting up your training cycle. 

Author of this blog captured in Action

During the past few months, I have dropped about 17kg -  intermittent fasting, plus daily gym going and medium workouts with dumbells and more.

Dumbells at Axis Tower

The gym is decent - it has most of the important equipment to work out both with the upper and lower body.

Most of the machines seem are again from Technogym. As this is not my favorite brand, I'm not 100% happy with them, but again, they do their work - and the rest is up to you. Some can train in a meadow by just throwing rocks. So to be on the objective side - the gym is very decent. 

Heated indoor swimming pool at Axis Tower

I believe the selling element for this wellness center is the swimming pool, two hot pools, saunas, and great cappuccino from the restaurant.

We also got happy by hiring a 7-time Georgian champion in butterfly swimming to teach our 4-year-old daughter swimming here (12 lessons GEL 550 as in 2022)

I guess this place is rocking also in Summer, with outdoor sun decks that could be an awesome place to chill in Tbilisi. 

How To Create Custom Token on Solana Blockchain without Coding - Part 1

It has been already several years since I have been originally thinking of launching a custom crypto token.

For most of the time, I was thinking about issuing smart contracts on the Ethereum network. Probably a high price for minting on the ETH network and the additional learning curve kept me back most of the time and I never actually proceeded with my idea.

Back in spring 2022 again I returned to the idea of issuing custom tokens, for Batumi Real estate crypto investment, I even launched a pre-sale token, but at the end attracted anchor investor who was more interested to make this deal in a more classical, FIAT way, now we are coinvesting in Tbilisi with cash, see: Ecocity Samgori, Tbilisi

Im still looking to put this real estate on blochchanin, but besides real estate I also trade options with crypto on deribit platform and I thought that I could issue a "crypto fund" token, for attracting investment for covered call trades.

With past several month beeing involved in Solana trading, I learnt more and more about this coin and network, and decided to try Solana network over Etherum (lower price and seems easier to implement). So I come up with idea to create a crypto fund for selling covered calls and decided to launch this crypto fund on Solana network. See: Raising $10,000 capital for issuing Covered Call Crypto Fund (Solana blockchain)

In the remaining article I'll share some notes how I launched (minted) custom token on DexLab (Solana Blockchain) in less than 5 minutes without any coding:

withour further ado:

Things you will need: Phantom wallet, some SOL deposited on it, custom icon for your token

Head to https://www.dexlab.space/mintinglab/spl-token, where all magic is done

Choose: Token Minting

Minting Custom token on DexLab

Basically thats it's  - from this single page you can make your next multibillion token

Name: Give your token a name. TerraMatris

Symbol: Chose something catchy. TerraM

Description: 

Upload to Symol image URL or IPFS: 

Press: Upload Metadata (IPFS)

make sure your wallet is connected and you have enough SOL to cover the network fees

Once done, move on to the Create Token

here you can fine tune some settings, like how many coins there will be in supply, how many decimals e.t.c.

Complete. You will be asked to pay some additonal network fee, but you are done. Congrats you just issued a custom token on Solana network. 

TerraM coin

Now, next steps are to list this coin on decentrelized exchange and start trading. But that's already another topic, with whom I will come soon.

Hope it helps!

Raising $10,000 capital for issuing Covered Call Crypto Fund (Solana blockchain)

I'm raising $10,000 for the covered call crypto fund.

For the past several years I've been trading and investing in crypto with mixed success. I've made my gains and taken my losses.  Covered Calls with crypto have been one of the hardest to learn -and I'm still learning.

Over the years I've realized - making money in a growing market isn't hard - preserving and growing in a bear market is much harder. But possible.

Hedging with futures makes it possible. At some point, it can get tricky, but with the right mindset and some expertise, it can be achieved.

Despite, the time has proved that dollar cost averaging investing is one of the best investment approaches when investing with crypto (and most of the other kinds of assets), I have decided to proceed with an idea that has been in my head for the past few years - launching a crypto fund, where myself will be the biggest investor for some time at least. 

Here is the plan

Issue a token, with 10,000 coins, each coin worth $1. From the dollar acquired buy Ethereum and sell covered calls on each position. Additionally hedging each position by short-selling Ethereum perpetual futures on the Deribit platform.

At the moment I plan to invest $1,500 in hard cash myself in the newly released token to start trading and growing the crypto fund. 8,500 coins will be available for investment

Strategy

The crypto fund invests in a portfolio of equity securities and writes (sells) call options on those securities. Under normal circumstances, the fund writes (sells) call options on at least 70% of the fund's total assets. The fund normally writes (sells) covered call options listed on the Deribit trading platform to seek to lower the overall volatility of the fund's portfolio, protect the fund from market declines, and generate income.

Risk

The fund can invest in securities that may have a leveraging effect (such as derivatives and forward-settling securities) that may increase market exposure, magnify investment risks, and cause losses to be realized more quickly. Crypto markets are volatile and can decline significantly in response to adverse issuer, political, regulatory, market, economic or other developments. These risks may be magnified in foreign markets. Not suitable for all investors. 

Technicals

  • There will be issued 10,000 tokens
  • Each tokens base value is $1
  • From the funds raised sell Covered calls on Ethereum coin
  • The portfolio is rebalanced once per month (on the last day of trading)
  • Max investment per investor $1,000
  • Buyback with 5% premium from June 2023
  • While in the acquisition phase, profit is distributed in form of new tokens
  • Once fully invested, profit is distributed in the growth of the coin

Example trade with covered calls on Ethereum

On December 12, 2022, we would buy 1 Ethereum coin on Coinbase paying $1,246 per coin, simultaneously, on the deribit platform we would sell 1 call option with a December 30, 2022 expiry and strike price of $1,300 for this trade receiving 0.0425 ETH / $52.92 premium.

Ethereum Option chain

Here are a few possible scenarios of what could happen next:

On the expiry date, December 30, 2022, ETH is trading under $1,300 per coin -  options expire worthlessly and we keep the premium and start over. In this case, our crypto fund grew by $52.92 and this money  would be split among investors in form of the tokens (until 10,000 are reached)

if ETH trades above $1,300 on the expiry date, we are obliged to pay the difference in crypto. Say ETH trades $1,400 on expiry, we need to pay the difference between the spot price and strike price, which is $100, or 0.0769 ETH if converted back to crypto

We would be left with 1+0.0520-0.0769 = 0.9751 ETH  

But as the ETH price actually increased from $1,271 to $1,400, our ETH holding value would equal $1,365.14 (0.9751*1400) or we still would make +$94.14

In case ETH trades $2,000 on expiry and our strike price is $1,300 we need to pay the difference between the spot price and strike price, which is $700, or 0.5384 ETH if converted back to crypto

We would be left with 1+0.0520-0.5384 = 0.5136 ETH  

Ouch, doesn't look good at all. 

Now as the ETH price actually increased from $1,271 to $2,000, our ETH holding value would equal $1,076.8 (2000*0.5384), despite the rally in price, we would actually lose -$192.4  Ouch, that hurts now! Though highly unlikely, I still have seen this happens several times in the past. 

But what to do?

Hedging with futures might mitigate the risk.

For example, we could enter a long trade with ETH futures if the price of $1,300 is touched. In such a case if the strike price reaches $1,400. we will actually make 0.0769 ETH in the long future. The long future will compensate for the loss from the short call.

We would be left with 1+0.0520-0.0769+0.0769 = 1.0520 ETH  or $1,472.8

Now, let's look at what happens if the price reaches $2,000 and we hedge with a long future at $1,300.

In such a case if the spot price reaches $2,000 we will actually make 0.5384 ETH in the long future. The long future will compensate for the loss from the short call.

You would be left with 1+0.0520-0.5384+0.5384 = 1.052 ETH  or $2,104

Entering with long futures even when set automatically to execute at the market price is not guaranteed

In theory - this is a zero-risk trade, in practice - it will ask very reliable execution plan if the $1,300 gets challenged.

Depending on the success or failures, I might proceed with a larger, say $100,000 or $1M fund in the future.

To sum it up

I'm launching a small crypto fund to grow and preserve capital with covered calls and futures. Total investment available $8,500 (max $1000 per investor)

In the coming days/weeks - I will issue a custom token, most probably on the Solana network, it's planned that it will be available for trading in USDC or USDT pair - at the moment I'm offering also direct ETH or Wire transfers in EU or Georgia for acquiring this token. To give everybody a chance - a $1,000 maximum investment per investor is considered at the moment.

Updates about the crypto fund performance will come via the Terramatris website, my blog and Twitter.

Contact me if you are interested via the blog's contact form, Linkedin or Twitter

How to Install Drupal 9 with Nginx, PHP-FPM 8.1, MySQL, phpMyAdmin on Ubuntu 22.04 - Linode Guide

In this article, you will learn how to set up a webserver for serving Drupal websites running with Nginx, PHP-FPM 8.1, MySQL, and phpMyAdmin on Ubuntu 22.04

For the following tutorial, I used very much the information from my previous guide with Ubuntu 18.04, but I decided to rewrite it for Ubuntu 22.04 version as it is shipped with php8.1 version and will work with Drupal 9 (most probably with previous versions too)

Prerequisites

  • Ubuntu 22.04 
  • Root privileges.

You can get a cheap VPS starting just $5/mo from Linode. That's what I did - bought a new nanode from Linode

Literally, in a couple of seconds, the new server was up and running - that's what I love about sticking with Linode for years

Follow the basic security guide, see: Securing Your Server

I will use Terminal from MAC to access  over SSH (Windows users could use Putty)

Secure your server

Create the user, replacing example_user with your desired username. You’ll then be asked to assign the user a password:

adduser example_user

Add the user to the sudo group so you’ll have administrative privileges:

adduser example_user sudo

Disallow root logins over SSH. This requires all SSH connections to be by non-root users. Once a limited user account is connected, administrative privileges are accessible either by using sudo or changing to a root shell using su -.

sudo nano /etc/ssh/sshd_config

Under # Authetification section change to

# Authentication: ...

PermitRootLogin no

Update the Ubuntu system

sudo apt-get update

Install Nginx and PHP-FPM

Install Nginx with the following apt command:

sudo apt-get install nginx -y

Next, install php8.1-fpm with php-gd extension that is required by Drupal core:

sudo apt-get install php8.1-fpm php8.1-cli php8.1-gd php8.1-mysql php8.1-xml -y

Configure Nginx and PHP-FPM

In this step, we will configure Nginx to use php-fpm to serve HTTP requests for PHP pages. Go to the php-fpm directory "/etc/php/8.1/fpm" and edit the "php.ini" file:

sudo nano /etc/php/8.1/fpm/php.ini

Un-comment the cgi.fix_pathinfo line and change the value to "0"

When using nano command you can use CTRL+W to locate that line. Once changed press CTRL+O to save changes and CTRL+X to exit from nano editor

Now we should modify the default Nginx virtual host configuration. Edit the "default" file and enable the php-fpm directive.

sudo nano /etc/nginx/sites-available/default

Un-comment  location ~ \.php$ section, so it look like this

location ~ \.php$ {
include snippets/fastcgi-php.conf;
# With php7.4-cgi alone:
#fastcgi_pass 127.0.0.1:9000;
# With php7.4-fpm:
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}

CTRL+O and CTRL+X

Then test the Nginx configuration with the command "nginx -t" to ensure that it is valid:

nginx -t

If there is no error, restart nginx and the php-fpm service:

systemctl restart nginx
systemctl restart php8.1-fpm

PHP Info file (Optional)

Next, test that php-fpm is working properly with Nginx by creating new PHP info file in the web directory "/var/www/html"

cd /var/www/html/
echo "<?php phpinfo(); ?>" > info.php

Visit the info.php file at the server IP  in a web browser.

Configure the VirtualHost for Drupal

We will install Drupal 9 in the directory "/srv/www/reinisfischer.com". Please replace my domain name in your installation with the domain name of the website that you want to use this Drupal installation for. So let's create the directory:

sudo mkdir -p /srv/www/reinisfischer.com/{public_html,logs}
sudo usermod -a -G www-data admin
sudo chown -R www-data:www-data /srv/www
sudo chmod -R 775 /srv/www
sudo nano /etc/nginx/sites-available/reinisfischer.com

Paste the Nginx configuration for Drupal 9:

server {
    server_name reinisfischer.com;
    root /srv/www/reinisfischer.com/public_html; ## <-- Your only path $
    access_log /srv/www/reinisfischer.com/logs/access.log;
    error_log /srv/www/reinisfischer.com/logs/error.log;

    listen 80;
    listen [::]:80;


    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    # Very rarely should these ever be accessed outside of your lan
    location ~* \.(txt|log)$ {
        allow 192.168.0.0/16;
        deny all;
    }

    location ~ \..*/.*\.php$ {
        return 403;
    }

    location ~ ^/sites/.*/private/ {
        return 403;
    }

    # Block access to "hidden" files and directories whose names begin with a
    # period. This includes directories used by version control systems such
    # as Subversion or Git to store control files.
    location ~ (^|/)\. {
        return 403;
    }

    location / {
        # try_files $uri @rewrite; # For Drupal <= 6
        try_files $uri /index.php?$query_string; # For Drupal >= 7
    }

    location @rewrite {
        rewrite ^/(.*)$ /index.php?q=$1;
    }

    # In Drupal 8, we must also match new paths where the '.php' appears in the middle,
    # such as update.php/selection. The rule we use is strict, and only allows this pattern
    # with the update.php front controller.  This allows legacy path aliases in the form of
    # blog/index.php/legacy-path to continue to route to Drupal nodes. If you do not have
    # any paths like that, then you might prefer to use a laxer rule, such as:
    #   location ~ \.php(/|$) {
    # The laxer rule will continue to work if Drupal uses this new URL pattern with front
    # controllers other than update.php in a future release.
    location ~ '\.php$|^/update.php' {
        fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
        #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
        include fastcgi_params;
        include snippets/fastcgi-php.conf;
        fastcgi_param SCRIPT_FILENAME $request_filename;
        fastcgi_intercept_errors on;
        fastcgi_pass unix:/run/php/php8.1-fpm.sock;
    }

    # Fighting with Styles? This little gem is amazing.
    # location ~ ^/sites/.*/files/imagecache/ { # For Drupal <= 6
    location ~ ^/sites/.*/files/styles/ { # For Drpal >= 7
        try_files $uri @rewrite;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
        expires max;
        log_not_found off;
    }
}

CTRL+O and CTRL + X

The Drupal virtual host file has been created, now we have to activate it by creating a symlink to the file in the "sites-enabled" directory:

ln -s /etc/nginx/sites-available/0dtespxtrading.com /etc/nginx/sites-enabled/

Test the Nginx configuration and if there are no errors restart Nginx:

nginx -t
systemctl restart nginx

 

Install MySQL

sudo apt-get install mysql-server
​sudo mysql_secure_installation

Warning: As of July 2022, an error will occur when you run the mysql_secure_installation script without some further configuration. The reason is that this script will attempt to set a password for the installation’s root MySQL account but, by default on Ubuntu installations, this account is not configured to connect using a password.

See: How To Install MySQL on Ubuntu 20.04 for mysql_secure_installation fix

Prior to July 2022, this script would silently fail after attempting to set the root account password and continue on with the rest of the prompts. However, as of this writing, the script will return the following error after you enter and confirm a password:

Output

... Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL server. Please consider using ALTER USER instead if you want to change authentication parameters. New password:

This will lead the script into a recursive loop which you can only get out of by closing your terminal window.

Because the mysql_secure_installation script performs a number of other actions that are useful for keeping your MySQL installation secure, it’s still recommended that you run it before you begin using MySQL to manage your data. To avoid entering this recursive loop, though, you’ll need to first adjust how your root MySQL user authenticates.

First, open up the MySQL prompt:


 
  1. sudo mysql

Then run the following ALTER USER command to change the root user’s authentication method to one that uses a password. The following example changes the authentication method to mysql_native_password:

  1. ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

After making this change, exit the MySQL prompt:

  1. exit

Following that, you can run the mysql_secure_installation script without issue.

Install phpMyAdmin

sudo apt-get install phpmyadmin

Hit ESC when the installation prompts you for auto-configuration because there is no option for Nginx.

Make an easily accessible symlink

sudo ln -s /usr/share/phpmyadmin/ /srv/www/0dtespxtrading.com/public_html/phpmyadmin

Install and Configure Drupal

Enter the directory that we created earlier and download Drupal with wget. I'm using the latest Drupal 9.48. release as of December 2, 2022, make sure you are downloading the latest version by visiting the Drupal download page and writing down the last numbers (version)

cd /srv/www/reinisfischer.com
sudo wget https://ftp.drupal.org/files/projects/drupal-9.4.8.tar.gz
sudo tar -xvzf drupal-9.4.8.tar.gz
sudo cp drupal-9.4.8/* public_html/ -R
sudo chown www-data:www-data public_html -R

Now visit your Drupal site in the web Browser, you should see the similiar screen

Drupal 9 installation screen

Now, using phpmyadmin login into MySQL and setup database

Optional: How to edit hosts file on Mac

from the terminal 

sudo nano /etc/hosts

add your IP adress pointing to the domain name to test before DNS zone get updated

How To Gain Access to Linode over Finnix SSH in Rescue Mode

In this article, I will keep some notes on how I accessed an "inaccessible" Linode over SSH using Rescue mode.

Brief background: More than 10 years ago (in 2012) I did set up a virtual server for XTRF translation management software, back then I choose freshly released Debian 6 (which reached its end of Life back in February 2016).  

Back in the day, XTRF was not a big name, and most of the help support was done over some simple MS Word documents. I followed the tutorial and set and forget the server for years to come. 
 

At the end of 2018, the server just stopped working - after several unsuccessful attempts to reanimate it I just gave up, as the newer and better versions of XTRF were released. We decided to continue with the newer version, and keep the old version in the backups, just in case someday we will need something out of it. 

How To Install XTRF 8 on Ubuntu 18.04

Fast forward to the end of 2022 - and this day came - I was looking for ways how to minimize our monthly payment on Linode and noticed we have a few unactive instances for whom we are paying money, which we could not.

One such instance was the failed server and backup. Now I decided to remove it completely from our Linode list and save about $30/mo, but before that decided to copy locally all the files and folders (there still could be some important information, like some unpaid invoices e.t.c)

Unfortunately, I was not able to connect to the server over FTP or SSH, I was able to get in from the Linode Lish control, but not using WinSCP or Filezilla. I checked the ports - nothing, dead. The server running the translation management system was built on JBoss application, which most probably was messing around with ssh, FTP, and failing ports. 

I spent a good afternoon and a morning to finally get it working, and the solution is quite simple, read the full guide here: Rescue and Rebuild

Connecting to a Linode Running in Rescue Mode
By default, Rescue Mode’s Finnix environment does not accept SSH connections. To access the Linode when it’s running in Rescue Mode, connect to it through the Lish console.

Set the root password for the Finnix rescue environment by entering the following command:

passwd

Enter the new password for the root user.

Start the SSH server:

service ssh start

You can now connect to the server as root with the SSH client on a local computer. You can also access mounted disks with an SFTP client:

Mounting Disks

Create a new directory for your disk:

mkdir -p /media/sda

Mount the disk to make its contents available at the /media/sda directory:

mount -o barrier=0 /dev/sda /media/sda

that's it, now you should be able to conenct to your Linode over ssh. Hope it helps!