the below script is to unzip zip file and rename extaracted subtitles names according to tv show episodes names. and then convert them to utf-8. here is the problem: I want to run this script in a linux os and inside any tv show folder i want.but I want the path in fixing function to be detected from the fold…
How to read a variable from file, modify and safe it to an other variale
What I want: There is a file /scripts/backup/config.cfg which contains variables. In my specific case the important ones are: Then there is a script /scripts/backup/performBackup.sh For a specific reason I want a part of the script do the following operations: read the value of the variable ROOTLOCATION add a…
How to open port 80 for node server on local machine?
How can I use the port 80 on my local Linux machine as the port of my node server? The netstat command netstat -ptuln says the following about this port, while the node server is running: I found on this site some recommendations for the command sudo iptables -I INPUT -p tcp -m tcp –dport 80 -j ACCEPT. …
Cannot open Spyder in Anaconda Navigator in Linux Mint 18.2 Cinnamon 64-bit
I installed and updated Anaconda. I opened Anaconda Navigator, and I clicked the “Launch” button for Spyder 4.1.2. I got this error message. How do I fix this? Answer After A LOT of searching on Google, I found a solution. https://github.com/spyder-ide/spyder/issues/12557 I ran the code This worke…
Retrieve secrets from AWS Secrets Manager
I have a bunch of secrets (key/value) pairs stored in AWS Secrets Manager. I tried to parse the secrets using jq as: It retrieves the value stored in .PASSWORD, but the problem is I not only want to retrieve the value stored in key but also want to retrieve the key/value in the following manner: By running th…
Standard C library linker issues while compiling and linking using ARM Compiler 6
I am facing some linker issues in ARM DS IDE, i am trying build code for ARMVv-8 architecture, Cortex A72 processor with ARM Compiler 6. I think those error are related to standard libraries like stdio.h ,math.h these errors should not come as linker always looks for standard libraries paths on Linux machine.…
How to use OpenSSL for self-signed certificates with custom CA and proper SAN settings?
I run across this topic once in a while, trying to remember how this was done then find all the incomplete answers again (with config files, oneliners,ignoring that we really want to use a custom CA to create a full certificate chain etc.). And many answers applying SAN for the certificate request, but messin…
c++ Windows debug performance is very slow vs linux
I have a Cmake OpenCV project. If I execute the same project under Windows in the debug configuration is the performance very bad and I place zero breakpoints. In the release modus, I get the same performance as on Linux. Why is the performance better on Linux than on Windows? Can I fix the performance issue …
Create python script to run terminal command with source
Long story short, I’m trying to figure out a way to turn these command lines into a script or function in python that can be called by another python application. These are the command lines in Linux: At first I was like this will be easy its just launching the application in python – but I’…
Recursively replace linux file and folder names such as “%m-%d-%y.tar” with their actual creation month/day/year
I’m looking for something like this but with its original creation date instead of the current date. Example: This folder (output below is from Linux command ls -ltr) would have its file name changed to “04-26-20”. Answer Since there are some information missing I try to make assumptions and…