I am writing a program in QT Creator, for the x86 architecture, using Debian 9 x86. The program will use GNU Readline library [8.0]. Also, my program must be statically built (QT is already statically built). For this I downloaded Readline from here. Then performed the configuration for the static assembly: t…
Tag: linux
SSHpass : to access local variable on remote host
Unable to access local variable on remote host using sshpass. Can you please help me to pass local variable to pass on remote host using ssh pass for the below code snippet expected result: Answer Try this: You need to double quote your command line and right escaping.
How to log the live output of a running process
I want to run a game server inside my Ubuntu machine. I want to run it in the background and write the live output of that process inside a log file. I tried using nohup and running the game server using “&” at the end but I couldn’t make it work the way I wanted. Then I started reading …
How to solve the handshake failure using ssl in python?
I try connect to specific https server: But the python says: I try using TLS1: But says: Have a upgraded ssl in python and operative system: From netcat can connect without problems: What is the problem and how to solve this? Answer From the documentation: Since Python 3.2 and 2.7.9, it is recommended to use …
Is there a way to delete zip archive comments in python?
I have multiple zip archives all with a similar comment. Is there a way to delete the comment from the archives with python and use it over multiple archives with similar comment? What I have tried with single archive This is not working. Comment is not getting deleted in the archive, plus I want this to work…
What’s the best alias for not having to remember the branch I’m in to pull and push?
Extremely lazy here, don’t like to type too much and specially don’t like to remember on which branch I’m in to pull from and push to. Far too often I make the mistake of doing git pull from a non-master branch, or worse do a push and the target branch is incorrect and I’m left with un…
Linux/Shell slicing a large text file
Given File1 File2 I wish to make a method that basically does this So given a uniquename from file1 it will use its key from file2 to get what it’s link to. If it doesn’t find uniquename do nothing. MY ATTEMPT Answer The cut utility was designed for this type of data:
Using Multiple Operating Systems with Ruby and Shell in a Matrix with Travis CI
I’m attempting to create a CI test that executes a test using multiple Ruby versions using rvm on Linux, but I want to execute another test on Windows using the bash shell. I’ve tried a few configurations, but they do not allow me to create or use multiple ruby versions if I have an additional OS …
Loading a TLS certificate uploaded to the Azure portal into a Linux app service container
For some time we’ve had an ASP.NET Core web app running on an Azure App Service. As part of upgrading to netcoreapp2.2 we’ve decided to Dockerize it and run it on a Linux container, still in an app service. One thing this app does is load in a TLS certificate for token signing. Previously this cer…
Failed activation of DJI Matrice 100 Drone
I am trying to run a sample application for the Matrice 100 by using ROS on a raspberry Pi 2.I have the Pi connected to the drone via USB-TTL cable to the UART port on the drone. I have my laptop connected to the drone running DJI Assistant 2, and the controller and my iPhone connected wirelessly to the drone