lyncd

Code

Logout Clear Cookies for WordPress

Available immediately is a new super-simple WordPress plugin, Logout Clear Cookies, which does just what it’s name says — when you log out of your WordPress site, it will clear all the cookies that WordPress has set in your browser. Because leaving a trail of cookies behind you is bad! more …

Filed under: Code.  Tagged: , , , .

One-liner to clean DNF package cache but keep latest version of each package

If you’re running Fedora or Red Hat and have turned on the DNF package cache, eventually you’ll start using gigabytes of disk space. Simply running dnf clean packages will erase everything in the package cache.

But what if you want to preserve the latest version of each package and just delete the outdated versions? For example, to keep a local cache of the latest version of each package you’ve installed, and so that DRPM will still work on your next dnf upgrade. more …

Filed under: Blog, Code, Systems.  Tagged: , .

Use Let’s Encrypt to add an SSL certificate to your Dreamhost-hosted site

Update 2/2016: You don’t need to follow any of the instructions in this post any more! You can just enable a Let’s Encrypt certificate in the Dreamhost panel! But if you want to generate your own Let’s Encrypt certificate locally and add it to your site, keep reading, original post follows …

EFF’s Let’s Encrypt initiative just made getting a free, CA-signed server certificate easier than it’s ever been before. Running a single command generates everything you need, obtains the public cert and even installs it into your webserver of choice. So let’s encrypt, and move the web closer to HTTPS everywhere!

Here’s a quick tutorial for using Let’s Encrypt with Dreamhost’s shared hosting. It’s not quite automatic, since you’ll have to copy-paste 3 things into boxes via the Dreamhost web panel, but it’s a lot simpler than the alternatives. As someone who’s done this the old way countless times, Let’s Encrypt was shockingly easy! more …

Filed under: Code, Systems, Technology.  Tagged: , , , .

Remove ugly black line from under Gnome 3 window title bar

If you found this page, you probably don’t like the black border line that Gnome 3.16 added underneath the window title bar. I just came across it when I upgraded to Fedora 23. The old title bar used to blend seamlessly into the window background, but not anymore. more …

Filed under: Code.  Tagged: , .

One-liner to recursively convert flac to mp3

Here’s what I do, it uses FFmpeg, doesn’t require a for loop and should work on any POSIX-compliant system. Take note that it will delete your original files! The idea is to make a copy of your music folder first, and then run this command on the copy.

find -name "*.flac" -exec sh -c 'ffmpeg -i "$1" -acodec libmp3lame -aq 4 "${1%.flac}.mp3" && rm -f "$1"' _ {} \;

And that’s it! more …

Filed under: Code.  Tagged: , , , .

Overclocked Android kernel for Optimus V

Now that LG has corrected its source code, I’ve built my overclocked Android kernel for the Virgin Mobile Optimus V, a phone that’s nearly identical to my Sprint Optimus S and that also runs on Sprint’s 3G CDMA network. If your V needs a speed boost or extra driver support, keep reading! more …

Filed under: Code.  Tagged: , , , .

Older posts »