Disable WP Video Locker (youtubeblocker) behaviour

If you ever seen a website that asks for a “Share” on Facebook before you are allowed to view a video, try this userscript: http://userscripts.org/scripts/show/399846.

This disables the annoying “WPVideoLock” WordPress plugin.

Update: Didn’t notice that websites like voceazilei.ro changed their data attribute; so with the ideas of Victor Badoiu I updated it to 0.3, doing a more aggressive scan for the YouTube video id (using regex).

Windows 8: Enable/Disable Hibernate via PowerShell

If you newly installed Windows 8.1 and you would like to disable Hibernate, you figured out by now that you can’t simply do powercfg /h off like you used to be able to in Windows 7, you get this Windows error codes:

Here’s an easy way to do it, by not changing anything permission related (UAC etc.) on your system.
Continue reading…

OSCam Startup Script for Ubuntu and other linux distros (systemd compatible)

Updated on 14.05.2017

Create a file called /etc/init.d/oscam with the following contents:

This assumes that you have the oscam binary located in /usr/local/bin/oscam. Remember you have to create this file as the root user.

To “enable” the script and the starting up of oscam on reboot, use the following commands on Ubuntu/Debian:

systemd compatibility

The script will also work on systemd systems (like Ubuntu 16.04 and so on).

To force systemd to detect the service, you have to do:

To enable the system to start at boot:

crontab checks

Furthermore, for a simple crontab script to check if oscam has crashed and didn’t restart by itself, let’s create a file and call it /usr/local/bin/oscamchk:

And let’s make this run every minute:
Once the crontab editor has started, add the following line: