Eww. Yeah that was a crap answer, but codeplex, the example in question, did in fact used to be a decent code-sharing/tutorial site for some topics. That said, I don't think it's unreasonable to diff all on-site links against the chrome "malicious site" list if that's publicly accessible on a weekly or monthly basis. @Fabby

I have a tar archive and I need to extract the contents of a directory into another directory.
So for example the content may be located in /home/me/stuff/ and everything in the stuff folder should be extracted to /extract.
Thoughts?

I get that docker has some overhead and I wouldn't expect it to be as fast as local bin, but 2 seconds overhead? It seems too much ... Once the container is running, the execution itself seems the same.
$ time docker-compose run --rm php-cli php -i > /dev/null
docker-compose run --rm php-cli php...

Ha. grep is faster. cat ../Posts.xml ../Comments.xml | tr '[:upper:]' '[:lower:]' | grep -Ff smokey/blacklisted_websites.txt. Doesn't do quite a much cleaning up after itself but 16 seconds is going to be hard to beat.

@Oli Good to know. I didn't know that fixed case-insensitive strings are so slow in GNU grep considering that the Boyer-Moore algorithm used for fixed strings can be easily extended to work case-insensitively with little performance penalty.

I implemented faster "inexact" string matches like that as an exercise for a uni course.

Proper pattern analysis should give a big performance gain here since the "haystack" for the search is relatively large.

@dessert Considering that I did this as an exercise based on well-known published algorithms I'm sure that people with more experience in this stuff are already involved in the development of GNU Grep but decided against this specific change.

@DavidFoerster No one ever bothered submitting a patch because it does exactly what it needs to do for their use case, so if you have something better, submit a patch and then we'll be able to say in 20 years: *Remember when we used to call this dude David and now we have to call him "Herr Doktor Förster"???"

I followed this guide (https://mobiarch.wordpress.com/2014/05/16/creating-an-init-script-in-ubuntu-14-04/) to create a startup script that mounts my shared windows folder and starts my vpn. However, the script is still not working on startup. I am currently using vm virtualbox to emulate Ubuntu 1...

I am trying to run a docker dns server (sameersbn/bind) on ubuntu 18.04, but when starting the container it tells me that port 53 is already in use.
docker: Error response from daemon: driver failed programming external connectivity on endpoint bind (5e620c3c1ac65fbfe28e7d558d10dc9400dd1298957df...

You can take advantage of the rmdir command's refusal to delete non-empty directories, and thye find --depth option to traverse the directory tree bottom-up:
find . -depth -exec rmdir {} \;
(and ignore the errors), or append 2>/dev/null to really ignore them
rm -rf will delete all the f...

that’s simply a sh shell which gets two arguments, the first being $tmpdir and the second being the filename, ${1##*/} is parameter expansion (substring removal) and removes everything to the last slash from the filename

I can't update my system because it freezes while installing a third-party update (zramswap-enabler)!
Sometimes I get the following message in Update manager:
Could not initialize the package information An unresolvable problem occurred while initializing the package information.
Please...

i have a server that receive information about a network, ssid, psw, WPA,...,ip, subnetmask gateway DNS. My problem is i don't know how to tell ti Ubuntu to take infos to trying to connect to network. Something like exec(mcli dev ssid psw WPA ip subnet gateway DNS). Someone Can help me? Code exa...

I am using Ubuntu 16 LTS Server. I have a user with sudo privileges on it. When I attempt to switch from my current user to root, it asks for my password. I enter the correct password and it refuses my password.
username@server:/# sudo su
[sudo] password for username:
Sorry, try again.
[sudo] pa...