Skip to content
Advertisement

Setting environment variable to command in a script

I made a bash script. It reads a file contains a list of commands and runs each of them. A list of commands is like below. Each line has a environment variable before command to set same name but different value to commands. A script is like below. I expect: run command1 with ENV_NUMBER=1 run command2 with ENV_NUMBER=2 run command3

Fast byte copy C++11

I need to convert C# app which uses extensively bytes manipulation. An example: Basically BitConverter and Buffer.BlockCopy called 100s times per sec. There are several classes that inherit from the base class above doing more specific tasks. For example: What approach in C++ should I look into? Answer Best option, in my opinion, is to actually go to C –

Error CrushLoopBackOff to start k8s Dashboard

I try to install dashboard to clear private k8s cluster (without internet connection). I did according to this instruction https://github.com/kubernetes/dashboard. When start apply recomended.yaml: metrics scrapper start successfully, but dashboard show error CrashLoopBackOff permanently. Docker Version: 19.03.6 K8s version: 1.23.4 Containers status: Containers log: Worker-node logs from /var/log/syslog: Answer By default, the dashboard container is installed on the worker node.

Can’t compile to .wasm on Linux

Summary (Edit: removed all unnecessary information, added Windows10 experience, upgraded CLANG on Ubuntu to the same version, removed Debian10 due to old CLANG version) I’ve created a pretty simple WASM module, compiled on MacOS, works ✅, compiled on MS-Windows10, works ✅, compiled on Ubuntu21.10: produces 318 bytes of zeros ❌, Details Symptom On Ubuntu21, the linker produces the file with

sqlplus query + loop on linux

I have pratically 0 experience on unix and few on mysql and I am finding hard where to start to complete this task, I have to write a .sh file to launch once a day. I have a table on OracleDb where I have 2 columns I need: path and file_name. Once I get the results, I should loop through

System.Drawing High memory usage on Linux

Is there any way to diagnose Unmanaged memory leak ? I am using .NET 5.0 Console App with NETCode (barcode) library. The program it self is simple it calls barcode library & creates a base64string from Image 5000 times, I am using ‘using blocks’ therefore disposing is also being handled. On windows this program consumes 15-25 MB (doesn’t go above

Advertisement