2014

How to convert pvr.czz file to PNG ?

Download TexturePacker Install and it does support command line tools. To convert single pvr.czz file to PNG in console, here is the way. [code lang=”bash”] TexturePacker filename.pvr.ccz –sheet filename.png –data dummy.plist –algorithm Basic –allow-free-size –no-trim [/code] To convert mass pvr.czz file to PNG in console, here is the way. [code lang=”bash”] find -name \*.pvr.czz | …

How to convert pvr.czz file to PNG ? Read More »

Use CSS to do fade text from Black to White at tail.

I found out that using this way to white fade out the text. [code lang=”html”] <div style="font-size: 6pt; overflow: hidden; text-decoration: none; position: relative; white-space: nowrap; -webkit-mask-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 99%);"> Fade away my text</div> [/code]

How to remove ver from js and css in WordPress ?

Remove the ver=date behind the JS and CSS in wordpress. [php] // Load in any own plugin function juz_remove_wp_ver_css_js( $src ) { if ( strpos( $src, ‘ver=’ ) ) $src = remove_query_arg( ‘ver’, $src ); return $src; } add_filter( ‘style_loader_src’, ‘juz_remove_wp_ver_css_js’, 9999 ); add_filter( ‘script_loader_src’, ‘juz_remove_wp_ver_css_js’, 9999 ); [/php]

Installing MySQL Plugin for NewRelic

[code lang=”bash”] wget https://github.com/newrelic-platform/newrelic_mysql_java_plugin/blob/master/dist/newrelic_mysql_plugin-1.2.0.tar.gz?raw=true mv newrelic_mysql_plugin-1.2.0.tar.gz\?raw\=true newrelic_mysql_plugin-1.2.0.tar.gz tar -zvxf newrelic_mysql_plugin-1.2.0.tar.gz cd newrelic_mysql_plugin-1.2.0 yum install java-1.7.0-openjdk java -version cp config/template_newrelic.properties config/newrelic.properties vim config/newrelic.properties cp config/template_mysql.instance.json config/mysql.instance.json vim config/mysql.instance.json java -jar newrelic_mysql_plugin*.jar nohup java -jar newrelic_mysql_plugin*.jar & [/code]