depicus

changing the digital world one bit at a time...

Blants (noun) the rants of a blogger

  1. Ubuntu find text in a folder recursively

    February 10, 2016 by The Man

    Very simple just grep it

    grep -r "WakeOnLanGui.zip" /var/www

    where WakeOnLanGui.zip is the text you want to find and /var/www is the folder and subfolders you want to search.

    Easy 😉


  2. Why Windows 10 is poor

    December 10, 2015 by The Man

    I loved XP and Windows 7 and there is a lot to like with Windows 10 but sometimes you see something and you just think WTF !!!

    Windows Updates WTF

    So you couldn’t install updates because my pc was turned off, no shit Sherlock. At least it’s better than the metro app update screen which gives you no clue whatsoever.

    Are You Doing Anything


  3. Clear out the Postfix queue

    December 7, 2015 by The Man

    If you find that your Postfix mail server is full of spam messages waiting to go out you can check the mail queue with

    mailq

    n.b. Postfix needs to be running for this to work but not if you need to purge the queue simple use

    postsuper -d ALL


  4. letsencrypt.org and XP – a bodge fix for chrome

    December 4, 2015 by The Man

    Ok as luck would have it the second site I set up letsenrypt.org‘s new certificates on the client was using Windows XP and Chrome and got this nasty error message when I redirected the http to https.

    Now I’m a firm believer of https everywhere – yes I know it doesn’t solve every problem but it helps. So the options were bleak according to a github issue but if you are using Apache it’s possible to bodge a solution so XP Chrome clients can still see your site.

    RewriteEngine on
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_USER_AGENT} !(Windows\ NT\ 5.1|Windows\ NT\ 5.2) [NC]
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI}

    So what are we doing here.

    First we check to see if https is off – not sure this is really needed as we are putting this in our :80 .conf file.

    Then we check its NOT XP with the !

    And finally we redirect to the https address.

    Now we could get really clever and just check for Chrome on XP and I may work on that as I plan to use letsencrypt.org wherever I can 🙂


  5. depicus is https now thanks to letsencrypt.org

    December 3, 2015 by The Man

    If you haven’t heard of letsencrypt.org they are “Let’s Encrypt is a new Certificate Authority: It’s free, automated, and open”

    Basically they will issue ssl certs for web sites free and in milliseconds, and here’s how.

    1. Get hold of the letsencrypt program

    git clone https://github.com/letsencrypt/letsencrypt
    cd letsencrypt
    ./letsencrypt-auto --help

    Then for me it was just a question of running

    ./letsencrypt-auto --apache -d depicus.com -d www.depicus.com

    And within seconds we are https – cool as <3


  6. Delete Metro Apps from Windows 10

    November 9, 2015 by The Man

    If you work in a SME and have had the pleasure of Windows 10 you’ll know that Metro (yes I know it’s not called Metro anymore) apps can be a pita and seem to have huge updates at regular intervals. 120+ mb per machine (no WUS for these apps yet) can take up a lot of valuable bandwidth and let’s not even get started about the security concerns. Indeed these apps seem to be designed with individuals in mind but not companies, I don’t want to log in with a Microsoft account just to update and secure these apps. So let’s just delete them.

    That should fix at least one of the problems with Windows 10.