Skip to content

Instantly share code, notes, and snippets.

View shareefhiasat's full-sized avatar
😃
Exploring

Shareef hiasat shareefhiasat

😃
Exploring
View GitHub Profile
@shareefhiasat
shareefhiasat / 01 facebook.html
Created January 12, 2017 09:26 — forked from panbanda/01 facebook.html
Tracking Pixels
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '996863543672364'); // Insert your pixel ID here.
fbq('track', 'PageView');
</script>
ALTER TABLE `dtcm_order_item` CHANGE `channel` `channel` VARCHAR(10) CHARACTER SET utf8 COLLATE utf8_bin NULL;
ALTER TABLE `dtcm_order_item` CHANGE `dtcm_basket_id` `dtcm_basket_id` VARCHAR(200) CHARACTER SET utf8 COLLATE utf8_bin NULL;
ALTER TABLE `dtcm_order_item` CHANGE `dtcm_order_id` `dtcm_order_id` VARCHAR(200) CHARACTER SET utf8 COLLATE utf8_bin NULL;
ALTER TABLE `dtcm_order_item` CHANGE `product_id` `product_id` INT(11) NULL;
add NEW TABLE
--
@shareefhiasat
shareefhiasat / please apply
Last active May 10, 2017 14:29
SQL PATCHES
Here will be all the sql patches to apply from team
@SHAREEF
ON 08-05-2017 added the below
https://gist.github.com/shareefhiasat/5557308b3abe98c25e542e5da34799d0
ON 10-05-2017 for DTCM logging add new table and alter default null
https://gist.github.com/shareefhiasat/88560ee7f5ccfb33c62869431f9eea3e
sorry that below is not auto alters you should apply manually they are short list
scripts you must apply to qa
table country make
default null for
`nationality`
`nationality_ar`
table invitation
<!DOCTYPE html>
<html>
<head>
<!-- meta -->
@shareefhiasat
shareefhiasat / widgets in sajilni
Last active May 12, 2017 15:51
separation of buy ticket
keep in mind that buyticket process
handle
three main concepts aswell as parameter in url added it iwll behave different to backend
var invitationToken = '';
var accessToken = '';
var tokenRequest = '';
challenges are:
challenge for apply separation for sajilni clients
2017-05-12 21:34:48.403
java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]
2017-05-12 21:34:48.403
SEVERE: Allocate exception for servlet dispatcher
2017-05-12 21:34:48.403
Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]
2017-05-12 21:34:48.403
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/dispatcher-servlet.xml]
2017-05-12 21:34:48.403
INFO: Initializing Spring FrameworkServlet 'dispatcher'
@shareefhiasat
shareefhiasat / leak suspect
Created May 14, 2017 15:48
out of memory investigation
May 14, 2017 9:19:56 AM com.sajilni.controller.payment.PaymentPayFortController payFortCallbackPage2
SEVERE: null
May 14, 2017 9:29:58 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-nio-80"]
May 14, 2017 9:29:58 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
May 14, 2017 9:29:59 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
SEVERE: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
May 14, 2017 9:29:59 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
payFortParams.getOperationReturnUrl(); payFortParams.getOperationReturnUrl(); %1s/payment/payfort-callback.html/payment/payfort-callback.html
May 14, 2017 6:29:14 AM com.jrupal.util.Web httpsRequest
SEVERE: sent{"signature":"05d8cd30d5acf0f6035d9613ff6c6b76e426d527b8dd4b6868b1930a0eb9eb61","language":"en","merchant_identifier":"vOQkvpMl","access_code":"UI0QUbU5DANvFENdhU42","merchant_reference":"4502-1376165-130363","query_command":"CHECK_STATUS"}Response Code : 200
May 14, 2017 6:29:14 AM com.jrupal.util.Web httpsRequest
SEVERE: {"response_code":"12036","response_message":"Order not found","signature":"ff568b52fd9bb30e8b710fc78688e6dd32623882a015f8b48bba49e96e06fc59","merchant_reference":"4502-1376165-130363","merchant_identifier":"vOQkvpMl","query_command":"CHECK_STATUS","access_code":"UI0QUbU5DANvFENdhU42","language":"en","status":"12"}
May 14, 2017 6:29:14 AM com.sajilni.service.payment.PaymentPayFortService checkPaymentTransactionStatus
SEVERE: operationResult-->{"response_code":"12036","response_message
This file has been truncated, but you can view the full file.
Feb 20, 2017 1:06:57 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]
Feb 20, 2017 1:06:57 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]
Feb 20, 2017 1:06:57 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]
Feb 20, 2017 1:06:57 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]
Feb 20, 2017 1:06:57 PM org.apache.catalina.startup.ClassLoaderFactory validateFile