How to force older debian to forget about DST Root CA X3 Expiration and use ISRG Root X1 – SSL certificate problem: certificate has expired

disclaimer; I’m no security expert (I know things, but you do you). Make sure you understand what you do before applying whatever fix shared here Fix by upgrading your instances Upgrade your instances. This problem won’t happen on debian 9 or higher. In the following example, I had this problem on a ruby:2.4.1 docker image … Read more

Where to get iostream.h

The correct name of this standard header is just iostream without an extension. If your compiler still cannot find it, try the following: find /usr/include -name iostream -type f -print …and add it to your include path, following your compiler’s documentation.

Call Python script from bash with argument

To execute a python script in a bash script you need to call the same command that you would within a terminal. For instance > python python_script.py var1 var2 To access these variables within python you will need import sys print(sys.argv[0]) # prints python_script.py print(sys.argv[1]) # prints var1 print(sys.argv[2]) # prints var2

“Call to undefined function mysql_connect()” after upgrade to php-7 [duplicate]

From the PHP Manual: Warning This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide. Alternatives to this function include: mysqli_connect() PDO::__construct() use MySQLi or PDO <?php $con = mysqli_connect(‘localhost’, ‘username’, ‘password’, ‘database’);

python-dev installation error: ImportError: No module named apt_pkg

I met this problem when doing sudo apt-get update. My env is debian8, with python2.7 + 3.4(default) + 3.5. The following code will only re-create a apt_pkg….so file for python 3.5 sudo apt-get install python3-apt –reinstall The following code solved my problem, cd /usr/lib/python3/dist-packages sudo ln -s apt_pkg.cpython-{your-version-number}-x86_64-linux-gnu.so apt_pkg.so Replace {your-version-number} appropriately. CAUTION, the following … Read more