kubemq dashboard

Install kubemqctl

sudo curl -sL https://get.kubemq.io/install | sudo sh

Install dashboard

kubemqctl cluster dashboard

Get dashboard

kubemqctl get dashboard

Read the docs and enjoy sending messages

https://docs.kubemq.io/getting-started/message-patterns

pretty format in Sublime

Hit ctrl+shift+p to bring up a pop up text field and type “install package control”

Hit ctrl+shift+p and type “package control: install package”, and then type “pretty” and select Pretty JSON

Restart Sublime and execute alt+ctrl+j on the selected text.

React-native with android

First check the following two posts: https://blog.ciprianpascu.ro/2019/07/09/install-node-js-and-npm/ and https://blog.ciprianpascu.ro/2020/02/01/android-studio-on-ubuntu/ after which you should add the following lines into your .bashrc file:

export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

React-native is using gradle behind the scenes. Check it is correctly installed and used by the app by running the following command in app/android folder:

gradle wrapper

Start metro server:

npm run-script start

Run the application

npx react-native run-android

Android studio on Ubuntu

Verify the installation by typing the following command which will print the Java version. If it doesn’t exit, install java 8 or greater:

java -version
sudo apt install openjdk-8-jdk

Check whether KVM is currently installed on Linux. If it doesn’t exist, install it:

$ sudo apt-get install cpu-checker
$ egrep -c '(vmx|svm)' /proc/cpuinfo
12
$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
$ sudo apt install qemu-kvm

Install android studio:

sudo snap install android-studio --classic

Helm to Kubernetes

For cases when helm charts are hard to manipulate, the only solution remains bare kubernetes templates. And bellow is an example of how to do it with artifactory.

# Get the chart
helm fetch jfrog/artifactory

# Generate the Kubernetes template
helm template artifactory-VERSION.tgz > artifactory-template.yaml

# Deploy using the template
kubectl apply -f artifactory-template.yaml

OneDrive on Ubuntu

Onedrive is a CLI-based client that syncs quickly and easily with OneDrive. To install it, please follow the next steps:

1. Open Ubuntu terminal and update all existing packages:

sudo apt update

2. add PPA repository run the command mentioned below:

sudo add-apt-repository ppa:yann1ck/onedrive

3. install onedrive

sudo apt install onedrive

After doing this, you now need to authorize onedrive with Microsoft so it can access your account. Simply enter the following in the Terminal:

onedrive

And it will prompt you to visit the URL to get authorization.

Log in to your OneDrive account, and grant the app permission to access your account.

Once this is done, you will be presented with a blank white page. Copy the URL and paste it into the Terminal at the prompt.

This will complete the setting up. To start synchronizing OneDrive to your local folder, run

onedrive --synchronize
or 
onedrive --monitor

Howto KeyStore

  • Create a self-signed SSL Certificate using OpenSSL. SSL Certificate is a bit of code on your web server that provides security for your online communications. SSL certificate also contains identification information(i.e your organisational information).
openssl genrsa -des3 -out server.key 2048
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
  • Create .pem file => A .pem(Privacy Enhanced Mail) file is a container format that may just include the public certificate or the entire certificate chain (private key, public key, root certificates).
cat server.key > server.pem
cat server.crt >> server.pem
  • Create .pkcs12 file => A PKCS12(Public-Key Cryptography Standards) defines an archive-file format for storing server certificates, intermediate certificate if any and private key into a single encryptable file.
openssl pkcs12 -export -in server.pem -out keystore.pkcs12

Reference https://www.openssl.org/

Reset Windows time

Run a command prompt as administrator and execute the following command:

w32tm /resync

Reverse DNS – email

Setting up reverse DNS on an IP address allows mailbox providers to verify the sender when they do a reverse DNS lookup upon receipt of the emails you send. When you update your DNS provider with a DNS record provided by SMTP relay providers, and then send mail over your IP, the recipient’s email service provider performs a reverse DNS lookup (rDNS) using an A Record (address record). An A Record maps your domain to your IP address. When a mailbox provider looks up your A Record, they see your SMTP relay provider’s IP address. When they look at your IP address, they see the rDNS that match your A Record. This circular checking proves your SMTP relay IP association with your domain and your domain association with your SMTP relay IP.

https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-reverse-dns/