Skip to content

Instantly share code, notes, and snippets.

@tuanle
tuanle / httpd_mod_proxy_wstunnel.txt
Last active August 30, 2021 11:06
Configuring to run php ratchet websocket via SSL connect (using Apache2 proxy)
# Check http version or apache2 version
httpd -v # apache2 -v
# Building mod_proxy_wstunnel.so for httpd 2.2.x
# Check apache version (should be 2.2.20 as of writing, if not adjust the next step)
dpkg -s apache2
# Checkout apache source
svn checkout http://svn.apache.org/repos/asf/httpd/httpd/tags/2.2.x/ httpd-2.2.x
@DimazzzZ
DimazzzZ / iso-639-1-codes.php
Last active April 27, 2024 04:34 — forked from ddebin/iso_array_lang.php
ISO 639-1 language codes array
<?php
$codes = [
'ab' => 'Abkhazian',
'aa' => 'Afar',
'af' => 'Afrikaans',
'ak' => 'Akan',
'sq' => 'Albanian',
'am' => 'Amharic',
'ar' => 'Arabic',