Install Cockpit

apt get install cockpit cockpit-docker cockpit-packagekit cockpit-pcp cockpit-docker: manage docker containers cockpit-packagekit: manage system packages cockpit-pcp: collect and store metrics…

Android remote debug

Connect the device via USB and make sure debugging is working; adb tcpip 5555. This makes the device to start listening for connections on port 5555; Look up the device IP address with adb shell netcfg or adb shell ifconfig with 6.0 and higher; You can disconnect the USB…

Float: right in React Native

[Src: https://stackoverflow.com/questions/32030050/how-can-you-float-right-in-react-native] Use textAlign: 'right' on the Text element <Text style={{textAlign: 'right'}}>Hello, World! </View Use alignSelf: 'flex-end' on the Text <Text style={{alignSelf: 'flex-end'}}>Hello, World! Use alignItems: 'flex-end' on the View <View style={{alignItems: 'flex-end'}}>…

How to deploy Total Tour App: Back Part

Switch to master branch git checkout master Login to Docker Hub (First time) docker login Build docker images sudo docker build . -t bkinno/total_back:latest sudo docker push bkinno/total_back Go to portainer.kudosvn.com deploy stack…

How to deploy Total Tour App: Front Part

Switch to master branch git checkout master Check HOST_URL app\src\settings.js file cat settings.js Edit app\package.json file: { "name": "app", "version": "0.1.0", "private": true, "dependencies": { "axios": "^0.18.…