Whats the difference between sed -E and sed -e

From source code, -E is an undocumented option for compatibility with BSD sed. /* Undocumented, for compatibility with BSD sed. */ case ‘E’: case ‘r’: if (extended_regexp_flags) usage(4); extended_regexp_flags = REG_EXTENDED; break; And from manual, -E in BSD sed is used to support extended regular expressions.

Run shell script with node.js (childProcess)

The exec function callback has error, stdout and stderr arguments passed to it. See if they can help you diagnose the problem by spitting them out to the console: exec(‘~/./play.sh /media/external/’ + req.params.movie, function (error, stdout, stderr) { console.log(‘stdout: ‘ + stdout); console.log(‘stderr: ‘ + stderr); if (error !== null) { console.log(‘exec error: ‘ + … Read more

What do the *-dev packages in the Linux package repositories actually contain?

The *-dev packages most often contain the headers related to a library’s interface. Next most common are package-config files (*.pc) describing build options and staticly linked libraries. In general, if you want to know the contents of a package you have installed, dpkg -L pkgname will get you that. The apt-file program can tell you … Read more

github: server certificate verification failed

2016: Make sure first that you have certificates installed on your Debian in /etc/ssl/certs. If not, reinstall them: sudo apt-get install –reinstall ca-certificates Since that package does not include root certificates, add: sudo mkdir /usr/local/share/ca-certificates/cacert.org sudo wget -P /usr/local/share/ca-certificates/cacert.org http://www.cacert.org/certs/root.crt http://www.cacert.org/certs/class3.crt sudo update-ca-certificates Make sure your git does reference those CA: git config –global http.sslCAinfo … Read more

Faster forking of large processes on Linux?

On Linux, you can use posix_spawn(2) with the POSIX_SPAWN_USEVFORK flag to avoid the overhead of copying page tables when forking from a large process. See Minimizing Memory Usage for Creating Application Subprocesses for a good summary of posix_spawn(2), its advantages and some examples. To take advantage of vfork(2), make sure you #define _GNU_SOURCE before #include … Read more

How to upgrade glibc on Debian?

I was able to install libc6 2.17 in Debian Wheezy by editing the recommendations in perror’s answer: IMPORTANT You need to exit out of your display manager by pressing CTRL–ALT–F1. Then you can stop x (slim) with sudo /etc/init.d/slim stop (replace slim with mdm or lightdm or whatever) Add the following line to the file … Read more