I needed an easy way to upload my last screenshot to Imgur. I have automatically uploading of screenshots to CloudApp but they preserve file names etc. I needed something that just takes my image and forgets that I sent it.
So, I created an Alfred Workflow to do this for me. The actual uploading is done by Bash Script Uploader. All I do is to find out where you keep your screenshots and take the newest one.
DIR=$(defaults read com.apple.screencapture location)
FILE=$(ls -t "$DIR" | head -n 1)
CUR_DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
The keywords to upload it are ”ss to imgur”.
You can download it here >>
Privacy and encryption should not be hard to use in a chat service. There’s a OTR option in Adium where users can start an encrypted chat.
But seriously, have you ever used it? This should be the default option and users who want to chat in the open can request that.
This is where Cryptocat comes in. It’s a chat service (based on XMPP I believe) that has OTR for all conversations, all the time. You don’t even have to option to skip it.
Picka a name and a room to start.
I needed to have a simple way of hashing strings and encode / decode to/from base64. It’s a perfect task for Alfred!
I’m just gonna leave this here. Easy to scale cache and app servers.
I’ve recently read a new book about nginx called Nginx HTTP Server – Second Edition.
This is a good book that covers the basics from installing, configuring and running a nginx server. It’s well written and uses a simple language so everybody can understand.
Chapter 1 takes you through downloading and installing nginx on your server. I always use Debian so I didn’t really pay much attention to this chapter.
Chapter 2 is about basic config and talks about what modules are.
Chapter 3 goes through all http configuration directives with short descriptions making it easy to read as well. This is a good chapter. You can of course read about all this online, but the book is good at explaining the most common directives.
Chapter 4 is about module configurations and writes a lot about the rewrite module and explains some basic regex patterns and rules as well. Good intro to someone!
Chapters 5 explains what FastCGI is and how you can make nginx communicate with PHP-FPM and Python via sockets and TCP. This is the best chapter in the book and shows how you can scale up your app by adding dedicated PHP servers behind the nginx server.
Chapter 6 covers how you can run Apache and nginx next to each other where would be nginx taking over all static file delivery and Apache still handling the dynamic parts and chapter 7 is about how you migrate your web app from Apache to nginx with lots of good rewrite examples.
Overall, a very good book on nginx for the beginner! Even I, a rather advanced nginx user learned a few tricks. :)
I just updated my plugin Two Factor Auth for WordPress this morning. New layout on the login page, a few bug fixes and tested it in WordPress 3.7.
This is a follow up from ”set up your own mail server >>”
By default iRedmail comes with Spamassassin for spam protection. This is a good start that checks SPF-records, DKIM signatures and performes a lot more checks.
Users help each other
Razor2 and pyzor can be helpers/plugins for Spamassassin that downloads lists of hashed values of other peoples spam to see if they match incoming mail for your server. That way users help each other to fight spam. It’s a quite easy installation.