Monthly Archives: April 2015

PHP exec in background

So, in one of my projects/products/services, I need to execute ffmpeg via PHP…
Usually I use at do send the job to a queue list.. unfortunately in two聽different clients’ servers somehow PHP + exec and聽at doesn’t work well….

This is how we send a PHP exec to background

exec(command > /dev/null 2>/dev/null &);

 

As seen on聽http://stackoverflow.com/questions/8961470/how-to-make-shell-exec-run-in-background-while-php-continues

nginx – allow only one IP to access the domain/subdomain

Restricting Access

Access can be allowed or denied by the IP address of a client or by using the HTTP basic authentication.To allow or deny access from a certain set of addresses, or all addresses, use the allow聽and deny directives:

location / {
    allow 192.168.1.1/24;
    allow 127.0.0.1;
    deny 192.168.1.2;
    deny all;
}

Copy&Past from http://nginx.com/resources/admin-guide/restricting-access/

InfiniteWP – self-hosted multiple WordPress management platform

I run several WP blogs/sites… for me and for my clients…
3 of my WP blogs get 1.5K users per day… they aren’t huge, but they might get some extra attention to hackers…
Wordpress this days had some huge security vulnerabilities – WordPress itself and well known plugins like JetPack!…

One of my clients use Infinite WP.
I might try this out!

What is InfiniteWP?
InfiniteWP is a free, self-hosted multiple WordPress management platform that simplifies your WordPress management tasks into a simple click of a button.

TOP FEATURES
One Master Login
One-click access to all your WordPress dashboards. Forget your passwords once and for all.
One-click updates
Click the Update All button like a Boss and update everything – WP core, plugins and themes.
Instant Backup & Restore
Create backups of all your WordPress sites simultaneously. Restore backups instantly.
Manage Plugins & Themes
Activate, Deactivate and delete plugins and themes in bulk. Bulk install favorite plugins with a single click.

Google Chrome 85 Google Chrome 84

 

Google Chrome 83

 

 

On your wordpress you need to install InfinityWP plugin.
After install and activate it, you will see a screen like this…
Hit the Copy details and, from your WP you are done.

Google Chrome 81

On you Infinity WP, on the left bottom you will see a Add Website bottom. Hit it!

Google Chrome 86

 

Now, just Past the codes copied from your WordPress blog… 馃檪
Repeat this for all your blogs! 馃檪

Google Chrome 80

Google Chrome 82Google Chrome 76

Google Chrome 77

Google Chrome 78

Google Chrome 79

 

 

 

14 Rules for Faster-Loading Web Sites, from Steve Souders

High Performance Web Sites

 

Prometheus, open-source service monitoring system and time series database from SoundCloud

I LOVE SOUNDCLOUD!

From time to time I read their tech blog…
Today I’v found Prometheus! Hooray SoundCloud! Hooray!

Prometheus

An open-source service monitoring system and time series database.
Prometheus is developed in the open and has a growing community outside of SoundCloud.

 

Continue reading Prometheus, open-source service monitoring system and time series database from SoundCloud

Bootstrap, two nice **addons**

Best jQuery plugin to validate form fields

http://formvalidation.io/

Fuel UX extends Bootstrap with additional lightweight JavaScript controls for your web applications.
  • Checkbox
  • Combobox
  • Datepicker
  • Infinite Scroll
  • Loader
  • Pillbox
  • Placard
  • Radio
  • Repeater
  • Scheduler
  • Search
  • Selectlist
  • Spinbox
  • Tree
  • Wizard

Get Fuel UX