intentionally left blank

Sometimes it is calming to watch your server logs scroll by, mh, a wonky
IP wants to ssh into my box, oh a new email is coming in, hehe no spammer,
this email is going to be rejected.. But some log
entries are just an annoyance. Oh, my email client is logging in again and
out.. and in again. Let’s get rid of these.
I use syslog-ng for all logging porposes so I will only focus on
its configuration possibilities.

I have 3 main logfiles, boring cron output, all things mail and everything else.

As you can see at the date below, this post is quite old, but was not
published until now. Perhaps someone can still use it..

Today Manu spend about five minutes to hook
me up on Octopress. After playing around with
it for some time I did a quick search for some plugins. I couldn’t
locate a flattr plugin so I had to fire up vim.

After trying to build a jekyll plugin at first, I think I found an easy
solution when you want to include a flattr button on per post basis.

I wanted the button on the right side of the meta section at the
bottom of a post, so it would only show up when a single post is displayed.

Feel free to to find a different spot for the snippet, you just have to
copy/paste the {% if page.flattr == true %}..{% endif %} block to
any place you desire. If you want the button not aligned to the right
delete style="float: right; margin-top: -1.75em" from the div tag.
I have to admit the margin-top style is a crude hack..

Beware: This file could change with every octopress update. I havn’t found
a suitable place for the code within the source/_includes/custom/ files for
my needs. So, check after each update if the button code is still there.

While using tmux daily makes your life easier and more colorful you
have to admit that creating your default working environment sucks. At least if you use windows and panes. CTRL+V CTRL+H CTRL++ CTRL+- galore

From now don’t start tmux directly, use $ tmuxinator daily or
even shorter $ mux daily to load tmux and your saved layout.

Below another example, my octopress tmuxinator setup that I use right now to write this lines.

octopress.yml

123456789101112131415

# ~/.tmuxinator/octopress.ymlname:octopressroot:~/octopress/pre_window:rbenv shell 1.9.3-p194windows:-editor:layout:eb15,156x49,0,0{80x49,0,0,11,75x49,81,0[75x36,81,0,12,75x12,81,37,13]}panes:-vim--rake watch# no need for rake preview, since I use pow.cx

Update:

Thanks to Theodoros Ploumis for mentioning Teamocil. Unfortunately his comment has left this blog because of a stupid configuration error (Protip: Know and check your own discus shortnames..).

At first you have to grab the UUID of the volume that should be
shrinked (in my case it is 953ED8ED-4373-4A2E-AA0B-747D3EEC1FDE).

Next step is the actual shrinking, 710G is the new target size. With
another quick look at diskutil corestorage list you can verify how
big the old volume is and how much space is availabe inside the
logical volume family.

Next and final step, create the new Volume inside the LVF with a
journaled HFS+ file system, named cleanOsInstall and 45G space.

Copy the UUID (in this case this would be 111DA74D-EDC4-498B-AE2C-50E07ACAE7CA) of the drive and run disktuil corestorage changeVolumePassPhrase theUUID.
Enter the old password, then twice the new one and after a few seconds you are done

Note to myself: If you are trying to SCP a file and get greeted with a nerv-racking -stalled- after a few seconds, check your ~/.ssh/config for enabled compression. Disabling the compression did the trick for me after some rageful weeks.

When using a custom server you have to click the share button, wait for the image to be uploaded and thereafter you have to click again to copy the URL. Two clicks too much, every time. (When using skitch’s own server the URL is copied to your clipboard automatically after the upload.)

My wish list was short:

select a window or an area of the screen

optional: give me some seconds after selecting the area to pull up
some menus

Copy the code from the gist, edit the local destination and server settings inside the configuration block after the comments and use the following Alfred.app (beware: Powerpack feature (You don’t own it yet? What are you waiting for, it’s awesome) settings or any other application starter of your desire.

The checked action checkbox means that you can trigger the extension from Alfred’s file navigation, pretty handy for uploading some existing local file.

(If you didn’t guess: After editing a screenshot, overwrite the original file to upload the edit.)

Grab the extension right here. Just double click to import it in your alfred installation, configure the paths and you are done.