Dropbox - Apache2 - Symbolic link - Permissions woes.


Recently, a new symbolic link was included in a root html folder.

That symbolic link  resulted in the following apache2 error.log output.

AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/SYMLINK

All the other symbolic links  worked as intended. Main difference being target location. This particular symbolic link was located in a Dropbox folder.

Solution:

chmod 755 ~/Dropbox

Note to self: The Dropbox folder needs a little permission adjustment.

Ansible ad-hoc solution for collecting network hosts inventory via cli

Outline the use of an Ansible ad-hoc solution for collecting network hosts inventory via cli  on Ubuntu 14.04

This is by no means the most efficient method. I highly recommend learning the ansible playbook methodology I have yet to learn myself. 

ansible http://docs.ansible.com/ansible/playbooks.html

I have not found a way to implicitly change ssh port value via cli.

The solution recommended is to add each host to etc/ansible/hosts accompanied by their respective custom port.

10.0.0.1:1234

To add/remove hosts edit the following.

vi /etc/ansible/hosts
 
The hosts values can be grouped. In this case we are grouping by the root password needed to access the hosts

    [password_list_1]
    10.2.0.2:1234
    10.2.8.7:1234
    [password_list_2]
    10.1.0.3:1234
    10.1.0.17:1234
 
Save and exit the hosts file.

Issue ansible commands like so.
ansible will request the ssh login for that group and proceed to collect host inventory information.

ansible password_list_1 -m setup -u root  -k --tree /tmp/inventory
 
or
 
 ansible password_list_2 -m setup -u root  -k --tree /tmp/inventory


To get a list of failed attempts at fetching the inventory

find /tmp/inventory -size -16b


wavformgen.php :: A simple php wrapper for sox, wav2png, wav2json

A mp3 player without a waveform display is kinda dull.

So, how do we get them for free? There are a number of online tools such as the DJ Audio suite.

Or.

We can just "roll our own".

wav2png and wav2json offers us a nice linux based command line solution.

wavformgen.php is a simple wrapper around that solution.

Syntax:

php wavformgen.php 'song.mp3' 'foreground color', 'background color'

php wavformgen.php 'path/to/directory/' 'foreground color', 'background color'
See example mp3 wavform results here

Assuming you have a linux server on hand (I used ubuntu).

1) git wave2png and wav2json (script currently renders both output.). Instructions are included
2) Ensure sox and php are installed on the same server.
3) Run script.
7) Profit.

That is all. Fork and enjoy.

Upgrading Ubuntu 14.10 to 15.04 increases stress and adds hours to development.

...seriously.

Better off just re-installing.

This is my third or fourth week attempting to make Ubuntu give me the functionality I had available with a Windows XP/7 install.

Almost had a desktop I could settle on and foolishly decided to upgrade.

Now I get to spend hours figuring out why an upgrade should break Mysql in such a terrible way.

Found a solution over @ At The Edge Of Time

Author Luís de Sousa shows amazing restraint as he steps thru the process of figuring out this horrible mess.





goBloggerCrawler Blogger Web Crawler in Go

Go-based web crawler used to efficiently extract structured data (titles, video URLs, and tags) from Google Blogger sites using concurrent p...