I wrote a Python script on my laptop(written in 2.7.14) which makes use of paramiko module. It runs just fine on my laptop. I moved this script to a linux box & while running it, I get an error saying paraniko not found which is of course because the linux machine where I moved the script to doesn’t…
Tag: linux
How to Expand OS disk on a Linux VM using Cloud Shell?
I have a little problem with a production Classic VM. I reached the maximum capacity of the disk, and I need to expand it. So I tried: then the result: I don’t understand why there is no VM in the resource group, so I tried to list what is in the resource group^ and the result: So I have a
AWS NFS mount needs to be moved to AZure
read this mount -t nfs vs cifs already 🙁 ? Our requirement is that we have an application hosted in AWS using nfs-utils to mount a EFS for use ? My question is how can this be done in Azure. I know they have Azure files which works in quite similar way to EFS but as per azure documentation it
How the parent is restored after vfork()
As vfork creates the child process in the same address space as that of the parent, and when execv() is called on the child then how is the parent process restored, as exec loads the file and runs it in the same address space of the parent and hence the child? Answer When execv follows a true vfork, it does
A script wrapper that turns SIGINT into SIGHUP
I use Leiningen REPL that uses SIGINT to interrupt currently running code and to output a new prompt. The REPL can be stopped using SIGHUP or SIGKILL. I don’t actually run anything in the REPL – I just use it for some pre-defined side-effects. The problem is that IntelliJ IDEA can only send SIGINT…
weird issue with time function in C
I’m trying to get my Beaglebone Green to read an input from a certain pin, and when that pin sees a 1 to 0 transition (defined in pulse()), then it should set a timer. I want to make my timer like this: In idle, the timer is set to a TIMER_HOLD value (900000) To start the timer, I set it
Will process’s RES memory drop after memory freed?
I have a process which continuously allocates memory and will free it after another thread have processed related data. When the data processing rate is slow, I see RES memory grows up; but after all the data have been processed, RES goes down but doesn’t go back to original RES value (even after waitin…
Linking shared objects at runtime depending on user configuration
TL;DR I have a library I want to use in my program which comes in two different versions. Both versions provide the same interface but differ in options used to compile them. I now want to use a specific version of the library, however, since both versions are suitable for different tasks and the user should …
How to compile opencv with gtk 2.x rather than gtk3.x
I’m using tensorflow 1.4 & qt in ubuntu 16.04. The problem is when I include tensorflow(version: 1.4) and opencv (version: 3.2.0) simultaneously, protobuf is conflicted. The error msg is as follows: [libprotobuf FATAL external/protobuf_archive/src/google/protobuf/stubs/common.cc:79] This program was…
New to bash scripting – want to have a code block execute many times via reference
I am totally new to bash scripting. I am wondering if there’s a way that I can create a reference for the following code block: Is there a way I can give this block of code a reference point and execute it using the reference several times throughout the rest of the script? Would it be easier/better to …