Mount USB flash in Linux
Posted by Cătălin on Mon, 15 Jul 2013Mount USB flash in Linux
Detecting USB flash: # fdisk -l Creating mount point: mkdir /mnt/usbflash Mount USB flash: mount /dev/sdb1 /mnt/usbflash
Read More...code
Temporarily stopping the X server
Posted by Cătălin on Wed, 10 Jul 2013Temporarily stopping the X server
Close the graphical session by selecting “System -> Logout” in the top menu. Press Ctrl+Alt+F1 This shuts down the X server, and we land in an alphanumerical window. However, the windows manager...
Read More...code
Largest top files on Linux
Posted by Cătălin on Thu, 27 Jun 2013Largest top files on Linux
How do you find the largest top files and directories on a Linux? du -sh * Specific folder: du -a /var | sort -n -r | head -n 20
Read More...code
mySQL password (Mac OS X Lion)
Posted by Cătălin on Fri, 22 Mar 2013mySQL password (Mac OS X Lion)
Setup root password for MySQL: /usr/local/mysql/bin/mysqladmin -u root -p password
Read More...code
Leverage browser caching
Posted by Cătălin on Wed, 27 Feb 2013Leverage browser caching
How to add Expires headers <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 month" ExpiresByType image/x-icon "access plus 1 year” # Images ExpiresByType image/gif...
Read More...code
Apache Error
Posted by Cătălin on Sat, 16 Feb 2013Apache Error
Fix for "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" Error sudo /etc/init.d/apache2 restart Reloading web server config: apache2apache2:...
Read More...code