Skip to content

Getting 32 bit Centos docker image

I was trying to run 32 bit Centos in container: Inside container I run command uname-a in order to know it is 32 bit. Got output: According to my understanding it is 64 bit version and not expected 32 bit one? What I do wrong while getting 32 bit Centos? Answer Containers share kernel with the host system. Th…

Linux split a file in two columns

I have the following file that contains 2 columns : How is possible to split the file in 2 other files, each column in a file like this: File1 File2 Answer Perl 1-liner using (abusing) the fact that print goes to STDOUT, i.e. file descriptor 1, and warn goes to STDERR, i.e. file descriptor 2: You could, of co…

Are BIGNUM BN_ functions deprecated in openssl 1.1?

I was compiling some ‘C’ code that uses openssl under Fedora 27 (version 1.1.0g-1). I made some needed changes (from the 1.0.2 version of my code) and things now compile o.k. again. I then tried to compile with the option “OPENSSL_API_COMPAT=0x10100000L” which I understand causes the c…

Nginx returns 404 not found when access file on server

I have a server(Ubuntu 16.04) and a user called coxier. I configure Nginx to Proxy Requests. I create a file etc/nginx/sites-available/myproject. In this flask project, server receive request and then generate a .gif file for this request. At first I directly I use flask#send_file to send gif file about 1MB, …