Latest Threads

Forum Statistics
  • Forum posts:1 378
  • Forum threads:184
  • Members:2 999
  • Latest member:kulitsehat


Posted by: Ashus
14.2.2013 02:19
Forum: PHP scripts
- No Replies

This script converts directory and file names' charset recursively in the structure ('iso-8859-2' => 'utf-8'). Make sure you don't have any open files before you run it.
Useful if you need to convert entire linux system to UTF8 and was held back by something.

Print this item


Posted by: Ashus
8.2.2013 09:15
Forum: Bash scripts
- No Replies

To automatically delete older uploads, use this and add the script to your cron. +7 means files need to be older than 7 days, files beginning with a dot and a folder "up" is ignored.

Code:
#!/bin/sh

IFS=$'\n'
for s in $(find /var/www/files/upload/ -type f -mtime +7 -exec echo {} \; | egrep -v "/var/www/files/upload/(\.|up/)")
    do
    rm "$s"
    done

Print this item


Posted by: Ashus
8.2.2013 08:53
Forum: PHP scripts
- No Replies

A simple trailer downloader, I use it to download highest quality trailers and watch them later in my favourite Media Player Classic fullscreen.

How to use:

  1. Open http://trailers.apple.com/
  2. Choose a movie, copy a link to the page to clipboard.
  3. Run this script, paste URL.
  4. If asked, choose which trailer or clip to download.
  5. Play the 1080p movie fullscreen in your favourite media player.

If required, associate phpx to be run with php first.

Print this item


Posted by: Ashus
8.2.2013 08:53
Forum: Other
- Replies (2)

Contents:
PHP icon - extract to your WINDOWS directory.
PHP cli-exec - contains registry settings to launch PHP script from context menu (.php) or by double-clicking (.phpx)

Of course in order to launch PHP script, you need to have PHP installed. The requirement is to have the system PATH variable pointing to PHP binary file (php.exe).

Print this item


Posted by: Ashus
7.2.2013 02:04
Forum: Other
- Replies (9)

My updated PHP definition file (downloaded directly from documentation at php.net on 05/14/2013).
Contains functions and updated parameterers for PHP 5.4/6.

Put it in your Context folder.

Print this item


Posted by: Ashus
7.2.2013 01:53
Forum: Webové stránky a aplikace
- No Replies

Jde o jednoduchou aplikaci pro synchronizaci titulků. Máte jedny anglické a druhé české. Jedny sedí přesně a ty druhé vůbec. Touto aplikací je možno sloučit časy jedněch a texty druhých. Následná kontrola a úprava zahrnuje možnosti vkládání a posunu titulků, úprava textů atd.

https://subtitles.ashus.net/

   

Print this item


Posted by: Gomerdeath
21.1.2013 06:54
Forum: English
- Replies (9)

I use the php rcon for my cod4 server and have been using it for years but today for some reason i keep getting this error and im not sure how to fix it:

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /home/thgamerz/public_html/rcon/action.php on line 173
OK

Print this item


Posted by: Ashus
22.11.2012 12:51
Forum: Webové stránky a aplikace
- No Replies

Systém pro objednání zážitků pod záštitou ostravské webhostingové společnosti Banan.cz.

Technologie: PHP, MySQL, JavaScript+jQuery, Cron

   
www.galeriezazitku.cz
v rámci Banan.cz

Print this item


Posted by: Ashus
4.10.2012 05:21
Forum: Delphi programs
- Replies (1)

The purpose of this tool is to have a single MAC address same for LAN and WiFi interface, so you could connect to the same network as one computer from both interfaces. The LAN interface has higher priority - speeds could be much higher of course Smile

.rar OneMac.rar Size: 275,25 KB  Downloads: 621

.rar OneMac.rar Size: 276,6 KB  Downloads: 592


OneMac is able to detect link change and if it detects LAN cable connected, it sets LAN as primary (and vice versa). When WiFi is not set as primary, it can be turned off completely to save battery.

No other tool on the net worked for me (automatic wifi disabling on cable connect). So this is my response 8-)

Compatible with WIndows XP/Vista/7 x32/x64 non-UAC/UAC

Print this item


Posted by: Ashus
23.8.2012 03:43
Forum: Guides / Návody
- Replies (1)

Načítání PhpMyAdminu při 20 000 databázích je docela problém, trvá to okolo 4 minut. Vymyslel jsem řešení, které načítání solidně zrychlí (nehledají se složky, ale selectuje se z databáze).
Nejprve je nutno vytvořit ControlUsera - pojmenoval jsem ho phpmyadmin_optimizer. Je nutné mu přidělit právo SELECT na mysql.db.Db a mysql.db.User..

Code:
CREATE USER 'phpmyadmin_optimizer'@'localhost' IDENTIFIED BY '';
GRANT SELECT (`Db` , `User`) ON `mysql`.`db` TO 'phpmyadmin_optimizer'@'localhost'; 
Následně do konfigurace config.inc.php vložíte toto:

Code:
$cfg['DisplayDatabasesList'] = 'auto';

$cfg['Servers'][$i]['controluser'] = 'phpmyadmin_optimizer';
$cfg['Servers'][$i]['controlpass'] = '';
$cfg['Servers'][$i]['ShowDatabasesCommand'] = "SELECT Db FROM `mysql`.`db` WHERE User LIKE (SELECT IF(('#user#'='root'),'%','#user#'))"; 

Zajistíte zobrazení všech databází rootovi, ale ostatním uživatelům necháte zobrazit jen databáze, které jim patří.

Print this item