Skip to content

Instantly share code, notes, and snippets.

View gecon's full-sized avatar

Giannis Economou gecon

View GitHub Profile
@gecon
gecon / improved_greek_uppercase.php
Last active November 15, 2022 13:08
uppercase greek without accents (php solution)
<?php
/***********************************************************************
A simple PHP function that will correctly uppercase Greek language
with proper spelling rules (removing accents in uppercased letters).
This is a server-side alternative to CSS uppercase() for Greek.
Greek CSS uppercase() is not working right on some browsers.
You can fix this by using javascript (increases browser load time) or
in server side by using this function here.
@gecon
gecon / gist:110697309c4903bd76ad0ed658761d34
Last active April 2, 2018 23:43 — forked from moneytoo/gist:ab3f34e4fddc2110675952f8280f49c5
nginx with OpenSSL 1.0.2 (ALPN) on CentOS 6
yum -y groupinstall 'Development Tools'
yum -y install wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel rpmdevtools pcre-devel
OPENSSL="openssl-1.0.2j"
NGINX_VERSION="1.11.5-1"
rpm -ivh http://nginx.org/packages/mainline/centos/6/SRPMS/nginx-$NGINX_VERSION.el6.ngx.src.rpm
rpm -ivh http://nginx.org/packages/mainline/centos/6/SRPMS/nginx-module-geoip-$NGINX_VERSION.el6.ngx.src.rpm
rpm -ivh http://nginx.org/packages/mainline/centos/6/SRPMS/nginx-module-image-filter-$NGINX_VERSION.el6.ngx.src.rpm