Monthly Archives: February 2014

GoAccess – analyzer and interactive viewer of apache or nginx logs

GoAccess is an open source real-time Apache log analyzer and interactive viewer that runs in a terminal in *nix systems. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly.

All credits go to http://www.ubuntugeek.com/goaccess-visual-apachenginx-log-analyzer.html

Continue reading GoAccess – analyzer and interactive viewer of apache or nginx logs

Atom, from GitHub – A hackable text editor for the 21st Century

At GitHub, we’re building the text editor we’ve always wanted. A tool you can customize to do anything, but also use productively on the first day without ever touching a config file. Atom is modern, approachable, and hackable to the core. We can’t wait to see what you build with it.
Find out more at http://atom.io/ 

Taking the web native

Node.js integration

Modular design

Full-featured, right out of the box

Continue reading Atom, from GitHub – A hackable text editor for the 21st Century

cronjob – emails to /dev/null or /dev/null 2>&1

We can send the output of our cron jobs to /dev/null, but this way error and other debug messages aren’t lost and we will be notified when the occur!

If you don’t want to receive them add  2>&1 to it.

* * * * * /bin/ping -c 10 www.digitalwhores.net > /dev/null 2>&1 – no emails will be sent
* * * * * /bin/ping -c 10 www.digitalwhores.net > /dev/null – error and debug messages will be sent.

Peace.

nignx timeouts

Some tweaks to avoid times out on nginx/php.

Add the following lines to your nginx.conf  (mine is /etc/nginx/nginx.conf) inside http { 

client_header_timeout 3000;
client_body_timeout 3000;
fastcgi_read_timeout 3000;
client_max_body_size 32m;
fastcgi_buffers 8 128k;
fastcgi_buffer_size 128k;

Lets hope it solves it…

WordPress – languages, translations – edit them!

I’m using Poedit to make the translations.
You can download it from their official website http://www.poedit.net/.

Well, lets start!

Locate your .po file of your theme folder.
I had to make some changes on it, with a text editor – I used coda -.
I had to change the “X-Poedit-SearchPath-0” to my correct path one or poedit crashed.

Make the translations!
You can hit Validate and Update but only when you close Poeditor the .mo file is updated!

I’v uploaded the new file to my theme_name/languages/ folder under pt_PT.po and pt_PT.mo.

This way I was seeing the translated items in the Admin board etc.

 

Linux add user and change its home dir

I usually need to create Linux users for FTP access…
FTP is unsecure, we should use sftp bla bla blaa…

Add user
useradd username
Set/change password
passwd username
Set user’s home dir
usermod -m -d /new/path/ username

This way we will set the new path (/new/path/) to the user named username.

-m defines that content from the old home directory will be mobed to the new one.
-d the new home dir’s path

 See user’s information
finger username

 

 

Directory Lister

 Simple Installation

Our clear and simple installation instructions will help you get up and running with Directory Lister in minutes.

 List Any Directory

Upload files to any web-accessible directory and Direcectory Lister will generate listings for you on-the-fly.

 Customizable

Theme support is built in to fit your uniqe style. Control your listing with custom sort ordering of files/folders.

 Hidden Files

Don’t want to share everything with the world? Easily define hidden files to be excluded from your listings.