I am deploying dedicated server made on UNET and when I start server I try to get list of all IPs (both IPv4 and IPv6). My server is deployed on a Linux server on DigitalOcean with IPv6 support enabled, server can be pinged via IPv6 address. When I connect via IPv4 from client to server (from NetworkClient to…
register protocol handler for a transport protocol in Linux kernel
I’m trying to implement the QUIC protocol in the Linux kernel. Since QUIC is working on top of UDP, I’ve been using the UDP code as a learning base. Now I want to register the protocol handler for the QUIC protocol but I don’t understand how and where to do it as I can’t find the relev…
Add id to the downloaded youtube playlist
I’ve downloaded a youtube playlist with youtube-dl is there any way i can rename the files i’ve downloaded to the appended id of the file in playlist. e.g. now xyz.mp4 abc.mkv want 1 – xyz.mp4 2 – abc.mkv (which is according to the number in the youtube playlist) Answer If the files ar…
Segmentation fault while trying to return a pointer to object from a method
g++ throw me ‘segmentation fault’ while I’m trying to return an object of a classB from a method of a classA. I don’t know how to fix this error, if anybody can tell me why this error happens, I would be grateful. So… here is the code: classA.h classA.cpp classB.h classB.cpp main…
apt-get dist-upgrade wants to remove kde desktop [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Can a program leave no traces behind when handling passwords?
There is a script that generates a passwords and stores it in a variable and in a file. Then the password in the variable is used to encrypt another file. That’s it! Now that is not hard to write the hard part is: Can you delete all traces? Because from what I have read the commands in the script (and
ELK stack and web app on different servers, how to feed logs from later to former?
I have a website on digital ocean and on AWS I have ELK – Elastic Search, Kibana, Logstash – stack. I’m trying to understand how feed the logs files from web app to ELK stack. Is it possible to feed them via the internet between different servers? Do you I have to install nginx to be able to…
How do I get screen resolution in a shell script on Linux
Environment System: Linux Mint 18 / 19 Cinnamon 64-bit. Shell: dash (POSIX). Question I need to dynamically account for the screen resolution in a POSIX shell script. I prefer a function for re-use. Answer Function Usage
Using DPDK Kernel NIC Interface in a virtualized environment
I’m going to develop a DPDK Linux application on a laptop, but the laptop’s hardware is not supported by DPDK. Furtunately, DPDK supports paravirtualized devices including QEMU’s virtio-net. So I’m trying to configure a QEMU guest for running the Kernel NIC Interface(KNI) on a virtio-n…
redirecting stdin to tempfile in script
I want to write a bash script that receives a list of files through a pipe, writes a tempfile and then starts a program (qiv – an image viewer) with this tempfile. Example: where piped_qiv would look something like this: I’m probably missing something very basic about bash scripting but I was not …