Skip to main content

Posts

Showing posts from April, 2016

Force change file size in byte and CRC checksum by any value

I play LOL game. Sometime we have game patch done 99% then stopped. The log file display Error message like [bla bla here] So I have to re-patch or restart my PC. This time has no luck, so I decided to fix myself, hoping can play couple of funny game. LOL game first verify size of old game data file in byte. In my case is some character image in game_dir/.../assets/images/champions/. This folder store all champions images from action to tile... In my case the file Tryndamme_Tile_2.jpg size is not match, expected is 150503 (byte). In my mind, Garena or Riot game have to verify everything in game data to avoid cheating from local. etc. And they will use filesize and checksum and some other methods to done this. So first I have to add missing image (Tryndamme_Tile_2.jpg), then force size of this image to match LOL Game expected in update. Copy file is easy, that use command prompt. Shift + Right click to folder contain image u want to copy to LOL game data. I have to use command

NGINX 3

https://blog.engineyard.com/2011/useful-rewrites-for-nginx http://nginx.org/en/docs/http/ngx_http_rewrite_module.html http://www.yiiframework.com/forum/index.php/topic/29830-yii-nginx-urlmanager/ -------------------------------------------------------------------------------------------------------------------------- server {     listen 443 default_server ssl;     server_name wifinext wifinext.mydomain.com;     rewrite ^/$ /mgmt/ permanent;     server_tokens off;     ssl_certificate /dati/com.crt;     ssl_certificate_key /dati/com.key;     ssl_client_certificate /dati/gd_bundle.crt;         ssl_session_timeout 5m;     keepalive_timeout    70;     ssl_protocols SSLv3 TLSv1;     ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;     ssl_prefer_server_ciphers on;     root /dati/mydomain/www/management_site;     location / {         # First attempt to serve request as file, then         # as directory, then fall back to index.html         try_f