Site Overlay

apache2/httpd – IP based restriction to a virtual host

The Require provides a variety of different ways to allow or deny access to resources. In conjunction with the RequireAll, RequireAny, and RequireNone directives, these requirements may be combined in arbitrarily complex ways, to enforce whatever your access policy happens to be. example: Related posts: IP based restriction using NginxContinue readingapache2/httpd – IP based restriction to a virtual host

adminer setup script

Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consists of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch, and MongoDB. install script Related posts: How to auto login in Postgres from a shell? mysqld – Got packetContinue readingadminer setup script

mysqld – Got packet bigger than ‘max_allowed_packet’ bytes when dumping table `memcache` at row

Add --max_allowed_packet=512M to your mysqldump command. Or add max_allowed_packet=512M to [mysqldump] the section of your my.cnf Note: it will not work if it is not under the [mysqldump] section… Related posts: adminer setup script How to install, configure, create user and database with permissions – PostgreSQL How to install, configure, create user and database with permissions – MySQL Cron job forContinue readingmysqld – Got packet bigger than ‘max_allowed_packet’ bytes when dumping table `memcache` at row

How to use HiDPI(4K) resolution in Linux for all applications

HiDPI (High Dots Per Inch) displays, also known by Apple’s “Retina Display” marketing name, are screens with a high resolution in a relatively small format. They are mostly found in high-end laptops and monitors. update this ~/.Xresources reboot or re-login to system *240 dpi is suitable for 3840x2160 resolution screenContinue readingHow to use HiDPI(4K) resolution in Linux for all applications