Write Bash Script Which Accepts Argument or User Input
There are two ways of writing custom bash script: passing as argument or as input. This time I’ll explain both ways.
There are two ways of writing custom bash script: passing as argument or as input. This time I’ll explain both ways.
MariaDB mendadak macet, mogok, berhenti beroperasi saat COVID-19 mulai merebak di awal 2020. Masalahnya adalah ketika update, gagal membaca repository mariaDB 10.2. Mungkin Maria pindah tanpa lapor pak RT dan petugas dukcapil. Jadi waktu didatangi rumahnya kosong terus. Asv kan!?
MacOS have a built-in screenshot feature which can be used right off the bat. This feature is an important one which I previously never met in Windows environment. It’s so helpful to chat and give instant example of my screen. However, I took screenshots often, so it started to pile up on my desktop. Something …
macOS Change the Default Save Location of Screenshots Read More »
Nginx block countries using GeoIP modules. Fortunately using EasyEngine installation, nginx is already installed with -with-http_geoip_module option. You can check with this command The IP database is also already downloaded on /usr/share/GeoIP/GeoIP.dat 1. Map and Declare $allowed_country Variable This means the only steps we need to do is create a conf file inside /etc/nginx/conf.d/ directory. For …
After upgrading to MacOS High Sierra (or any upgrade process previously), first thing I need to check is the local webserver status: apache, php, redis, mysql. Brew install php redis. Thankfully, MacOS High Sierra is now shipped with PHP 7.1 installed, which met the new standard for my future web developments. PHP-redis is a must-installed …
Brew Install PHP Redis on MacOS High Sierra 10.13 Read More »
MacOS High Sierra problem when executing php command through terminal. Problem? An error stating dyld library not loaded. dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.9.dylib Referenced from: /usr/local/bin/php Reason: image not found Abort trap: 6 According to this stackoverflow post, I need to uninstall current version of libjpeg. Use –ignore-dependencies to force uninstallation since libjpeg is needed by …
After macOS Sierra 10.12.6 Update, my php56-redis module is not working, causing some of my PHP applications cannot communicate with Redis as storage engine. My confusion raises when the module is loaded in PHP-CLI but not in PHP-CGI. It means, if I type php -m in command line, redis shows up. But, if I access via …
php56-redis Module Not Loaded in PHP-CGI macOS Sierra Read More »