Fix Certificate error with wget

So, you are unable to download from https sources with wget. Instead you get the following error. ERROR: The certificate of \`www.google.com' is not trusted. ERROR: The certificate of \`www.google.com' hasn't got a known issuer. No problemo. This error is most likely occurring for missing root certificates. Simply install the ca-certificates package: sudo apt-get install ca-certificates This should work on Ubuntu and Debian derivatives.

April 22, 2017

How to Search Contents of File in Linux

This is something you need to do often for one reason or another. Maybe you have a bunch of text files, which have been named horribly and you have no idea which file has the thing you are looking for, but you happen to remember a word in that file. Or maybe you need to find which file contains a certain variable to find the root cause of an error you are experiencing in your script....

April 15, 2017

How to pass command-line arguments in node.js

So you want to pass information to your program. This can be quite easily achieved. The arguments are contained in process.argv. arg.js console.log(process.argv[0]); console.log(process.argv[1]); console.log(process.argv[2]); console.log(process.argv[3]); console.log(process.argv[4]); Testing the code: nake89@debian:~/nodeprojects/soacomp$ node arg.js what is this /home/nake89/.nvm/versions/node/v6.10.2/bin/node /home/nake89/nodeprojects/soacomp/arg.js what is this So the first line is the location of your node executable and the second one is the location of the script. These are largely unnecessary which is why the following script is so popular....

April 15, 2017

Installing Vim UltiSnips on Debian 7 Wheezy

I had some problems recently installing UltiSnips on my Debian Wheezy. The first problem is that the Vim which comes with Debian does not come precompiled with Python, which UltiSnips needs. The second problem is that the version of the Vim is too old and is unsupported by UltiSnips. First uncomment or add the following line to your /etc/apt/sources.list. This is because the version of Vim in the default repository is too old....

April 15, 2017