My own WEB dev environment on GNU/Linux with LAMPP/XAMPP (2)

This comes from the first part here. Specific for each project Create directory First let's create the directory in which our project will live. (and set permissions) sudo mkdir /var/www/mi_proyecto sudo chown mi_usr:daemon /var/www/mi_proyecto Depending on environment could be necessary to give permissions to others, but following what we have done so far the following... Continue Reading →

Advertisements

mysql/MariaDb – Highway to sHell

I'm sharing here useful commands I use on my work. Why use command line? Why? If we have phpMyAdmin... Some adventages of use command line instead web access (if you are local or have ssh access): faster access to debug or error info avoid web timeouts avoid file size limit you can use it with... Continue Reading →

Debian mounts USB as read only (mounts it as root)

What? I installed Debian 8 and my USB mass storage becomes inaccessible. It was mounted as root, so my user (any user) has no rights to write it. I found a solution here: https://linuxslut.net/debian-jessie-mounting-usb-as-root/ How? Ok, seems to be that fstab directives are mount USBs as root.... /dev/sdb1       /media/usb0     auto    rw,user,noauto  0       0 /dev/sdc1       /media/usb1    ... Continue Reading →

Unminify CSS file from command line

What? I have a CSS file minified. (it means all lines compressed just in one single line) I need it readable, so I can modify it. How? Using command line in GNU/Linux systems (and others)....using awk. cat styles.css | awk '{gsub(/{|;/,"&\n\t"); print}' | awk '{if(match($0,/[^\;]+}/)) {gsub(/}/,";\n&\n"); print}else{gsub(/}/,"\n&"); print}'} Just play with it! It may be... Continue Reading →

Blog at WordPress.com.

Up ↑