Skip to content

Instantly share code, notes, and snippets.

View gelinger777's full-sized avatar

gelinger777 gelinger777

  • gelinger777
  • World
View GitHub Profile
0x0038B196AF473641279eaF9445B99B81b1f1ce28
0x00b8439087858238840A316331D7727a1841e297
0x00b8439087858238840A316331D7727a1841e297
0x23bF9a615c68ce59A92a40E18693398FAE5AFa25
0x00E322DCfadC837E4B09c294375527772F34aaA3
0x00555a585A25E55EEe1afCed8fFA6165f2D57d0A
select * from INFORMATION_SCHEMA.COLUMNS
where COLUMN_NAME like '%email%' and TABLE_SCHEMA='cloner'
order by TABLE_NAME
@gelinger777
gelinger777 / gist:82ff77bb755f4912e3c0450de349da44
Created July 12, 2018 15:14
nginx_pagespeed params for ubuntu
--prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail
@gelinger777
gelinger777 / cloudflare-prestashop
Created July 25, 2018 13:49
sudo nano /override/classes/Tools
/**
* Get the server variable REMOTE_ADDR, or the first ip of HTTP_X_FORWARDED_FOR (when using proxy)
*
* @return string $remote_addr ip of client
*/
public static function getRemoteAddr()
{
if (function_exists('apache_request_headers')) {
$headers = apache_request_headers();
} else {
public static function isEmail($email)
{
$parsed=explode("@",$email);
if(count($parsed)<2){
return false;