Skip to content

Instantly share code, notes, and snippets.

@neohitokiri
neohitokiri / gist:76a6151a08745e43f20f8f7e40d9f8d2
Created May 5, 2022 20:11 — forked from asiraky/gist:4ea5136e54c8df2de3fb6689f0a5ce18
Ubuntu 20.04 SQL Server ODBC Drivers for PHP 7.2
#run through the steps detailed here to install the odbc drivers for Ubuntu 20
https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#ubuntu17
#then force pecl to use 7.2
sudo pecl -d php_suffix=7.2 install sqlsrv-5.3.0
sudo pecl -d php_suffix=7.2 install pdo_sqlsrv-5.3.0
sudo bash -c 'echo "extension=sqlsrv.so" > /etc/php/7.2/mods-available/sqlsrv.ini'
sudo bash -c 'echo "extension=pdo_sqlsrv.so" > /etc/php/7.2/mods-available/pdo_sqlsrv.ini'
@neohitokiri
neohitokiri / qmail commands
Created March 23, 2021 20:35 — forked from rushipkar90/qmail commands
qmail commands
How To Manage QMail Queue In Linux Plesk
Ref URL
----------------
http://geeksterminal.com/qmail-commands-logs-plesk-server/580/
https://www.24x7servermanagement.com/blog/how-to-manage-qmail-queue-in-linux-plesk/
----------------
1) To check the mail queue in plesk from command line, you can use the command :
@neohitokiri
neohitokiri / analytics.conf
Created May 20, 2018 18:53 — forked from jirutka/analytics.conf
Add Google Analytics tracking code to HTML via nginx
#
# Add Google Analytics tracking code to HTML response
#
# Usage:
# set $tracking_id 'UA-12345678-9';
# include incl/analytics.conf;
#
# It needs nginx compiled with option --with-http_sub_module.
# Uses optimized GA code from: http://mathiasbynens.be/notes/async-analytics-snippet
#