Category Archives: Web Development & Administration

All categories relating to web development and the software that is used and hacked. Categories: eCommerce, FTP, MySQL, Linux, PHP, Plesk, Web Hosts / Hosting and Wordpress.

Compiling Assets / Laravel 5.4 / Ubuntu 14.04 & 16.04

Check globally installed packages:

npm ls -g –depth=0

You do not need any globally installed NPM packages to compile these assets, so if you installed any because of this, go ahead and remove them now: npm uninstall -g [package]

Check your npm cache:

npm cache ls

If there’s anything in there, clear it:

npm cache clean

Also remove the node_modules folder in your current project.

rm -rf ./node_modules

Check your Nodejs version:

nodejs -v

If you’re not on 6.x.x, uninstall nodejs now:

sudo apt-get remove nodejs -y

Now prepare and install nodeJS  6, instructions for other versions are in the referenced article below.

curl -sL | sudo -E bash – sudo apt-get install -y nodejs

now one last note, you need to install node-sass, for some reason it’s not in the package.json but it’s needed and you’ll get an error of missing folder.

npm i node-sass

Now navigate to your project folder and run: npm run prod





MySQL Current Configuration File

WP-Config Disable Cron

define(‘DISABLE_WP_CRON’, true); //Disable page load cron

WordPress › Support » How to disable wp_cron via page loads and run it manually instead?.

Password protecting nginx

Create a Username/Password which will be stored in ‘useraccess’, a file I just made up.

htpasswd -b -c useraccess username password

Now in the nginx config, under:

auth_basic "Message box title of password prompt";
auth_basic_user_file /path/to/useraccess;

Free Cloud Hosting for a year? Sign me up!

WordPress-Smart 404 Plugin

A great tool for not showing 404 pages on your wordpress website.  I’ve used this for a couple years now.  I just recently discovered that if you type in a url with a keyword that cannot be found in your posts or pages, this plugin will show a 404 page.  The whole point of this plugin is to be smart right?  Well as a fix for now I’ve just made it default to your lastest post if it cannot find the keywords in the uri.  Fix can be found @ Pastebin:

Speeding up Windows Vista file transfers over the network.

Speed up Windows Vista File Transfers over the NetworkVista performs very fast on advanced networking environment, but introduced too much overhead in normal home office environment, you just need to disable some settings to reduce the overhead, all is done in 2 simple steps.

Unless you equipped with advanced PC and networking devices, your can expect performance dropped by 20~50% during files transfer as compare to XP, so lets’ find the reasons and solve the problems now:

  • 1. Remote Differential Compression – This protocol calculates, compress and only transfer files with updated version, hence files synchronization works extremely well on lower bandwidth networking, but slows down normal networking with extra overheads in compression. Using a faster processor can improve Remote Differential Compression as Vista trade processing power over networking bandwidth by compressing the data before transferring it. You should always disable this features on older and slower computer, because you have more bandwidth than processing power!
  • 2. TCP Auto Tuning Features – This feature maximize your gigabit networking by automatic and constantly adjusting itself to adapt to the maximum bandwidth available by your hardware; It performs very well on high bandwidth environment, but not very good on low bandwidth networking due to extra overheads of detection, and also went bad when using unsupported hardware such as firewall or routers.
    You can disable these features and speed up Vista network file transfers  20% to 30%. Just remember to enable them if you upgrade your computer or networking in the future.

To disable Remote Differential Compression, go to Control Panel -> Programs -> Turn Windows Features On or Off, uncheck Remote Differential Compression and then press OK button.

To disable TCP Auto tuning, open run by holding  the Windows key and pressing R.  Then type CMD. exe then hold Ctrl & Shift while pressing Enter to run as Administrator. At the command prompt type netsh interface tcp set global autotuning=disabled  …  Tada!  Now type exit to return to Windows.

If you’re unsure whether or not autotuning is already disabled, use command: netsh interface tcp show global at command prompt.

Autotuning Disabled

Autotuning Enabled






If you decided to turn on this feature after upgraded your hardware, do the same but type netsh interface tcp set global autotuning=normal to turn on the TCP auto tuning feature.

You can try to send some files now, you should notice more improvement on your file transmission, your file is send across network or disk much faster!