Category: Tech

Keep getting logged out from Selfoss on Debian

I’m running Selfoss RSS reader and loving it! One thing I don’t love is that it logs me out frequently (BTW, I’m running Apache php-fpm on Debian Jessie). But I think I found a solution. Try adding this to a file called .user.ini in the document root of Selfoss: [crayon-5c69bab2aa3cb218147145/] The 604800 means one week.

Allowing bookmarklets to work while NoScript is enabled

The NoScript extension is fantastic at enhancing one’s security while browsing. Sure, it’s a bit of pain to get used to needing to allow scripts for new websites visited (temporarily or permanently). But I wanted to use bookmarklets to post selected stuff in my Dokuwiki with the dokubookmark plugin. The problem was, every time I

Tunnelblick disconnect fails to remove route

Tunnelblick is an awesome OpenVPN client, which I have been using a lot lately on my Mac. I had a problem where it would connect the first time just fine, but then would never reconnect; it would seem to hang while trying to handshake with the server. I could get it to work again if

scary rando stuff

You don’t see stuff like this everyday (I hope). [crayon-5c69bab2aa96e508993704/] [crayon-5c69bab2aa974129959946/]

LFD stops logging to kern.log

It took a while before I figured out why LFD wasn’t logging any issues to kern.log on my Debian-based systems. I realized at some point that it worked when I first installed CSF, but then logged nothing after the first day.

Rename and Iconv are like Chocolate and Peanut Butter

The features of iconv are probably built into Perl rename (aka prename), but when I tried the example from the man page, it kept generating an error message. I presume this is due to a missing Perl module. Here’s the error: [crayon-5c69bab2aaa18778620764/] So I suppose if we don’t care much about speed then we can

Fix Bad Firefox URL Suggestions

Firefox URL suggestions are usually very helpful and a real time-saver. But I’ve been rather annoyed for quite a while at some of the suggestions that Firefox proposes while auto-filling the URL bar. There is one case in particular that never made sense to me.

Speed of the sort command

GNU sort is normally crazy fast at what it does. However, recently I was trying to sort & unique several huge files and it seemed to be taking way too long. I did a little googling, and realized that it takes a lot longer to sort the full range of Unicode characters because it has

Moving Evernote notes into WordPress

proprietary insecurity I’ve accumulated many notes (2000+) in Evernote over the years, and love that it can store binary attachments such as images or other media files. My favorite feature is the Evernote Web Clipper browser extension; it does a fantastic job at saving the parts of an article I want to save while keeping

Apache, Fastcgi, PHP 7 on Debian Wheezy & Ubuntu 14.04

Intro: The Tyranny of Prefork There are a lot of tutorials out there that go through the rote instructions on upgrading your Debian or Ubuntu system to use PHP 7. While I’m sure most of them are fine, they assume you’d want to use the prefork process model or event/threaded via CGI (via proxy and

distribution: histograms in the terminal

My new favorite tool is a python program called distribution that can easily show histograms in your terminal: [crayon-5c69bab2ab04f544061222/] I used homebrew to install it, but you can see some usage examples and a few other tools on this stackoverflow page. I eagerly anticipate showing off some histograms to people.

Debian server DNS bogosity

Note: I’m running my Raspberry Pi as a server, and NetworkManager is not installed. I discovered that if you want to manually assign search and nameserver entries in your /etc/resolv.conf file, you can’t just add the relevant entries to static entry in /etc/network/interfaces: [crayon-5c69bab2ab0cc688662495/] For some unknown reason, the resolvconf utility will still attempt to

finger has a posse

Just saw this on One Thing Well, and it made me so nostalgic about my early years on *nix and the net. A weather service fed over the finger protocol. [crayon-5c69bab2ab189651200856/]

GNU xargs is missing the -J option. WHY!?!

I find that using an idiom like [crayon-5c69bab2ab2e3741437486/] is so useful. It replaces the replstr (“%” in this example) with all the arguments at once, or as many as can fit without going over the system’s limit. I couldn’t believe it when I learned that the GNU version of xargs lacks this flag. Yes, it’s