Journal of my recent activities

Moving virtual server instances using openstack.

Create user for openstack

  1. Public cloud > Select project > Settings > Users & Roles
  2. Create
  3. Reset password
  4. Download file RC OpenStack

Setup your machine for access

  1. Install Openstack client brew install openstackclient
  2. Name the file eg. mv openrc.sh ~/bin/ovh-my-project-openrc.sh
  3. Setup connection source ~/bin/ovh-my-project-openrc.sh
  4. openstack server list

Usefull commands Run openstack command to get into client shell. Then you don't need to use openstack command every time.

  • openstack server list
  • openstack image list
  • create image from instance: openstack server image create --name kll-erp-wzr-prod-szk ped-prod
  • download image to local machine: openstack image save --file snap_server1.qcow 825b785d-8a34-40f5-bdcd-0a3c3c350c5a
  • upload image from local machine: openstack image create --disk-format qcow2 --container-format bare --file snap_server1.qcow snap_server1
  • create instance from image: openstack server create --key-name SSHKEY --flavor 98c1e679-5f2c-4069-b4da-4a4f7179b758 --image 0a3f5901-2314-438a-a7af-ae984dcbce5c Server1_from_snap

Openstack

  • https://docs.ovh.com/gb/en/public-cloud/set-openstack-environment-variables/
  • https://docs.ovh.com/pl/public-cloud/przygotowanie_srodowiska_dla_api_openstack/
  • https://docs.ovh.com/pl/public-cloud/przenoszenie_kopii_zapasowych_pomiedzy_centrami_danych/

#soft #linux #vm #ovh

Dark jupyter notebook theme.

$ pip install jupyterthemes
$ jt -t monokai -fs 95 -altp -tfs 11 -nfs 115 -cellw 88% -T

Restore default theme

$ jt -r

#python

Short and really good Quantum Teleportation explained

QTM1x_2018_11-Teleportation-video QTM1x_2018_Feedback_Teleportation-video

Nice and complete art: 4-qubit Grover's algorithm implemented for the ibmqx5 architecture PHILIP STRÖMBERG

#qc

Using Docker for the isolated deployment of the ERP Flask interface.

#erp

Released the MVP for Data drilling for the ERP.

#erp

Euler's identity

( e^{ipi} + 1 = 0),

and quick hints for qunatum gates (eg. T):

( e^{ipi} = -1)

( e^{ rac{ipi}{2}} = i)

( e^{ rac{ipi}{4}} = sqrt(i))

#qc

Enhancing Flask front-end of the ERP system with javascript barcode reader, with double prefix support for automatic form filed recognition.

#erp

Revert the last commit

$ git reset --soft HEAD~1

```

#git